summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf30
-rw-r--r--npc/002-3/nard.txt7
-rw-r--r--npc/functions/fishing.txt4
3 files changed, 38 insertions, 3 deletions
diff --git a/db/constants.conf b/db/constants.conf
index fd53bc45a..e8aab7562 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -1456,7 +1456,7 @@ constants_db: {
SPEAR_MERC_GUILD: 1
SWORD_MERC_GUILD: 2
- comment__: "Effects"
+ comment__: "Hercules Effects"
EF_NONE: -1
EF_HIT1: 0
EF_HIT2: 1
@@ -4390,6 +4390,34 @@ constants_db: {
// Final tier
CRGROUP_FINAL: 8192
+ comment__: "Effects"
+ FX_BLVLUP: 0
+ FX_JLVLUP: 1
+ FX_WARPPOINT: 5
+ FX_HEALING: 7
+ FX_POISON: 8
+ FX_AFK: 10
+ FX_CRITICAL: 11
+ FX_QUEST: 12
+ FX_HIT: 16
+ FX_MAGIC: 23
+ FX_SUCCESS: 27
+ FX_FAILURE: 28
+ FX_SMOKE: 50
+ FX_GRENADE: 51
+ FX_TORCH: 53
+ FX_GOLDSTAR: 54
+ FX_MGSHIELD: 60
+ FX_MGWARP: 64
+ FX_CIRCLE: 310
+ FX_LIGHTNING: 312
+
+ // Magic particles
+ FX_SPECIAL: 700
+ FX_BUFF: 701
+ FX_ATTACK: 702
+ FX_HEALING: 703
+
comment__: "Emotes"
// TMW2 Emotes
E_DISGUST: 1
diff --git a/npc/002-3/nard.txt b/npc/002-3/nard.txt
index 3e8432b79..bdb6d7c1d 100644
--- a/npc/002-3/nard.txt
+++ b/npc/002-3/nard.txt
@@ -61,6 +61,13 @@ L_Checker:
mesn l("Elmo");
mesq l("I, Elmo, captain's deputy, will help you to make the maximum possible money in Candor!");
mesc l("Talk to Elmo to get an EXP UP Boost until level 15!"), 2;
+ // Actually, why don't we apply it right now...?
+ .@AVG_LEVEL=($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3;
+ .@BONUS=.@AVG_LEVEL/4;
+ sc_end SC_OVERLAPEXPUP;
+ sc_start SC_OVERLAPEXPUP, 3600000, min(25, .@BONUS);
+ specialeffect FX_SPECIAL, SELF, getcharid(3);
+ mesc l("EXP Gain raised in @@% for one hour!", .@BONUS), 2;
next;
showavatar NPC_NARD;
mesn;
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index b09cb0d48..c071f20d2 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -93,12 +93,12 @@ function script fishing {
.@regen_time = (.@regen_time ? .@regen_time : 20);
.@success_fx = getvariableofnpc(.success_fx, .@npc$); // effect to show on success
- .@success_fx = (.@success_fx ? .@success_fx : 27);
+ .@success_fx = (.@success_fx ? .@success_fx : FX_SUCCESS);
.@failure_fx = getvariableofnpc(.failure_fx, .@npc$); // effect to show on failure
if (.@failure_fx < 1)
{
- .@failure_fx = 28;
+ .@failure_fx = FX_FAILURE;
set getvariableofnpc(.failure_fx, .@npc$), .@failure_fx; // needed by global handler
}