Yoko

All sides of Injection
It is currently 2026-01-16 14:11:21

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
 Post subject: продажа
PostPosted: 2005-09-03 09:54:27 
Offline

Joined: 2005-04-21 17:50:46
Posts: 22
Че то невыходит написать на нове скрипт на продажу ......пожалуста подкинте хотя б маленький макр на sell чтоб я мог сообразить че как .......


мне достаточно чтоб он тока продовал n вешей, определенного типа, вендору стояшему рядом .......... остальное сам допишу ......


Top
   
 Post subject:
PostPosted: 2005-09-03 10:21:27 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Code:
sub SellToVendor() 
var tProduct = '0x0DBF'      ;тип товара
var cProduct = '0x0000'      ;цвет товара
var sellListName = 'pole'   ;название листа продажи
var ms = 20         ;кол-во поскольку будем продавать
var addDealy = 100      ;если не успевает продавать, увеличьте эту цифру
var bd = ms*350+addDealy   ;system. don't tuch
   UO.Print('Кому продавать будем?')
   UO.addobject('vend')
   while uo.Targeting()
      wait(200)
   wend
   if UO.GetSerial('vend') == UO.GetSerial('self') or UO.GetSerial('vend') == '0x00000000' or UO.GetSerial('vend') == UO.GetSerial('backpack') then
      UO.Print('Промазал(а) - отключаюсь.')
   end if   
   uo.set('maxsell',str(ms))
   UO.UseObject('backpack')   
   uo.set('buydelay',str(bd))
   CheckLag()   
   while UO.Count(tProduct,cProduct) > 0
      if UO.Count(tProduct,cProduct) < ms then
         bd = UO.Count(tProduct,cProduct)*350+addDealy
         uo.set('buydelay',str(bd))
         CheckLag()
      end if
      uo.sell(sellListName,UO.GetName('vend'))
      CheckLag()
      UO.Msg('guards')
      if UO.InJournal("You have nothing I'm interested in") then
         return
      end if
   wend
   uo.set('buydelay','0')
end sub

sub CheckLag()
   UO.DeleteJournal()
   UO.Click('backpack')
   repeat
      wait(50)
   until UO.InJournal('backpack')
end sub


Top
   
 Post subject:
PostPosted: 2005-09-04 00:32:44 
Offline

Joined: 2005-08-08 12:31:02
Posts: 18
Leo, не подскажешь какой параметр функции addDealy оптимально ставить для DRW? :roll:


Top
   
 Post subject:
PostPosted: 2005-09-04 00:41:50 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Это зависит от конекта. Если не успеваешь - увеличивай. Я, лично, продаю при значении 100.


Top
   
 Post subject:
PostPosted: 2005-09-04 01:47:46 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
продажа через меню для RunUO
Code:
sub sell()
   var vendor=UO.GetSerial('laststatus')
   repeat
      UO.say(',sell poison')
      UO.say(',vendormenu vendor 3')
      Wait(1500)
   UNTIL not uo.count(0x0F0A)
endsub


Top
   
 Post subject:
PostPosted: 2005-09-04 16:09:47 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Leo wrote:
Code:
 
гыг :D


Top
   
 Post subject:
PostPosted: 2005-09-04 16:17:28 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Sfagnum wrote:
гыг :D

Да, я продаю вещи твоим скриптом :D


Top
   
 Post subject:
PostPosted: 2005-09-04 16:19:08 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Leo wrote:
Sfagnum wrote:
гыг :D

Да, я продаю вещи твоим скриптом :D
та я ж не против ;)
просто приятственно что вещи старинные ещё юзаются ;)


Top
   
 Post subject: Re: продажа
PostPosted: 2010-01-25 12:15:45 
Offline
User avatar

Joined: 2009-10-18 12:54:10
Posts: 5
и как он продает?...чет все указал но нон не продает(


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 9 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited