Advertisement
Guest User

Untitled

a guest
Dec 10th, 2015
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 KB | None | 0 0
  1. - script Instajobnlevel -1,{
  2. OnPCLoginEvent:
  3. if (Instajobnlevel != 1 && BaseLevel >= 100 && BaseLevel <= 255 && JobLevel >= 71 && JobLevel <= 200) {
  4. set BaseLevel,99;
  5. set JobLevel,70;
  6. sc_end SC_ALL;
  7. resetskill;
  8. resetstatus;
  9. } else {
  10. end;
  11. }
  12.  
  13. Main_Menu:
  14. switch ( select ( "Manual Leveling","First Job","Second Job","Extended Job","Baby Job","Transcend Job")) {
  15. case 1:
  16. mes "This popup message will not appear again.";
  17. Instajobnlevel = 1;
  18. close;
  19. case 2:
  20. mes "[ ^ff0000 "+.names$+" ^000000]","Tell me your desired Class.";
  21. switch(select("^0000ff - Swordman^000000","^0000ff - Magician^000000","^0000ff - Archer^000000","^0000ff - Acolyte^000000","^0000ff - Merchant^000000","^0000ff - Thief^000000","^FF0000Back^000000")) {
  22. case 1: callsub Job_Changing,1,99,70,60,"All";
  23. case 2: callsub Job_Changing,2,99,70,60,"All";
  24. case 3: callsub Job_Changing,3,99,70,60,"All";
  25. case 4: callsub Job_Changing,4,99,70,60,"All";
  26. case 5: callsub Job_Changing,5,99,70,60,"All";
  27. case 6: callsub Job_Changing,6,99,70,60,"All";
  28. case 7: next; goto Main_Menu;
  29. }
  30. case 3:
  31. mes "[ ^ff0000 "+.names$+" ^000000]","Tell me your desired Class.";
  32. switch(select("^0000ff - Knight^000000","^0000ff - Priest^000000","^0000ff - Wizard^000000","^0000ff - Blacksmith^000000","^0000ff - Hunter^000000","^0000ff - Assassin^000000","^0000ff - Crusader^000000","^0000ff - Monk^000000","^0000ff - Sage^000000","^0000ff - Rogue^000000","^0000ff - Alchemist^000000",( Sex == 1 )?"":"^0000ff - Dancer^000000",( Sex == 0 )?"":"^0000ff - Bard^000000","^FF0000Back^000000")) {
  33. case 1: callsub Job_Changing,7,99,70,110,"All";
  34. case 2: callsub Job_Changing,8,99,70,110,"All";
  35. case 3: callsub Job_Changing,9,99,70,110,"All";
  36. case 4: callsub Job_Changing,10,99,70,110,"All";
  37. case 5: callsub Job_Changing,11,99,50,110,"All";
  38. case 6: callsub Job_Changing,12,99,50,110,"All";
  39. case 7: callsub Job_Changing,14,99,70,110,"All";
  40. case 8: callsub Job_Changing,15,99,70,110,"All";
  41. case 9: callsub Job_Changing,16,99,70,110,"All";
  42. case 10: callsub Job_Changing,17,99,70,110,"All";
  43. case 11: callsub Job_Changing,18,99,70,110,"All";
  44. case 12: callsub Job_Changing,20,99,70,110,"All";
  45. case 13: callsub Job_Changing,19,99,70,110,"All";
  46. case 14: next; goto Main_Menu;
  47. }
  48. case 4:
  49. mes "[ ^ff0000 "+.names$+" ^000000]","Tell me your desired Class.";
  50. switch(select("^0000ff - Super Novice^000000","^0000ff - Gunslinger^000000","^0000ff - Ninja^000000","^0000ff - Takewon^000000","^0000ff - Star Gladiator^000000","^0000ff - Soul Linker^000000","^FF0000Back^000000")) {
  51. case 1: callsub Job_Changing,23,99,70,110,"All";
  52. case 2: callsub Job_Changing,24,99,70,600,"All";
  53. case 3: callsub Job_Changing,25,99,70,60,"All";
  54. case 4: callsub Job_Changing,4046,99,70,60,"All";
  55. case 5: callsub Job_Changing,4047,99,70,110,"All";
  56. case 6: callsub Job_Changing,4049,99,70,110,"All";
  57. case 7: next; goto Main_Menu;
  58. }
  59. case 5:
  60. mes "[ ^ff0000 "+.names$+" ^000000]","Tell me your desired Class.";
  61. switch(select("^0000ff - Baby Swordman^000000","^0000ff - Baby Magician^000000","^0000ff - Baby Archer^000000","^0000ff - Baby Acolyte^000000","^0000ff - Baby Merchant^000000","^0000ff - Baby Thief^000000","^0000ff - Baby Knight^000000","^0000ff - Baby Priest^000000","^0000ff - Baby Wizard^000000","^0000ff - Baby Blacksmith^000000","^0000ff - Baby Hunter^000000","^0000ff - Baby Assassin^000000","^0000ff - Baby Crusader^000000","^0000ff - Baby Monk^000000","^0000ff - Baby Sage^000000","^0000ff - Baby Rogue^000000","^0000ff - Baby Alchemist^000000",( Sex == 1 )?"":"^0000ff - Baby Dancer^000000",( Sex == 0 )?"":"^0000ff - Baby Bard^000000","^0000ff - Super Baby^000000","^FF0000Back^000000")) {
  62. case 1: callsub Job_Changing,4024,99,70,60,"All";
  63. case 2: callsub Job_Changing,4025,99,70,60,"All";
  64. case 3: callsub Job_Changing,4026,99,70,60,"All";
  65. case 4: callsub Job_Changing,4027,99,70,60,"All";
  66. case 5: callsub Job_Changing,4028,99,70,60,"All";
  67. case 6: callsub Job_Changing,4029,99,70,60,"All";
  68. case 7: callsub Job_Changing,4030,99,70,110,"All";
  69. case 8: callsub Job_Changing,4031,99,70,110,"All";
  70. case 9: callsub Job_Changing,4032,99,70,110,"All";
  71. case 10: callsub Job_Changing,4033,99,70,110,"All";
  72. case 11: callsub Job_Changing,4034,99,70,110,"All";
  73. case 12: callsub Job_Changing,4035,99,70,110,"All";
  74. case 13: callsub Job_Changing,4037,99,70,110,"All";
  75. case 14: callsub Job_Changing,4038,99,70,110,"All";
  76. case 15: callsub Job_Changing,4039,99,70,110,"All";
  77. case 16: callsub Job_Changing,4040,99,70,110,"All";
  78. case 17: callsub Job_Changing,4041,99,70,110,"All";
  79. case 18: callsub Job_Changing,4043,99,70,110,"All";
  80. case 19: callsub Job_Changing,4042,99,70,110,"All";
  81. case 20: callsub Job_Changing,4045,99,70,110,"All";
  82. case 21: next; goto Main_Menu;
  83. }
  84. case 6:
  85. mes "[ ^ff0000 "+.names$+" ^000000]","Tell me your desired Class.";
  86. switch(select("^0000ff - Lord Knight^000000","^0000ff - High Priest^000000","^0000ff - High Wizard^000000","^0000ff - Whitesmith^000000","^0000ff - Sniper^000000","^0000ff - Assassin Cross^000000","^0000ff - Paladin^000000","^0000ff - Champion^000000","^0000ff - Professor^000000","^0000ff - Stalker^000000","^0000ff - Creator^000000",( Sex == 1 )?"":"^0000ff - Gypsy^000000",( Sex == 0 )?"":"^0000ff - Clown^000000","^FF0000Back^000000")) {
  87. case 1: callsub Job_Changing,4008,99,70,130,"All";
  88. case 2: callsub Job_Changing,4009,99,70,130,"All";
  89. case 3: callsub Job_Changing,4010,99,70,130,"All";
  90. case 4: callsub Job_Changing,4011,99,70,130,"All";
  91. case 5: callsub Job_Changing,4012,99,70,130,"All";
  92. case 6: callsub Job_Changing,4013,99,70,130,"All";
  93. case 7: callsub Job_Changing,4015,99,70,130,"All";
  94. case 8: callsub Job_Changing,4016,99,70,130,"All";
  95. case 9: callsub Job_Changing,4017,99,70,130,"All";
  96. case 10: callsub Job_Changing,4018,99,70,130,"All";
  97. case 11: callsub Job_Changing,4019,99,70,130,"All";
  98. case 12: callsub Job_Changing,4021,99,70,130,"All";
  99. case 13: callsub Job_Changing,4020,99,70,130,"All";
  100. case 14: next; goto Main_Menu;
  101. }
  102. }
  103.  
  104. Job_Changing:
  105. mes " ","Job Change to: ^ff0000"+jobname(getarg(0))+"^000000 ?";
  106. if ( select ( "- Yes","- No" ) == 2) close;
  107. resetskill;
  108. resetstatus;
  109. SkillPoint = 0;
  110. percentheal 100,100;
  111. jobchange getarg(0);
  112. Instajobnlevel = 1;
  113. atcommand "@allskills";
  114. JobLevel = getarg(2);
  115. BaseLevel = getarg(1);
  116. SkillPoint = getarg(3);
  117. announce "[ SyokRO ]: "+strcharinfo(0)+" has changed to "+jobname(getarg(0))+" job.",bc_self|bc_blue;
  118. callsub Get_Platinum;
  119. close;
  120.  
  121. Get_Platinum:
  122. skill 142,1,0;
  123. switch(BaseClass) {
  124. case 0: if (Class != 23) skill 143,1,0; break;
  125. case 1: skill 144,1,0; skill 145,1,0; skill 146,1,0; break;
  126. case 2: skill 157,1,0; break;
  127. case 3: skill 147,1,0; skill 148,1,0; break;
  128. case 4: skill 156,1,0; break;
  129. case 5: skill 153,1,0; skill 154,1,0; skill 155,1,0; break;
  130. case 6: skill 149,1,0; skill 150,1,0; skill 151,1,0; skill 152,1,0; break;
  131. default: break;
  132. }
  133. switch(BaseJob) {
  134. case 7: skill 1001,1,0; break;
  135. case 8: skill 1014,1,0; break;
  136. case 9: skill 1006,1,0; break;
  137. case 10: skill 1012,1,0; skill 1013,1,0; break;
  138. case 11: skill 1009,1,0; break;
  139. case 12: skill 1003,1,0; skill 1004,1,0; break;
  140. case 14: skill 1002,1,0; break;
  141. case 15: skill 1015,1,0; skill 1016,1,0; break;
  142. case 16: skill 1007,1,0; skill 1008,1,0; skill 1017,1,0; skill 1018,1,0; skill 1019,1,0; break;
  143. case 17: skill 1005,1,0; break;
  144. case 18: skill 238,1,0; break;
  145. case 19: skill 1010,1,0; break;
  146. case 20: skill 1011,1,0; break;
  147. default: break;
  148. }
  149. return;
  150. OnInit:
  151. query_sql("SELECT `name` from `char` WHERE `char_id` = 1",.names$);
  152. end;
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement