View Single Post
  #1  
Old 09-22-2009, 02:30 AM
Bellum Bellum is offline
Novice
 
Join Date: Sep 2009
Posts: 25
Default Auto Join Script

Trying to make a list of players that I will always auto join weather it is player combat or just regular npc combat.

Problem I'm having is it creates the array it adds players names to the array, but once I rescue them it takes them out of the array. I'm not the best at java so I'm looking for a little assist.

Thanks In advance.

Code:
#var autojoin 0
#script {var join_group = new Array()}

#alias {joinon} {#var autojoin 1}
#alias {joinoff} {#var autojoin 0}

#action {( %0 ) %1 is here, fighting %2.} {join_variable;#var {join_target} {$$1};#if {$join_target = $join_group} {join $join_group}}
#action {You join %0 in battle!} {addJoin $0}

#alias {addJoin} {#script join_group.push("$1")}
#alias {join_variable} {#script umc.setVar("join_group", join_group.pop())}
#alias {showJoin} {#script {umc.capture (join_group)}}



#nop -AUTO JOINS-

addJoin Meier
addJoin Apocolypse
addJoin Cashville
Reply With Quote