Advertisement
Sanwi

CitadelGroupSelect

Jul 20th, 2014
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $${
  2.  
  3. // Default group
  4. @&ctdefault = ""
  5.  
  6. @&ctgrouparray[0] = %@&ctdefault%
  7.  
  8. join(",","@&ctgrouparray",&ctlist);
  9. replace(&ctlist," ",",");
  10.  
  11. // Prompt list
  12. PROMPT(@&fortifygroup,"$$[[%&ctlist%]]","Select a Citadel group",true,"%@&ctdefault%")
  13.  
  14. log("&c Selected &2%@&fortifygroup%");
  15.  
  16. // Check array for selected group
  17. indexof(@&ctgrouparray,&arraycontainsindex,"%@&fortifygroup%");
  18.  
  19. // If new group selected, add to array
  20. if(%&arraycontainsindex% = "-1");
  21. put(@&ctgrouparray,%@&fortifygroup%);
  22. logto(ctarraylog.txt,"%@&fortifygroup%");
  23. log("&c put %@&fortifygroup% in group list");
  24. endif;
  25.  
  26. stop();
  27. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement