From 120de042582f308f52d90239251be4adc6aaf4ed Mon Sep 17 00:00:00 2001 From: mandark022 Date: Wed, 4 Apr 2012 03:21:23 +0000 Subject: Fixed (bugreport:5429) corrected requirements checking before job change to Minstrel. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15832 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/jobs/3-2/minstrel.txt | 57 ++++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 26 deletions(-) (limited to 'npc/jobs') diff --git a/npc/jobs/3-2/minstrel.txt b/npc/jobs/3-2/minstrel.txt index 307683c78..9d23b507c 100644 --- a/npc/jobs/3-2/minstrel.txt +++ b/npc/jobs/3-2/minstrel.txt @@ -4,7 +4,7 @@ //= Masao //= Credits: Muad_Dib //===== Current Version: ===================================== -//= 1.0 +//= 1.1 //===== Compatible With: ===================================== //= Any rAthena SVN //===== Description: ========================================= @@ -12,6 +12,7 @@ //= Job change Quest from Bard / Clown -> Minstrel. //===== Additional Comments: ================================= //= 1.0 First Version. +//= 1.1 Fix the checking of requirements before job change to Minstel - [JayPee] //============================================================ alberta,196,133,4 script Bard#job_min 486,{ @@ -2492,31 +2493,14 @@ OnTouch: prt_in,94,172,4 script Karian#job_min3 480,{ - if ((Class >= 4023) && (Class <= 4045)){ - mes "[Karian]"; - mes "Why... Why are you so little?"; - close; - } - if(checkweight(1201,1) == 0){ - mes "^3355FFWait a minute! You're"; - mes "carrying too many items"; - mes "right now: store some of"; - mes "your extra things in Kafra"; - mes "Storage, and then come back.^000000"; - close; - } - if (JobLevel < 50 || BaseLevel < 99){ - mes "[Karian]"; - mes "Hey... why are you so low?"; - mes "How did you lose levels?"; - close; - } - if (job_min == 27 || SkillPoint != 0){ - mes "[Karian]"; - mes "Hey... Don't you know how to use your skill points?"; - mes "You should use them."; - close; - }else if (job_min > 99){ +if ((Class >= 4023) && (Class <= 4045)){ + mes "[Karian]"; + mes "Why... Why are you so little?"; + close; +} +if(job_min >= 27) +{ + if (job_min > 99){ switch(select("Talk.:Leave.")){ case 1: mes "[Maestro Song]"; @@ -2548,6 +2532,26 @@ prt_in,94,172,4 script Karian#job_min3 480,{ end; } } + if(checkweight(1201,1) == 0){ + mes "^3355FFWait a minute! You're"; + mes "carrying too many items"; + mes "right now: store some of"; + mes "your extra things in Kafra"; + mes "Storage, and then come back.^000000"; + close; + } + if (JobLevel < 50 || BaseLevel < 99){ + mes "[Karian]"; + mes "Hey... why are you so low?"; + mes "How did you lose levels?"; + close; + } + if (SkillPoint != 0){ + mes "[Karian]"; + mes "Hey... Don't you know how to use your skill points?"; + mes "You should use them."; + close; + } if (Class == Job_Bard || Class == Job_Clown){ mes "[Karian]"; mes "I'm sorry about the lie."; @@ -2598,6 +2602,7 @@ prt_in,94,172,4 script Karian#job_min3 480,{ mes "Huh?"; close; } +} mes "[Karian]"; mes "How did you get in here?"; close; -- cgit v1.2.3-70-g09d2