Code: Select all
sub cast(spellname,target)
uo.warmode(0)
if (haveBandage() && uo.life < uo.str) then
uo.deletejournal()
uo.bandageself()
while (not uo.injournal("Where"))
wait(10)
wend
end if
uo.cast(spellname,target)
end sub
example:
exec cast("Magic Reflection","self")
inj say me error: "function not found - cast("Magic Reflection","self")
or i must need of another function without parameters with call that method?
example:
Code: Select all
sub bolt()
cast("Energy Bolt","laststatus")
end sub
i will wont dont create another script with call the main function, well is possible done in hotkeys command?
