Yoko

All sides of Injection
It is currently 2024-04-19 19:25:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Скидывание
PostPosted: 2014-07-01 10:51:31 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
народ помогите пожалуйста. вот на скидку руды в сундук. подскажите, как добавить чтобы чар скидывал ещё камушки которые добывает?
Code:
sub loot()    
if uo.waiting() then
uo.canceltarget()
endif
VAR a,Exit
VAR UnloadCont='0x513e4736'
DIM Ore[5]
Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore
UO.SetReceivingContainer(UnloadCont)
wait(500)
For a=0 to 3
Exit=0
repeat
UO.FindType(Ore[a])
if UO.GetQuantity('finditem')>0 then
UO.Grab('0','finditem')
wait(1500)
Else
Exit=1
endif
until Exit==1
Next
UO.UnSetReceivingContainer()
end sub


Top
   
 Post subject: Re: Скидывание
PostPosted: 2014-07-01 17:36:12 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
Code:
DIM Ore[n+1] ; число должно равнятся последнему числу в скобках Ore + 1
Ore[0]=0x19B9 ; 4 and more ore
Ore[1]=0x19B7 ; 1 ore
Ore[2]=0x19BA ; 2 ore
Ore[3]=0x19B8 ; 3 ore
Ore[4] = тип предмета
Ore[5] = тип предмета
.......
Ore[n] = тип предмета ; где n должна быть цифрой естественно
UO.SetReceivingContainer(UnloadCont)
wait(500)
For a=0 to n

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject: Re: Скидывание
PostPosted: 2014-07-01 19:15:20 
Offline

Joined: 2012-07-27 23:43:14
Posts: 249
Мираж спасибо!! сделал как ты сказал - получилось. Скажите ещё пожалуйста. Вот по идее, когда после выгрузки прилетаешь - сразу хайдитцца должен или постоять чуток чото подумать?


Top
   
 Post subject: Re: Скидывание
PostPosted: 2014-07-02 22:06:40 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
я бы не хайдился а трекал сразу :) а вот если натрекал кого тогда хайдся не хайдся - надо сваливать :)

А так от сервера зависит. У нас вроде никто не прячется - админ наколдовал специально что при использовании топора/лопаты/кирки чар расхайдится так что особого смысла я не вижу.

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 27 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