Target!!

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
punkerman
Posts: 15
Joined: 2007-10-01 22:04:36

Target!!

Post 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
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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
punkerman
Posts: 15
Joined: 2007-10-01 22:04:36

Post by punkerman »

oh man, im not a script writer.. i thought it was simple task.. can u make this script?
Post Reply