- More optimization to custom folder. (Optimized by Spre)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13214 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Kisuka 2008-09-14 20:03:15 +00:00
parent 0264d62651
commit 99db5084fb
2 changed files with 98 additions and 110 deletions

View File

@ -3,14 +3,15 @@
//===== By =================================================== //===== By ===================================================
//= Lupus //= Lupus
//===== Version ============================================== //===== Version ==============================================
//= 1.0 //= 1.1
//===== Compatible With ====================================== //===== Compatible With ======================================
//= eAthena 5760+ //= eAthena 5760+
//===== Description ========================================== //===== Description ==========================================
//= This script should move vending crowds from Prontera //= This script should move vending crowds from Prontera
//= streets to a suitable market place. Save your traffic 8) //= streets to a suitable market place. Save your traffic 8)
//===== Comments ============================================= //===== Comments =============================================
// No comments yet //=1.0 unknown
//=1.1 Optimized it, Removed labels. [Spre]
//============================================================ //============================================================
@ -18,14 +19,11 @@ prontera,144,174,3 script Market Place 722,{
mes"[Market Place]"; mes"[Market Place]";
mes"Tristan III's order: ^FF0000Move all the private shops to a special Market Place^000000."; mes"Tristan III's order: ^FF0000Move all the private shops to a special Market Place^000000.";
next; next;
menu "Enter the Market",M_ENTER, "Cancel",-; if (select("Yes Please:No") == 2) {
close2; close;
end; }
// I didn't see the need to check and show venders.... Since it didnt even work
M_ENTER:
if(rand(10)==0 && checkcart() && @mrketflg<30 && @mrketflg>5 && getcharid(2)>1) FlagEmblem getcharid(2);
warp "gon_test",27+rand(5),98; warp "gon_test",27+rand(5),98;
set @mrketflg,@mrketflg+1;
end; end;
} }

View File

@ -9,103 +9,93 @@
//===== Description: ======================================================================== //===== Description: ========================================================================
//= Single NPC that assigns quests skills for all classes. //= Single NPC that assigns quests skills for all classes.
//===== Additional Comments: ================================================================ //===== Additional Comments: ================================================================
//= Added advanced classes by ShadowLady. //=2.0 Added advanced classes by ShadowLady.
//= Added baby clases by Midas //=2.1 Added baby clases by Midas
//= Simplified Job Checks [Silentdragon] //=2.2 Simplified Job Checks [Silentdragon]
//=2.3 Thehell? Cleaned up script removed the nastiness. Also added rebirth skills. [Spre]
//=2.4 Added Advanced skills. [Spre]
//=========================================================================================== //===========================================================================================
prontera,128,200,6 script Platinum Skill NPC 94,{ prontera,128,200,6 script Platinum Skill NPC 94,{
mes "[Platinum Skill NPC]"; mes "[Platinum Skill NPC]";
mes "I can give you the special skills available to your job. Would you like these skills now?"; mes "I can give you the special skills available to your job. Would you like these skills now?";
next; next;
menu "Yes",Lgetskills,"No",Lnogetskills; if (select("Yes Please:No") == 2) {
Lgetskills:
if (BaseClass==Job_Novice) goto Lskillsnovice;
if (BaseClass==Job_Swordman) goto Lskillsswordie;
if (BaseClass==Job_Mage) goto Lskillsmage;
if (BaseClass==Job_Archer) goto Lskillsarcher;
if (BaseClass==Job_Acolyte) goto Lskillsaco;
if (BaseClass==Job_Merchant) goto Lskillsmerchie;
if (BaseClass==Job_Thief) goto Lskillsthief;
Lskillsnovice:
mes "[Platinum Skill NPC]"; mes "[Platinum Skill NPC]";
mes "I see that you are a Novice Class. I will now add the special skills available to these jobs."; mes "Have a nice day... >.>";
close;
}
if (BaseClass==Job_Novice) {
skill 142,1,0; skill 142,1,0;
if(BaseJob==0) skill 143,1,0; skill 143,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Swordman) {
next;
goto LskillsEND;
Lskillsswordie:
mes "[Platinum Skill NPC]";
mes "I see that you are a Swordman Class. I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 144,1,0; skill 144,1,0;
skill 145,1,0; skill 145,1,0;
skill 146,1,0; skill 146,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Mage) {
next;
goto LskillsEND;
Lskillsmage:
mes "[Platinum Skill NPC]";
mes "I see that you are a Mage Class. I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 157,1,0; skill 157,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Archer) {
next;
goto LskillsEND;
Lskillsarcher:
mes "[Platinum Skill NPC]";
mes "I see that you are an Archer Class. I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 147,1,0; skill 147,1,0;
skill 148,1,0; skill 148,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Acolyte) {
next;
goto LskillsEND;
Lskillsaco:
mes "[Platinum Skill NPC]";
mes "I see that you are an Acolyte Class. I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 156,1,0; skill 156,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Merchant) {
next;
goto LskillsEND;
Lskillsmerchie:
mes "[Platinum Skill NPC]";
mes "I see that you are a Merchant Class.I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 153,1,0; skill 153,1,0;
skill 154,1,0; skill 154,1,0;
skill 155,1,0; skill 155,1,0;
mes " "; close;
mes "You now have all the special skills available to the these jobs."; } else if (BaseClass==Job_Thief) {
next;
goto LskillsEND;
Lskillsthief:
mes "[Platinum Skill NPC]";
mes "I see that you are a Thief Class. I will now add the special skills available to these jobs.";
skill 142,1,0; skill 142,1,0;
skill 149,1,0; skill 149,1,0;
skill 150,1,0; skill 150,1,0;
skill 151,1,0; skill 151,1,0;
skill 152,1,0; skill 152,1,0;
mes " ";
mes "You now have all the special skills available to the these jobs.";
next;
goto LskillsEND;
LskillsEND:
mes "[Platinum Skill NPC]";
mes "Have a nice day.";
close; close;
Lnogetskills: } else if (BaseClass==Job_Lord_Knight) {
mes "[Platinum Skill NPC]"; skill 1002,1,0;
mes "Aww, how come you don't want my special skills?"; close;
mes "*sob* FINE!"; } else if (BaseClass==Job_High_Wizard) {
mes "Have a nice day... >.>"; skill 1006,1,0;
close;
} else if (BaseClass==Job_Professor) {
skill 1007,1,0;
close;
} else if (BaseClass==Job_Sniper) {
skill 1009,1,0;
close;
} else if (BaseClass==Job_Clown) {
skill 1010,1,0;
close;
} else if (BaseClass==Job_Gypsy) {
skill 1011,1,0;
close;
} else if (BaseClass==Job_High_Priest) {
skill 1014,1,0;
skill 363,10,0;
close;
} else if (BaseClass==Job_Champion) {
skill 1015,1,0;
skill 1016,10,0;
close;
} else if (BaseClass==Job_WhiteSmith) {
skill 1012,1,0;
skill 1013,1,0;
close;
} else if (BaseClass==Job_Assassin_Cross) {
skill 1003,1,0;
skill 1004,1,0;
close;
} else if (BaseClass==Job_Stalker) {
skill 1005,1,0;
close; close;
} }
}