diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-04-24 15:17:04 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-04-24 15:17:04 -0400 |
commit | 931217d3ba156cecb25fa647bc572630147e60fd (patch) | |
tree | 25f2e399205e3153b0df8b862d1c213aab029d15 /world/map/npc/002-1/elanore.txt | |
parent | e8a1900fc0651a3ee74ce4cbe181fce2851f6420 (diff) | |
download | serverdata-931217d3ba156cecb25fa647bc572630147e60fd.tar.gz serverdata-931217d3ba156cecb25fa647bc572630147e60fd.tar.bz2 serverdata-931217d3ba156cecb25fa647bc572630147e60fd.tar.xz serverdata-931217d3ba156cecb25fa647bc572630147e60fd.zip |
clean global handler
Diffstat (limited to 'world/map/npc/002-1/elanore.txt')
-rw-r--r-- | world/map/npc/002-1/elanore.txt | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/world/map/npc/002-1/elanore.txt b/world/map/npc/002-1/elanore.txt index be14c8bc..b6cdde5a 100644 --- a/world/map/npc/002-1/elanore.txt +++ b/world/map/npc/002-1/elanore.txt @@ -17,6 +17,24 @@ function|script|ElanoreFix return; } +function|script|elanore_decrease_exp +{ + if (attachrid(@killerrid) == 0) + end; + set @Q_heal_exp, MAGIC_EXPERIENCE >> 24; + if (@Q_heal_exp < 8) goto L_OnPcKillWipe; + set @Q_heal_exp, @Q_heal_exp - 8; + goto L_OnPcKillFinish; + +L_OnPcKillWipe: + set @Q_heal_exp, 0; + goto L_OnPcKillFinish; + +L_OnPcKillFinish: + set MAGIC_EXPERIENCE, (MAGIC_EXPERIENCE & ~(255 << 24)) | (@Q_heal_exp << 24); + return; +} + 002-1,75,62,0|script|Elanore#_M|108 { set @has_magic, getskilllv(SKILL_MAGIC); @@ -155,22 +173,6 @@ L_Main: "Goodbye!", L_bye; goto L_Close; -OnPCKillEvent: - if (attachrid(@killerrid) == 0) - end; - set @Q_heal_exp, MAGIC_EXPERIENCE >> 24; - if (@Q_heal_exp < 8) goto L_OnPcKillWipe; - set @Q_heal_exp, @Q_heal_exp - 8; - goto L_OnPcKillFinish; - -L_OnPcKillWipe: - set @Q_heal_exp, 0; - goto L_OnPcKillFinish; - -L_OnPcKillFinish: - set MAGIC_EXPERIENCE, (MAGIC_EXPERIENCE & ~(255 << 24)) | (@Q_heal_exp << 24); - goto L_Close; - L_Lifestones: mes "[Elanore the Healer]"; mes "\"I always need components for my own healing spells. If you bring me ten gamboge leaves, ten alizarin leaves, ten mauve leaves and ten cobalt leaves, I can make ten lifestones; I will give you half of them.\""; |