Targets Complication

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Targets Complication

Post 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
Knight1106
Posts: 64
Joined: 2005-09-08 18:38:12

Post by Knight1106 »

Any idea plz ?
Post Reply