diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-09 16:25:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-09 16:25:46 -0300 |
commit | 080204a2d70958d7a3a94bb5e6340f6db287dce0 (patch) | |
tree | 5719eb257ab7a3084adfabd3913e0b77d96bd3be /npc | |
parent | d970624d6127ee9e8add09d811d4ee0ff9e04b2a (diff) | |
download | serverdata-080204a2d70958d7a3a94bb5e6340f6db287dce0.tar.gz serverdata-080204a2d70958d7a3a94bb5e6340f6db287dce0.tar.bz2 serverdata-080204a2d70958d7a3a94bb5e6340f6db287dce0.tar.xz serverdata-080204a2d70958d7a3a94bb5e6340f6db287dce0.zip |
Register FX Particles with constants, and force players on Nard to get the Exp Boost
Diffstat (limited to 'npc')
-rw-r--r-- | npc/002-3/nard.txt | 7 | ||||
-rw-r--r-- | npc/functions/fishing.txt | 4 |
2 files changed, 9 insertions, 2 deletions
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 } |