Yoko

All sides of Injection
It is currently 2025-12-24 20:12:59

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-10-03 09:12:29 
Offline

Joined: 2005-07-26 03:49:49
Posts: 3
Code:
sub Loot() 
VAR i
DIM Loot[2] 
Loot[0]=0x0F87; Eyes of newt
Loot[1]=0x0F7E; Bones
Loot[2]=0x1078; Skin
AddObject()
UO.UseObject('Body')

if UO.GetQuantity('Body') then
   UO.WaitTargetObject('Body')
   UO.WarMode(0)
   UO.UseType('0x0F51');dagger
   wait(500)
   UO.UseType('0x13B1');bow
   UO.WarMode(1)
   wait(100)
else
   wait(50)
endif

For i=0 to 2      
   If UO.GetQuantity('Body') then
      CheckLag()
      UO.FindType(Loot[i],-1,'Body')
      if UO.GetQuantity('finditem')>0 then
      UO.MoveItem('finditem')         
      wait(300)
   else
      wait(50)
   endif
next
   
If UO.Count('0x1078')>0 then
   UO.WaitTargetType('0x1078')
   CheckLag()
   UO.UseType('0x0F9E')
else
   wait(50)
endif

end sub


Code:
sub AddObject()
UO.exec('addobject Body')
while UO.targeting()
wait(50)
wend
end sub


Монстров всех режет и лутит нормально. Но вот столкнулся с тем, что скрипт отказываеться работать на Ограх. Parse error выводит. Запускал скрипт по частям, стопориться сразу же после команды UO.UseObject.

Менял Body на lastcorpes, толку 0.

P.S. Шард Антарес


Top
   
 Post subject:
PostPosted: 2005-10-03 10:43:07 
Offline

Joined: 2005-07-10 11:26:37
Posts: 45
Попробуй вставить паузу после UseObject.
Может Огры дольше открываюся :?


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 9 guests


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