Yoko

All sides of Injection
It is currently 2026-01-19 03:34:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2008-06-11 12:16:29 
Offline

Joined: 2008-06-11 12:11:17
Posts: 2
Здрасте.. Помогите пожалуста, я в скриптах мало шарю.. Мне дали скрипт, но с таким скриптом очень много растрат. Помогите переписать чтоб 1 скрипт место манок медетировал, а 2скрипт место ГХ хилился бинтами.. За Ранее очень благодарен..
Code:
sub CastArrow() 
while not uo.Dead()
uo.DeleteJournal()
while uo.Mana>=10
if uo.injournal('stay') then
uo.canceltarget()
while not uo.injournal('go')
wait(100)
wend
uo.deletejournal()
else
endif
if uo.life < 10 then
uo.undress()
wait(600)
uo.moveitem('0x4023CD01','0','ground')
endif
UO.Exec("cast 'Magic Arrow'lasttarget") ## Просто юзаем тарегет на типа в кого будем кидать стрелки...
wait(2000)
regcount()
wend
uo.warmode(0)
Manadrink()
wait(1000)
wend
end sub

Sub Manadrink()
UO.FindType('0x0F0E','0x09DF','backpack')
UO.UseObject('finditem')
end sub

Sub Regcount()
if UO.BP<10 OR UO.NS<10 then
   uo.findtype('0x0F88','-1','0x40386B28') ## Серийник сундука с Nightshade
     uo.grab('100','finditem' )
 uo.print('Биру Nightshade')
   wait(2000)
   uo.findtype('0x0F7A','-1','0x40386B28') ## Серийник сундука с Black Pearls
     uo.grab('100','finditem' )   
 uo.print('Биру Black Pearls')
wait(2000)
endif
UO.FindType('0x0F0E','0x09DF','backpack')
if uo.findcount('finditem') == 0 then
UO.FindType('0x0F0E','0x09DF','0x40386B28') ##  Сундук с Total Mana
     uo.grab('30','finditem' )
uo.print('Биру Total Mana')
wait(2000)
else
endif
end sub


sub counter()
uo.ignorereset()
var bag
uo.addobject('container')
while uo.targeting()
wait(100)
wend
uo.useobject('container')
wait(200)
var type = '0x0F0E'
uo.findtype(type,'0x09DF','container')
var c = uo.findcount('finditem')
var i,q
q = uo.getquantity('finditem')
if c > 0 then
for i = 1 to c
uo.ignore('finditem')
uo.findtype(type,'0x09DF','container')
q=q+uo.getquantity('finditem')
next
uo.print('Бутылок маны - ' + str(q))
else
uo.print('0')
endif
end sub


Code:
sub Drink()
while not uo.Dead()
wait(15000)
repeat
wait(1000)
Until UO.getHP() < 140
Healdrink()
wend
end sub

Sub Healdrink()
UO.FindType('0x0F0E','0x09BB','backpack')
UO.UseObject('finditem')
end sub

_________________
Играю на Дрв


Top
   
 Post subject:
PostPosted: 2008-06-11 12:33:53 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
Sub Manadrink() 
UO.FindType('0x0F0E','0x09DF','backpack')
UO.UseObject('finditem')
end sub

Sub Healdrink()
UO.FindType('0x0F0E','0x09BB','backpack')
UO.UseObject('finditem')
end sub


Менять здесь


Top
   
 Post subject:
PostPosted: 2008-06-11 13:14:13 
Offline

Joined: 2008-06-11 12:11:17
Posts: 2
я не разюераюсь.. Есле моно то надо еще вставить go and stop когда кончается мана и у другого чарах хп

_________________
Играю на Дрв


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited