summaryrefslogtreecommitdiff
path: root/npc/jobs/2-2-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/jobs/2-2-1')
-rw-r--r--npc/jobs/2-2-1/Champion.txt102
-rw-r--r--npc/jobs/2-2-1/Clown.txt123
-rw-r--r--npc/jobs/2-2-1/Creator.txt119
-rw-r--r--npc/jobs/2-2-1/Gypsy.txt123
-rw-r--r--npc/jobs/2-2-1/Paladin.txt120
-rw-r--r--npc/jobs/2-2-1/Professor.txt101
-rw-r--r--npc/jobs/2-2-1/Stalker.txt131
7 files changed, 112 insertions, 707 deletions
diff --git a/npc/jobs/2-2-1/Champion.txt b/npc/jobs/2-2-1/Champion.txt
index a86818498..d86a3f749 100644
--- a/npc/jobs/2-2-1/Champion.txt
+++ b/npc/jobs/2-2-1/Champion.txt
@@ -1,89 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Champion ==-
valkyrie.gat,53,42,4 script Champion 52,{
- if(getskilllv(156) > 0) set @qsk;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4005) && (readparam(55) >= 45)) goto L_HACO;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4005) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Champion]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Champion]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Champion,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Champion]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Champion]";
- mes "You're not ready to become an Acolyte High yet...";
- close;
-
-L_Class:
- mes "[Champion]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Champion yet.";
- close;
-
-L_Levels:
- mes "[Champion]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Champion";
- close;
-
-L_HNov:
- mes "[Champion]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 28;
- next;
- mes "[Champion]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- next;
-qsk:
- skill 156,1,0;
- set @qsk,0;
- goto L_HNov_2;
- close;
-
-L_HNov_2:
- mes "[Champion]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to Acolyte High";
- close;
-L_HACO:
- mes "[Champion]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Champion!";
- jobchange 39;
- close;
-
-Skill_Points:
- mes "[Champion]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Champion]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",28,"Acolyte High",39,"Champion",156,0,0,0;
+}
diff --git a/npc/jobs/2-2-1/Clown.txt b/npc/jobs/2-2-1/Clown.txt
index 9a7fe8e9e..a7e303ac5 100644
--- a/npc/jobs/2-2-1/Clown.txt
+++ b/npc/jobs/2-2-1/Clown.txt
@@ -1,110 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Clown ==-
valkyrie.gat,53,54,4z script Clown 741,{
- if(readparam(21) > 0) goto L_Female;
- if(getskilllv(147) > 0) set @qsk,1;
- if(getskilllv(148) > 0) set @qsk1,1;
- if(checkfalcon(0) > 0) goto L_Falcon;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4004) && (readparam(55) >= 45)) goto L_HARC;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4004) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Clown]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Clown]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Clown,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Clown]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Clown]";
- mes "You're not ready to become an High Archer yet.";
- close;
-
-L_Class:
- mes "[Clown]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Clown yet.";
- close;
-
-L_Levels:
- mes "[Clown]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Clown";
- close;
-
-L_HNov:
- mes "[Clown]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 27;
- next;
- mes "[Clown]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- next;
-qsk:
- skill 147,1,0;
- set @qsk,0;
- if(@qsk1 > 0) goto qsk1;
- goto L_HNov_2;
-qsk1:
- skill 148,1,0;
- set @qsk1,0;
- if(@qsk > 0) goto qsk;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Clown]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Archer";
- close;
-L_HARC:
- mes "[Clown]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Clown!";
- jobchange 43;
- close;
-
-Skill_Points:
- mes "[Clown]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Clown]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-
-L_Falcon:
- mes "[Clown]";
- mes "Please take your Falcon off before proceeding "+strcharinfo(0)+".";
- close;
-
-L_Female:
- mes "[Clown]";
- mes "Only males can become a Clown.";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",27,"High Archer",43,"Clown",147,148,0,0;
+}
diff --git a/npc/jobs/2-2-1/Creator.txt b/npc/jobs/2-2-1/Creator.txt
index a48dd7871..219091856 100644
--- a/npc/jobs/2-2-1/Creator.txt
+++ b/npc/jobs/2-2-1/Creator.txt
@@ -1,106 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Creator ==-
valkyrie.gat,53,50,6 script Creator 122,{
- if(getskilllv(153) > 0) set @qsk,1;
- if(getskilllv(154) > 0) set @qsk1,1;
- if(getskilllv(155) > 0) set @qsk2,1;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4007) && (readparam(55) >= 45)) goto L_HMERC;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4007) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Creator]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Creator]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Creator,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Creator]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Creator]";
- mes "You're not ready to become an High Merchant yet.";
- close;
-
-L_Class:
- mes "[Creator]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Creator yet.";
- close;
-
-L_Levels:
- mes "[Creator]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Creator";
- close;
-
-L_HNov:
- mes "[Creator]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 29;
- next;
- mes "[Creator]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- next;
-qsk:
- skill 153,1,0;
- set @qsk,0;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- goto L_HNov_2;
-qsk1:
- skill 154,1,0;
- set @qsk1,0;
- if(@qsk > 0) goto qsk;
- if(@qsk2 > 0) goto qsk2;
- goto L_HNov_2;
-qsk2:
- skill 155,1,0;
- set @qsk2,0;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Creator]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Merchant";
- close;
-L_HMERC:
- mes "[Creator]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Creator!";
- jobchange 42;
- close;
-
-Skill_Points:
- mes "[Creator]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Creator]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",29,"Merchant High",42,"Creator",153,154,155,0;
+}
diff --git a/npc/jobs/2-2-1/Gypsy.txt b/npc/jobs/2-2-1/Gypsy.txt
index bc3914af9..9f05d1970 100644
--- a/npc/jobs/2-2-1/Gypsy.txt
+++ b/npc/jobs/2-2-1/Gypsy.txt
@@ -1,110 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Gypsy ==-
valkyrie.gat,53,56,4 script Gypsy 101,{
- if(readparam(21) < 1) goto L_Male;
- if(getskilllv(147) > 0) set @qsk,1;
- if(getskilllv(148) > 0) set @qsk1,1;
- if(checkfalcon(0) > 0) goto L_Falcon;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4004) && (readparam(55) >= 45)) goto L_HARC;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4004) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Gypsy]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Gypsy]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Gypsy,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Gypsy]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Gypsy]";
- mes "You're not ready to become an High Archer yet.";
- close;
-
-L_Class:
- mes "[Gypsy]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Gypsy yet.";
- close;
-
-L_Levels:
- mes "[Gypsy]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Gypsy";
- close;
-
-L_HNov:
- mes "[Gypsy]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 27;
- next;
- mes "[Gypsy]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- next;
-qsk:
- skill 147,1,0;
- set @qsk,0;
- if(@qsk1 > 0) goto qsk1;
- goto L_HNov_2;
-qsk1:
- skill 148,1,0;
- set @qsk1,0;
- if(@qsk > 0) goto qsk;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Gypsy]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Archer";
- close;
-L_HARC:
- mes "[Gypsy]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Gypsy!";
- jobchange 44;
- close;
-
-Skill_Points:
- mes "[Gypsy]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Gypsy]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-
-L_Falcon:
- mes "[Gypsy]";
- mes "Please take your Falcon off before proceeding "+strcharinfo(0)+".";
- close;
-
-L_Male:
- mes "[Gypsy]";
- mes "Only females can become a Gypsy.";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",27,"High Archer",44,"Gypsy",147,148,0,0;
+}
diff --git a/npc/jobs/2-2-1/Paladin.txt b/npc/jobs/2-2-1/Paladin.txt
index 6694c973a..207c8674a 100644
--- a/npc/jobs/2-2-1/Paladin.txt
+++ b/npc/jobs/2-2-1/Paladin.txt
@@ -1,107 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Paladin ==-
valkyrie.gat,53,39,4 script Paladin 752,{
- if(getskilllv(144) > 0) set @qsk,1;
- if(getskilllv(145) > 0) set @qsk1,1;
- if(getskilllv(146) > 0) set @qsk2,1;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4002) && (readparam(55) >= 45)) goto L_HSWM;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4002) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Paladin]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Paladin]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Paladin,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Paladin]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Paladin]";
- mes "You're not ready to become an High Swordsman yet.";
- close;
-
-L_Class:
- mes "[Paladin]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Paladin yet.";
- close;
-
-L_Levels:
- mes "[Paladin]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Paladin";
- close;
-
-L_HNov:
- mes "[Paladin]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 25;
- next;
- mes "[Paladin]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- next;
-qsk:
- skill 144,1,0;
- set @qsk,0;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- goto L_HNov_2;
-qsk1:
- skill 145,1,0;
- set @qsk1,0;
- if(@qsk > 0) goto qsk;
- if(@qsk2 > 0) goto qsk2;
- goto L_HNov_2;
-qsk2:
- skill 146,1,0;
- set @qsk2,0;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Paladin]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Swordsman";
- close;
-L_HSWM:
- mes "[Paladin]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Paladin!";
- jobchange 38;
- close;
-
-Skill_Points:
- mes "[Paladin]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Paladin]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",25,"Swordman High",38,"Paladin",144,145,146,0;
+}
diff --git a/npc/jobs/2-2-1/Professor.txt b/npc/jobs/2-2-1/Professor.txt
index e7d94d9ac..9582345a3 100644
--- a/npc/jobs/2-2-1/Professor.txt
+++ b/npc/jobs/2-2-1/Professor.txt
@@ -1,88 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Professor ==-
valkyrie.gat,53,47,4 script Professor 743,{
- if(getskilllv(157) > 0) set @qsk,1;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4003) && (readparam(55) >= 45)) goto L_HMAG;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4003) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Professor]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Professor]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Professor,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Professor]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Professor]";
- mes "You're not ready to become an High Mage yet.";
- close;
-
-L_Class:
- mes "[Professor]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Professor yet.";
- close;
-
-L_Levels:
- mes "[Professor]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Professor";
- close;
-
-L_HNov:
- mes "[Professor]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 26;
- next;
- mes "[Professor]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- next;
-qsk:
- skill 157,1,0;
- set @qsk,0;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Professor]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Mage";
- close;
-L_HMAG:
- mes "[Professor]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Professor!";
- jobchange 40;
- close;
-
-Skill_Points:
- mes "[Professor]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Professor]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",26,"High Mage",40,"Professor",157,0,0,0;
+}
diff --git a/npc/jobs/2-2-1/Stalker.txt b/npc/jobs/2-2-1/Stalker.txt
index fa23b6ac5..b2cf2781f 100644
--- a/npc/jobs/2-2-1/Stalker.txt
+++ b/npc/jobs/2-2-1/Stalker.txt
@@ -1,118 +1,19 @@
-// Advance Class jobchanger after kRO Normals.
-// Checks if the player have any questskills, cart\falcon, level and such.
-// Made by Nana.
+//===== eAthena Script =======================================
+//= Advance Class jobchanger after kRO Normals.
+//===== By: ==================================================
+//= Nana
+//= finished, optimized and tested by Lupus
+//===== Current Version: =====================================
+//= 1.1
+//===== Compatible With: =====================================
+//= eAthena 1.0 +
+//===== Description: =========================================
+//= Advance Class jobchanger after kRO Normals.
+//===== Additional Comments: =================================
+//= v1.1 Made all into functions, additional checks, etc. [Lupus]
+//============================================================
// -== Stalker ==-
valkyrie.gat,53,58,4 script Stalker 747,{
- if(getskilllv(149) > 0) set @qsk,1;
- if(getskilllv(150) > 0) set @qsk1,1;
- if(getskilllv(151) > 0) set @qsk2,1;
- if(getskilllv(152) > 0) set @qsk3,1;
- if(checkcart(0) > 0) goto L_Cart;
- if(readparam(12) > 0) goto Skill_Points;
- if(readparam(19) >= 4008) goto L_Advance;
- if((readparam(19) == 4001) && (readparam(55) >= 10)) goto L_HNov;
- if((readparam(19) == 4007) && (readparam(55) >= 45)) goto L_HTHF;
- if(readparam(19) < 7) goto L_Class;
- if(readparam(19) == 4001) goto L_Class1;
- if(readparam(19) == 4007) goto L_Class;
- if((readparam(11) >= 99) && (readparam(55) >= 50) && (readparam(19) >= 7)) goto L_Change;
- if((readparam(11) < 99) && (readparam(55) < 50)) goto L_Levels;
- mes "[Stalker]";
- mes "Hi there...";
- close;
-
-L_Change:
- mes "[Stalker]";
- mes "Hello there "+strcharinfo(0)+"!";
- mes "You've made a brave choice in coming here to be reborn and stepping forth into the ranks of Stalker,";
- mes "I wish you good fortune in the near future!";
- jobchange 24;
- resetlvl(1);
- close;
-
-L_Cart:
- mes "[Stalker]";
- mes "Please un-equip that cart before continuing.";
- close;
-
-L_Class1:
- mes "[Stalker]";
- mes "You're not ready to become an High thief yet.";
- close;
-
-L_Class:
- mes "[Stalker]";
- mes "You've come far to get here. unfortunately, you're not ready to become an Stalker yet.";
- close;
-
-L_Levels:
- mes "[Stalker]";
- mes "You're doing great! keep up the good work. You'll eventually get to the point where you can be an Stalker";
- close;
-
-L_HNov:
- mes "[Stalker]";
- mes "Tread lightly ahead as you're about to enter the distinguished world of Ragnarok.";
- mes "Must great fortune follow you!";
- jobchange 30;
- next;
- mes "[Stalker]";
- mes "Let me just add in the missing Quest Skills you lost under the Reborn process if you had any, "+strcharinfo(0)+".";
- next;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- next;
-qsk:
- skill 149,1,0;
- set @qsk,0;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- goto L_HNov_2;
-qsk1:
- skill 150,1,0;
- set @qsk1,0;
- if(@qsk > 0) goto qsk;
- if(@qsk2 > 0) goto qsk2;
- if(@qsk3 > 0) goto qsk3;
- goto L_HNov_2;
-qsk2:
- skill 151,1,0;
- set @qsk2,0;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk3 > 0) goto qsk3;
- goto L_HNov_2;
-qsk3:
- skill 152,1,0;
- set @qsk3,0;
- if(@qsk > 0) goto qsk;
- if(@qsk1 > 0) goto qsk1;
- if(@qsk2 > 0) goto qsk2;
- goto L_HNov_2;
-
-L_HNov_2:
- mes "[Stalker]";
- mes "Now when the formalities are fixed, I congratulate you on your Advancement to High Thief";
- close;
-L_HTHF:
- mes "[Stalker]";
- mes "Congratulations!";
- mes "You're not finally after alot of hard work, able to enter the halls of Valkyrie as an Stalker!";
- jobchange 41;
- close;
-
-Skill_Points:
- mes "[Stalker]";
- mes "Please use all of your skillpoints before proceeding.";
- close;
-
-L_Advance:
- mes "[Stalker]";
- mes "Hey there! You are already an Reborn. You cannot reach any higher";
- mes "*whistles*";
- close;
-} \ No newline at end of file
+ callfunc "F_Rebirth",30,"Theif High",41,"Stalker",149,150,151,152;
+}