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

Healin script
http://forum.yoko.com.ua/viewtopic.php?f=17&t=11447
Page 1 of 1

Author:  Mattthh [ 2007-02-14 08:20:12 ]
Post subject:  Healin script

Hi everyone ! i need your help :-\ (and im french so sorry for the bad english)

Im trying to make a Script... :P seriously ! no but

I got an item who give me 15 str, 15 intel, 15 dex ... si what i wanna do is

equip the item so my life will be 165 insteed of 150
usetype bandage
target self
if maxhp>currenthp
repeat

so Unequip ... wait(10000) so the life go down and equip again so ... i healing and meditation will raise as i do nothing !

but in the realm I play, when you use bandage ... you need mana ... 10 mana each time you use bandage so i need the skill meditation too :-\

so i need ...
after maxhp=Currenthp ...
i need to medit
Maxmana>currentmana ... repeat

i Dunno if you Understand if not well tell me where and i will try to explain more :-\

Tx a lot :D

Author:  Mihail [ 2007-02-14 23:56:06 ]
Post subject: 

something like that
Code:
sub main()
#hp
while uo.gethp()<uo.gethpmax()
uo.bandageself()
uo.deletejournal()
repeat
wait(100)
untill uo.injournal('fail|make|full') ; messages of fail or successfull healing
wend
#mana
medit(uo.int)
end sub

sub medit(kol)
var exit
uo.warmode(0)
while uo.mana<kol
uo.deletejournal()
exit=0
uo.useskill('Meditation')
wait(100)
repeat
if uo.injournal('lose|can|peace') then
exit=1
end if
wait(1000)
until uo.mana>=kol or exit==1 or uo.dead()
wend
end sub

Author:  Mattthh [ 2007-02-15 00:17:54 ]
Post subject: 

tx ! but you forgot the equip unequip :-\

but this part work :D tx

Author:  Mattthh [ 2007-02-15 23:01:58 ]
Post subject: 

Some1 plz :-\

Author:  Mihail [ 2007-02-16 16:16:18 ]
Post subject: 

http://yoko.com.ua/help/help.php?lang=r ... tem=equipt

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