Yoko

All sides of Injection
It is currently 2024-03-28 20:38:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2016-03-13 05:54:47 
Offline

Joined: 2015-11-26 10:16:44
Posts: 61
кто поможет надо проверку на то что если есть кирки в руках и бекпаке или нету
Code:
sub GetPickaxe()
   var n
   dim instrument[1]
   instrument[1]='0x0E85'
   for n=1 to 1
      uo.findtype(instrument[n],-1,'my')
      if uo.findcount() then
         pickaxe=uo.getserial('finditem')
         return
      endif
   next   
   uo.print('pickaxe not found')
   gosunduk()
endsub


вот кусок скрипта но иногда он пишет ('pickaxe not found') и улетает к сундуку хоть кирка есть в руках


Top
   
PostPosted: 2016-04-26 16:03:37 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
vertijok2000 wrote:
улетает к сундуку хоть кирка есть в руках

Перед строчкой
Code:
uo.findtype(instrument[n],-1,'my')
добавь строку
Code:
uo.unequip("Rhand")

_________________
CodeSweeper


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 21 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited