Yoko
http://forum.yoko.com.ua/

Targets Complication
http://forum.yoko.com.ua/viewtopic.php?f=3&t=13803
Page 1 of 1

Author:  Knight1106 [ 2008-07-20 00:31:39 ]
Post subject:  Targets Complication

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

Author:  Knight1106 [ 2008-07-25 04:54:18 ]
Post subject: 

Any idea plz ?

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/