Advertisement
Guest User

Tribe/Clan System

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