Page 1 of 1

Targets Complication

Posted: 2008-07-20 00:31:39
by Knight1106
Well, as my laststatus was always changing to self while playing and nobody knows how to solve it, i decided to change all my spells targets to 'lasttarget'
but now here goes another problem:

when i cast heal spell on my friends the 'lasttarget' changes to him and i lose the target of my enemy...

here is my script to heal friends (the help object is setted to a friend in the objects tab):
sub HealAlly()
uo.cast('Magic Reflection','Help')
uo.print(str(uo.gethp('Help')))
end sub

and here is how i cast poison on enemy: (it is in hotkeys)
cast Poison lasttarget

i also lose my enemy target when i use uo.poison('Id of weapon')

i was writing something to save the 'lasttarget' before those actions e set it again after them, but it does not works great and fast as i wish...

i hope you can help me to fix it

thanks

Posted: 2008-07-25 04:54:18
by Knight1106
Any idea plz ?