Page 1 of 1

Healin script

Posted: 2007-02-14 08:20:12
by Mattthh
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

Posted: 2007-02-14 23:56:06
by Mihail
something like that

Code: Select all

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

Posted: 2007-02-15 00:17:54
by Mattthh
tx ! but you forgot the equip unequip :-\

but this part work :D tx

Posted: 2007-02-15 23:01:58
by Mattthh
Some1 plz :-\

Posted: 2007-02-16 16:16:18
by Mihail