Yoko

All sides of Injection
It is currently 2025-11-04 10:33:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2008-06-21 15:10:31 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
Quote:
sub Healing()
var hp1,hp2
if (uo.life < uo.str-10 or uo.poisoned()) and not uo.dead() then
while (uo.life < uo.str or uo.poisoned()) and not uo.dead()
uo.findtype('0x0E21','-1','2')
if uo.findcount() then
if uo.stamina < 85 then
uo.findtype('0x0F0B','-1','2')
if uo.findcount() then
uo.useobject('finditem')
else
endif
endif
uo.exec('warmode 0')
hp1=uo.life
uo.bandageself()
uo.deletejournal()
while not (uo.injournal('put bloody') or uo.injournal("barely help") or uo.injournal("mummy"))
wait(50)
wend
if uo.injournal("barely") then
endif
if uo.injournal("bloody bandages") then
hp2=uo.life - hp1
if hp2>0 then
uo.print("Healed "+str(hp2)+" HP")
endif
hp1=0
hp2=0
endif
else
uo.exec('terminate all')
endif
wend
arming()

else
uo.exec('terminate all')
endif
EndIf
;arming()

end sub


sub arming()
uo.usetype('0x1b76')
Wait(100)
uo.usetype('0x0f5e')
end sub


Last edited by ychenik on 2008-06-21 16:30:28, edited 1 time in total.

Top
   
 Post subject:
PostPosted: 2008-06-21 15:19:56 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
этот скрипт одевает щит только после того как полностью отхилится а как сделать так чтобы он хилися один раз натягивал щит и пушку потом отрубался? я так понимаю что надо изменить вот эту строку
Quote:
if (uo.life < uo.str-10 or uo.poisoned()) and not uo.dead() then
while (uo.life < uo.str or uo.poisoned()) and not uo.dead()


но что с ней делать не врублюсь, уже все почти перепробывал но все время ошибки)
ХЕЛП ПЛС


Top
   
 Post subject:
PostPosted: 2008-06-21 22:32:01 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
никто не может помочь или не хочет? :(


Top
   
 Post subject:
PostPosted: 2008-06-22 00:03:35 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
ychenik wrote:
никто не может помочь или не хочет? :(


Телепаты в отпуске, ты можешь КОНКРЕТНО обьяснить что тебе нужно от этого скрипта?


Top
   
 Post subject:
PostPosted: 2008-06-22 20:36:17 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
куда уж конкретнее) данный скрипт, если стамины меньше скольки-то пьет рефреш, пишет скока хп восстановлено, юзает бинты пока не будет полный столб хп, одевает щит. мне нужно - если стамина меньше скольки-та то пьет рефреш, юзает бинт ждет когда напишет что грязные бинты в паке или не помогли,сразу же одевает щит, пишет сколько хп отхилино, вырубает скрипт. то есть хилится один раз и все.


Top
   
 Post subject:
PostPosted: 2008-06-24 13:06:54 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
как надо изменить?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 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