Advertisement
Guest User

Tribe/Clan System edit

a guest
Jun 9th, 2012
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. STARTINGMAP,XXX,YYY,Z script Welcome to XXXX RO 100,{
  2. set .@serv$,"XXX RO";// CHANGE THE SERVER NAME!!!!!
  3. set .@n$,"^0000FF[ Welcome to "+.@serv$+" ]^000000";
  4. set @charname$,""+strcharinfo(0)+"";
  5. set @charid$,""+getcharid(0)+"";
  6. if(tribechange==1) {
  7. mes .@n$;
  8. mes "Okay I'm going to warp you!";
  9. next;
  10. warp "belagio",91,41;
  11. end;
  12. close;
  13. }
  14. mes .@n$;
  15. mes "Hello "+strcharinfo(0)+",welcome";
  16. mes "to "+.@serv$+",have fun!";
  17. next;
  18. mes .@n$;
  19. mes "You can choose a Clan,";
  20. mes "which you want to join.";
  21. next;
  22. mes .@n$;
  23. mes "Now choose the Clan,which";
  24. mes "you want to join.";
  25. next;
  26. switch(select("Light Army:Dark Army")) {
  27. case 1:
  28. mes .@n$;
  29. mes "Okay,changing your name!";
  30. query_sql "UPDATE `char` SET name='[Light Army] "+ escape_sql(@charname$) + "' WHERE `char_id`="+escape_sql(@charid$)+"";
  31. next;
  32. mes .@n$;
  33. mes "Your name is changed.";
  34. mes "I'll kick you and after";
  35. mes "You login again,I'll warp you.";
  36. set tribechange,1;
  37. next;
  38. atcommand "@kick "+strcharinfo(0)+"";
  39. end;
  40. close;
  41. case 2:
  42. mes .@n$;
  43. mes "Okay,changing your name!";
  44. query_sql "UPDATE `char` SET name='[Dark Army] "+ escape_sql(@charname$) + "' WHERE `char_id`="+escape_sql(@charid$)+"";
  45. next;
  46. mes .@n$;
  47. mes "Your name is changed.";
  48. mes "I'll kick you and after";
  49. mes "You login again,I'll warp you.";
  50. set tribechange,1;
  51. next;
  52. atcommand "@kick "+strcharinfo(0)+"";
  53. end;
  54. close;
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement