Page 1 of 1

Target!!

Posted: 2008-08-10 02:30:51
by punkerman
is there anyway that i can save 2 or more targets?
for example if im in a mass pvp and i have 3x1 against me and i need to save the target of the 3 players that are attacking me i would save their target, i wanna dispel cast play 1, i press hotkey and i get the target of player 1, i wanna dispel cast play 2, i press hotkey and get the target of player 2...

is there anyway i use this?

sry about english

Posted: 2008-08-10 04:59:27
by Scripts Writer
If i need so, i tried to use global variable.
For example:

Code: Select all

sub save_first_target()
  ;saving ID(laststatus) into first global variable
end sub


Code: Select all

sub save_second_target()
  ;saving ID(laststatus) into second global variable
end sub


and when i need to cast something on character, i set into third global variable value of variable with ID of attacking character. Look:

first=ID attacking 1
second=ID attacking 2
third=ID attacking 1/ ID attacking 2/laststatus
and when you'll cast, you need to make WaitTargetObject on ID of third global variable.

So, u need scripts:

Code: Select all

Saving ID first attacker in global variable 'first'

Code: Select all

Saving ID second attacker in global variable 'second'

Code: Select all

Scp, which will set 'third' global variable, as 'first' or 'second'

Code: Select all

Scps, where you will cast on ID of 'third' global variable

Posted: 2008-08-10 05:02:44
by punkerman
oh man, im not a script writer.. i thought it was simple task.. can u make this script?