Official Nodeka Board  

Go Back   Official Nodeka Board > Nodeka > Scripting > UMC

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:01 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.