diff options
author | Jesusaves <cpntb1@ymail.com> | 2025-08-03 22:02:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-08-03 22:02:46 -0300 |
commit | d235821b75fc2548efc096f70ae2869bf99077ed (patch) | |
tree | 8a7e69fbd306cd41c206ff1ea180c82553430d49 | |
parent | 3dba73dac15e56410effdbfdf38bb9debf9186b3 (diff) | |
download | serverdata-d235821b75fc2548efc096f70ae2869bf99077ed.tar.gz serverdata-d235821b75fc2548efc096f70ae2869bf99077ed.tar.bz2 serverdata-d235821b75fc2548efc096f70ae2869bf99077ed.tar.xz serverdata-d235821b75fc2548efc096f70ae2869bf99077ed.zip |
New JobClass: Carry
-rw-r--r-- | db/constants.conf | 1 | ||||
-rw-r--r-- | npc/003-0/fejda.txt | 4 | ||||
-rw-r--r-- | npc/003-1/ishi.txt | 10 | ||||
-rw-r--r-- | npc/functions/hub.txt | 6 | ||||
-rw-r--r-- | npc/functions/util.txt | 2 |
5 files changed, 17 insertions, 6 deletions
diff --git a/db/constants.conf b/db/constants.conf index e7bbd22c7..6c14df53b 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -2646,6 +2646,7 @@ constants_db: { CLASS_PALADIN: 256 // Bonus on attack speed CLASS_NINJA: 512 // Bonus on evasion CLASS_SAGE: 1024 // Bonus on potions/effects + CLASS_CARRY: 2048 // Bonus on max weight @include "db/si_config.conf" diff --git a/npc/003-0/fejda.txt b/npc/003-0/fejda.txt index dac256255..d34344f3d 100644 --- a/npc/003-0/fejda.txt +++ b/npc/003-0/fejda.txt @@ -56,13 +56,15 @@ O CLASS_WIZARD: 4 // Bonus on magic damage O CLASS_PALADIN: 256 // Bonus on attack speed O CLASS_NINJA: 512 // Bonus on evasion CLASS_SAGE: 1024 // Bonus on potions/effects +O CLASS_CARRY: 2048 // Bonus on max weight */ menuint l("Warrior (atk+)"), CLASS_WARRIOR, l("Wizard (matk+/mp+)"), CLASS_WIZARD, l("Paladin (aspd+)"), CLASS_PALADIN, - l("Ninja (eva+)"), CLASS_NINJA; + l("Ninja (eva+)"), CLASS_NINJA, + l("Carry (weight+)"), CLASS_CARRY; // If you pick a class you already selected, it'll be unselected diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index 14e114696..637ffced3 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -318,10 +318,13 @@ L_Grants: // Base purchase tax .@value += 500; - // World Hero reverse discount (30%) - if ($WORLD_HERO$ != strcharinfo(0)) + // World Hero / Hunter reverse discount (30%) + if ($WORLD_HERO$ != strcharinfo(0) && !(JobClass & CLASS_HUNTER)) .@value = .@value * 4 / 3; + // Academy reverse base tax (up to 200) + .@value += 25 * min(1, 8-ACADEMIC_RANK); + // Legendary Heroes reverse discount (10%) if (!islegendary()) .@value = .@value * 11 / 10; @@ -330,9 +333,6 @@ L_Grants: if (alignment() < 0) .@value -= 100; - // Academy reverse base tax (up to 200) - .@value += 25 * min(1, 8-ACADEMIC_RANK); - // Base price (+20%) .@value = .@value * 6 / 5; diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 5154d0769..12b78f914 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -1510,6 +1510,12 @@ function script HUB_PCBonus { bonus bFlee, .@blvl / 50; // Max +16 else bonus bFlee, -(.@blvl / 20); // Max -40 + + // Carry + if (JobClass & CLASS_CARRY) + bonus bAddMaxWeight, .@blvl; // Max 8kg + else + bonus bAddMaxWeight, REBIRTH*10; // Max 50g } // Double hack fix diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 68cd22545..7d1e31c03 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -761,6 +761,8 @@ function script CurrentClasses { .@bf$+="Ninja "; if (.@cl & CLASS_SAGE) .@bf$+="Sage "; + if (.@cl & CLASS_CARRY) + .@bf$+="Carry "; // Fallback if (.@bf$ == "") |