From 57c2a527907c73e1615fab2834d7e8a97ef08592 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Tue, 31 Jul 2007 09:11:38 +0000 Subject: * Added the "F_BlockHigh" function back in, as it's still used by 2-x job quests. - Fix the assassin job quest item reward bug. Cheap fix until it's rewritten. * Added official Pang Voice skill quest for bards. Further official 2-x skill quests to come. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10938 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/jobs/valkyrie.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'npc/jobs/valkyrie.txt') diff --git a/npc/jobs/valkyrie.txt b/npc/jobs/valkyrie.txt index ace481cf6..21d6bc5ae 100644 --- a/npc/jobs/valkyrie.txt +++ b/npc/jobs/valkyrie.txt @@ -30,6 +30,8 @@ //= 2.7 Rescripted to Aegis 10.3 standards. [L0ne_W0;f] //= Removed all functions as they are no longer required. //= Correct job level requirements for 1-1 -> 2-x. +//= 2.7a Added Function "F_BlockHigh" back in until rewriteing of the 2-x [L0ne_W0lf] +//= scripts are comepleted. //============================================================ valkyrie,48,86,4 script Valkyrie# 811,{ @@ -386,3 +388,48 @@ S_WarpChar: valkyrie,48,73,0 warp valk01 1,1,valkyrie,48,64 valkyrie,48,66,0 warp valk01 1,1,valkyrie,48,75 + +// function GUIDE player to Valhalla for getting 3rd JOB +// this function prevents passing 2nd JOB QUESTS by advanced classes also +//getarg(0) - High Job ID +//getarg(1) - High Job Name +//getarg(2) - 3rd Job ID +//getarg(3) - 3rd Job Name +//getarg(4) - NPC Name +function script F_BlockHigh { + if(Upper != 1) return; //This func should interact with Advanced classes only + mes "["+getarg(4)+"]"; + if(Class == getarg(0) && ADVJOB == getarg(2)) goto L_RIGHTHIGH; + if(Class == getarg(2)) goto L_RIGHT3RD; + if(Class >= Job_Lord_Knight && Class <= Job_Paladin2) goto L_ALREADY3RD; //already advanced class, but from wrong guild +//this player is a High Novice + if(Class == Job_Novice_High) mes "Hello, Novice High! If you are going to became a "+getarg(1)+", then go visit your very first job teacher."; +//this player has 1st advanced job, but from wrong guild + if(Class == getarg(0)) mes "A "+getarg(1)+"?"; + if(Class != Job_Novice_High) mes "Rumors say only Valhallana knows your way..."; + emotion e_sry; + close; + +L_RIGHT3RD: + mes "Well, hello there! You look... younger."; + emotion e_hmm; + next; + mes "["+getarg(4)+"]"; + mes "You are always welcome here, "+strcharinfo(0)+"!"; + mes "Our good old guild is your second home, isn't it?"; + emotion e_no1; + close; + +L_RIGHTHIGH: + mes "Hello, "+strcharinfo(0)+"!"; + mes "If you are going to become a "+getarg(3)+", then you should visit Valhalla again."; + if(JobLevel < 45) mes "But you need at least Job Level 45 or higher."; + emotion e_gasp; + close; + +L_ALREADY3RD: + mes "A "+getarg(3)+"?"; + mes "You don't belong to our guild. Begone!"; + emotion e_omg; + close; +} \ No newline at end of file -- cgit v1.2.3-60-g2f50