Healin script

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Mattthh
Posts: 6
Joined: 2007-02-14 08:14:09

Healin script

Post 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
Last edited by Mattthh on 2007-02-15 00:28:11, edited 1 time in total.
Mihail
Expert!
Posts: 548
Joined: 2005-05-20 20:30:10
Contact:

Post 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
Mattthh
Posts: 6
Joined: 2007-02-14 08:14:09

Post by Mattthh »

tx ! but you forgot the equip unequip :-\

but this part work :D tx
Mattthh
Posts: 6
Joined: 2007-02-14 08:14:09

Post by Mattthh »

Some1 plz :-\
Mihail
Expert!
Posts: 548
Joined: 2005-05-20 20:30:10
Contact:

Post by Mihail »

Post Reply