summaryrefslogtreecommitdiff
path: root/npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt
diff options
context:
space:
mode:
authoreaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-21 21:15:39 +0000
committereaac <eaac@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-06-21 21:15:39 +0000
commit945b5710110eefaf9ddacbfac8f78b6556751015 (patch)
tree3d5010e39b5e7e67599cacb7ea0a1ba24b001b5f /npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt
parent904f0fd88b48db84db26f842f65ac9d2d7c110ea (diff)
downloadhercules-945b5710110eefaf9ddacbfac8f78b6556751015.tar.gz
hercules-945b5710110eefaf9ddacbfac8f78b6556751015.tar.bz2
hercules-945b5710110eefaf9ddacbfac8f78b6556751015.tar.xz
hercules-945b5710110eefaf9ddacbfac8f78b6556751015.zip
* Update to the eAAC Scripts (don't ask...). [eAAC]
*= Removed disguiser.txt as it seems to error, thus failing to comply with eAAC terms git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10801 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt')
-rw-r--r--npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt43
1 files changed, 19 insertions, 24 deletions
diff --git a/npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt b/npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt
index 593d653aa..2cfc9608e 100644
--- a/npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt
+++ b/npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt
@@ -3,9 +3,9 @@
//===== By: ==================================================
//= Skotlex
//===== Current Version: =====================================
-//= 1.9
+//= 2.0
//===== Compatible With: =====================================
-//= eAthena SVN 3424+
+//= eAthena SVN8637+
//===== Description: =========================================
//= Part of the Kafra Express Script Package.
//= Offers dying of hair, clothes and hair-style adjusts
@@ -13,7 +13,7 @@
//= See config.txt for configuration.
//============================================================
-- script keInit_dye -1,{
+- script keInit_dye {
OnInit: //Load Config
donpcevent "keConfig::OnLoadDye";
end;
@@ -24,26 +24,21 @@ function script F_keStylist {
function SF_inputpalette;
function SF_wheelpalette;
- set @jobClass,callfunc("GF_getJobLevel",class);
- set @maxCDye,0;
-
- switch (@jobClass) {
- case 0:
- set @maxCDye, $@kedy_clothJN;
- break;
- case 1:
- set @maxCDye, $@kedy_clothJ1ST;
- break;
- case 2:
- set @maxCDye, $@kedy_clothJ2ND;
- break;
- case 3:
- set @maxCDye, $@kedy_clothJSN;
- break;
- case 4:
- set @maxCDye, $@kedy_clothJWED;
- break;
- }
+ set @jobClass,eaclass(class);
+ if (@jobClass == -1)
+ set @maxCDye,0;
+ else {
+ if ((@jobClass&EAJ_BASEMASK) == EAJ_NOVICE) {
+ if (@jobClass&EAJL_2)
+ set @maxCDye, $@kedy_clothJSN;
+ else
+ set @maxCDye, $@kedy_clothJN;
+ } else {
+ if (@jobClass&EAJL_2)
+ set @maxCDye, $@kedy_clothJ2ND;
+ else
+ set @maxCDye, $@kedy_clothJ1ST;
+ } }
do {
if ($@kedy_enableHairstyle) {
set @kmenu, select(
@@ -136,4 +131,4 @@ function SF_wheelpalette {
emotion e_lv2;
} //SF_ end
-} \ No newline at end of file
+}