Yoko
http://forum.yoko.com.ua/

Кирка и мининг
http://forum.yoko.com.ua/viewtopic.php?f=20&t=17736
Page 1 of 1

Author:  vertijok2000 [ 2016-03-13 05:54:47 ]
Post subject:  Кирка и мининг

кто поможет надо проверку на то что если есть кирки в руках и бекпаке или нету
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') и улетает к сундуку хоть кирка есть в руках

Author:  Incorrect User [ 2016-04-26 16:03:37 ]
Post subject:  Re: Кирка и мининг

vertijok2000 wrote:
улетает к сундуку хоть кирка есть в руках

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/