Advertisement
Roxesskh

Swordman Job Master

Jun 26th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.43 KB | None | 0 0
  1. //===== rAthena Script =======================================
  2. //= swordman job changer
  3. //===== By: ==================================================
  4. //= Roxas
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= ----------------------
  9. //===== Additional Comments: =================================
  10. //= Hope this help you :3
  11. //============================================================
  12.  
  13. prontera,150,150,4  script  Swordman Job Master 856,{
  14.     mes "[^FF0000Swordman Job Master^000000]";
  15.     mes "Hello im the Master of the swordman class";
  16.     mes "i can teach you my techniques";
  17.     mes "but i need some to ask you first";
  18.     mes "";
  19.     mes "Wanna join us?";
  20.     next;
  21.     menu "What did i need?",L_required,"Swordman",L_check,"Knight / Crusader",L_check2,"Lord Knight / Paladin",L_check3,"Rune Knight / Royal Guard",L_check4,"No thanks",L_partir;
  22.  
  23.     L_required:
  24.         mes "[^FF0000Swordman Job Master^000000]";
  25.         mes "if youre novice you must be job level 10";
  26.         mes "";
  27.         mes "for all the others jobs you must be job level 40";
  28.         mes "";
  29.         mes "and bring me ^FF000040^000000 Irons"; //998
  30.         close;
  31.  
  32.     L_check:
  33.         mes "[^FF0000Swordman Job Master^000000]";
  34.         if(JobLevel == 10)
  35.         if (BaseClass==Job_Novice) goto change;
  36.         mes "Sorry i cant help you";
  37.         close;
  38.         end;
  39.         change:
  40.         if(countitem(998) < 40) goto L_manque;
  41.         mes "The change has been made successfully";
  42.         delitem 998,40;
  43.         atcommand "@job 1";
  44.         close;
  45.         end;
  46.  
  47.     L_check2:
  48.         mes "[^FF0000Swordman Job Master^000000]";
  49.         if(JobLevel == 40)
  50.         if (BaseClass==Job_Swordman) goto change2;
  51.         mes "Sorry i cant help you";
  52.         close;
  53.         end;
  54.         change2:
  55.         mes "What you wanna be?";
  56.         menu "Knight",knight,"Crusader",crusader;
  57.        
  58.         knight:
  59.         if(countitem(998) < 40) goto L_manque;
  60.         mes "The change has been made successfully";
  61.         delitem 998,40;
  62.         atcommand "@job 7";
  63.         close;
  64.         end;
  65.        
  66.         crusader:
  67.         if(countitem(998) < 40) goto L_manque;
  68.         mes "The change has been made successfully";
  69.         delitem 998,40;
  70.         atcommand "@job 14";
  71.         close;
  72.         end;
  73.        
  74.     L_check3:
  75.         mes "[^FF0000Swordman Job Master^000000]";
  76.         if(JobLevel == 40)
  77.         if (Class==Job_Knight) goto change3; if (Class==Job_Crusader) goto change4;
  78.         mes "Sorry i cant help you";
  79.         close;
  80.         end;
  81.        
  82.         change3:
  83.         if(countitem(998) < 40) goto L_manque;
  84.         mes "The change has been made successfully";
  85.         delitem 998,40;
  86.         atcommand "@job 4008";
  87.         close;
  88.         end;
  89.        
  90.         change4:
  91.         if(countitem(998) < 40) goto L_manque;
  92.         mes "The change has been made successfully";
  93.         delitem 998,40;
  94.         atcommand "@job 4015";
  95.         close;
  96.         end;
  97.        
  98.     L_check4:
  99.         mes "[^FF0000Swordman Job Master^000000]";
  100.         if(JobLevel == 40)
  101.         if (Class==Job_Lord_Knight) goto change5; if (Class==Job_Paladin) goto change6;
  102.         mes "Sorry i cant help you";
  103.         close;
  104.         end;
  105.        
  106.         change5:
  107.         if(countitem(998) < 40) goto L_manque;
  108.         mes "The change has been made successfully";
  109.         delitem 998,40;
  110.         atcommand "@job 4060";
  111.         close;
  112.         end;
  113.        
  114.         change6:
  115.         if(countitem(998) < 40) goto L_manque;
  116.         mes "The change has been made successfully";
  117.         delitem 998,40;
  118.         atcommand "@job 4073";
  119.         close;
  120.         end;
  121.  
  122.     L_partir:
  123.         mes "[^FF0000Swordman Job Master^000000]";
  124.         mes "Bye Bye ~.";
  125.         close;
  126.  
  127.  
  128.     L_manque:
  129.         mes "You lost some items:";
  130.         if(countitem(998) < 40) mes "^FF0000"+(40 - countitem(998)) +"^000000 Iron";
  131.         close;
  132.  
  133. OnInit:
  134. waitingroom "Swordman Job Master",0;
  135. end;
  136.  
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement