From 7c0d97709c232044403d77c6c66d2e792365d5c4 Mon Sep 17 00:00:00 2001 From: euphyy Date: Thu, 12 Jul 2012 18:57:02 +0000 Subject: * Added Expanded Super Novice support to custom Job Master, and Kagerou/Oboro as well in comments (npc\custom\jobmaster.txt) * Clarified rare_drop_announce description, since a lot of people have had trouble with it for whatever reason (conf\battle\drops.conf) * Fixed a minor "viewpoint" argument error, bugreport:6221 (npc\jobs\3-2\royal_guard.txt) * Deleted custom Kiel Dungeon warper (npc\custom\quests\kiel_quest.txt) * Deleted custom Bongun Sword quest (npc\custom\quests\bongunsword.txt) * Deleted custom Book of the Devil quest (npc\custom\quests\bookofthedevil.txt) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16418 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/custom/jobmaster.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'npc/custom/jobmaster.txt') diff --git a/npc/custom/jobmaster.txt b/npc/custom/jobmaster.txt index 4580ba148..42e4a3776 100644 --- a/npc/custom/jobmaster.txt +++ b/npc/custom/jobmaster.txt @@ -3,13 +3,14 @@ //===== By: ================================================== //= Euphy //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= rAthena SVN r16114+ //===== Description: ========================================= //= A fully functional job changer. //===== Additional Comments: ================================= //= 1.1 Fixed reset on Baby job change. [Euphy] +//= 1.2 Added Expanded Super Novice support and initial Kagerou/Oboro support. [Euphy] //============================================================ prontera,153,193,6 script Job Master 123,{ @@ -49,6 +50,18 @@ function Job_Menu; function A_An; Job_Menu(((.@i==1)?4001:roclass(.@eac|EAJL_THIRD))); mes "[Job Master]"; } } set .@j1, roclass(.@eac|EAJL_2_1); set .@j2,roclass(.@eac|EAJL_2_2); + if ((.@eac&EAJ_UPPERMASK) == EAJ_SUPER_NOVICE) setarray .@exp[0],roclass(.@eac|EAJL_THIRD),99; + // Kagerou & Oboro pending skill completion. + // if (Class == Job_Ninja) setarray .@exp[0],.@j1,70; + if (.@exp[0] && .ThirdClass) { + if (BaseLevel < .Rebirth[0] || JobLevel < .@exp[1]) { + set .@blvl, .Rebirth[0]-BaseLevel; set .@jlvl, .@exp[1]-JobLevel; + mes "You need "+((.@blvl>0)?.@blvl+" more base levels "+((.@jlvl>0)?"/ ":""):"")+((.@jlvl>0)?.@jlvl+" more job levels ":"")+"to continue."; + close; } + mes "Switch to "+jobname(.@exp[0])+"?"; + next; + Job_Menu(.@exp[0]); + close; } if (.@eac&EAJL_2) if (.@eac&(EAJL_UPPER|EAJL_BABY) || roclass(.@eac|EAJL_UPPER) == -1) { mes "No more jobs are available."; @@ -96,7 +109,7 @@ function Job_Menu { mes "Are you sure?"; next; } else set .@i, getarg(0); - if (select(" ~ Change into ^0055FF"+jobname(.@i)+"^000000 class: ~ ^777777Go back^000000")==1) { + if (select(" ~ Change into ^0055FF"+jobname(.@i)+"^000000 class: ~ ^777777"+((getargcount() > 1)?"Go back":"Cancel")+"^000000")==1) { mes "[Job Master]"; mes "You are now "+A_An(jobname(.@i))+"!"; if (.@i==4001 && .LastJob) set lastJob, Class; -- cgit v1.2.3-60-g2f50