diff options
author | Saulc <lucashelaine14@gmail.com> | 2025-03-15 08:51:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-03-15 08:51:55 -0300 |
commit | 06105e1e7521ce672b752c80366fae7c0653e7ed (patch) | |
tree | 4875fcc38133c8b2d9e5c088f3d142d0dd6326a6 | |
parent | cbba3e2979deb3454477f402904a22da307707e0 (diff) | |
download | serverdata-06105e1e7521ce672b752c80366fae7c0653e7ed.tar.gz serverdata-06105e1e7521ce672b752c80366fae7c0653e7ed.tar.bz2 serverdata-06105e1e7521ce672b752c80366fae7c0653e7ed.tar.xz serverdata-06105e1e7521ce672b752c80366fae7c0653e7ed.zip |
Implement the remaining, missing chests
-rw-r--r-- | db/re/mob_db.conf | 9 | ||||
-rw-r--r-- | npc/functions/mobpoint.txt | 1 | ||||
-rw-r--r-- | npc/functions/mobspecial.txt | 28 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
4 files changed, 39 insertions, 0 deletions
diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index 2d55e1061..80fc26c5d 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -6211,6 +6211,15 @@ mob_db: ( AttackMotion: 672 DamageMotion: 480 // Effect when die: Poison plus stun (lock by thorn) this chest may drop thorn items too :b + Drops: { + ThornArrow: 6000 + HardSpike: 4500 + ThornAmmoBox: 3000 + DwarvenSake: 1500 + AncientBlueprint: 75 + NymphPoison: 25 + SacredImmortalityPotion: 1 + } }, { Id: 1148 diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index a11a2f2d3..243cfed1d 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -109,6 +109,7 @@ OnNPCKillEvent: // call functions callfunc "mobpoint"; callfunc "mobhunter"; + callfunc "mobspecial"; callfunc "SQuest_Hasan"; callfunc "SaggyMobCount"; callfunc "dausen_mobtutorial"; diff --git a/npc/functions/mobspecial.txt b/npc/functions/mobspecial.txt new file mode 100644 index 000000000..60f5b8d26 --- /dev/null +++ b/npc/functions/mobspecial.txt @@ -0,0 +1,28 @@ +// TMW2 Scripts +// Author: Jesusalva +// Desc: Special functions for killing certain monster types +// Designed by SAULC LE GRANDE + +// mobspecial(mobID) → Manual fix for special mobs +function script mobspecial { + .@mobId=getarg(0, killedrid); + switch (.@mobId) { + case WildxChest: + percentheal 70, 0; + break; + case ManaChest: + percentheal 90, 75; + break; + case ThornChest: + callfunc "SC_Bonus", (200-readparam2(bVit))/20, SC_POISON, 1; + //callfunc "SC_Bonus", (200-readparam2(bVit))/20, SC_STUN, 1; + break; + case MalignChest: + percentheal -30, 0; + callfunc "SC_Bonus", (200-readparam2(bVit))/20, any(SC_BLOODING, SC_CURSE), 1; + break; + } + return; +} + + diff --git a/npc/scripts.conf b/npc/scripts.conf index 5732cccf9..41f030676 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -59,6 +59,7 @@ "npc/functions/marriage.txt", "npc/functions/mobpoint.txt", "npc/functions/mobhunter.txt", +"npc/functions/mobspecial.txt", "npc/functions/mounts.txt", "npc/functions/news.txt", "npc/functions/npcmove.txt", |