diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-09-11 23:18:40 +0200 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2022-09-11 23:18:40 +0200 |
commit | d24af69864c3eb15b72fe7c070331980dc732742 (patch) | |
tree | b53dfc2ec2d49781b8abef03eee50a0d41637f35 | |
parent | 79d94fc939887d51bb0d0b6ebe591ab306d1e48c (diff) | |
download | serverdata-d24af69864c3eb15b72fe7c070331980dc732742.tar.gz serverdata-d24af69864c3eb15b72fe7c070331980dc732742.tar.bz2 serverdata-d24af69864c3eb15b72fe7c070331980dc732742.tar.xz serverdata-d24af69864c3eb15b72fe7c070331980dc732742.zip |
disable healing others
-rw-r--r-- | world/map/npc/magic/level1-lesser-heal.txt | 6 | ||||
-rw-r--r-- | world/map/npc/magic/level2-lay-on-hands.txt | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/world/map/npc/magic/level1-lesser-heal.txt b/world/map/npc/magic/level1-lesser-heal.txt index b2cd4741..7974c8a2 100644 --- a/world/map/npc/magic/level1-lesser-heal.txt +++ b/world/map/npc/magic/level1-lesser-heal.txt @@ -16,6 +16,7 @@ addtimer 500, "Magic Timer::OnClear"; // set the new debuff delitem "Lifestone", 1; callfunc "adjust_spellpower"; + if (getmap() == "033-1") goto L_SpecialRules6; set Sp, Sp - 6; misceffect FX_MAGIC_HEAL_CAST, strcharinfo(0); callfunc "magic_exp"; @@ -45,6 +46,11 @@ L_Mouboo: mes "Magic : ##3##BThis spell has no effect on animals."; close; +L_SpecialRules6: + if (@target_id == BL_ID) goto L_Continue; + message strcharinfo(0), "You cant heal others on this map!"; + end; + OnInit: set .school, SKILL_MAGIC_LIFE; set .invocation$, chr(MAGIC_SYMBOL) + "lum"; // used in npcs that refer to this spell diff --git a/world/map/npc/magic/level2-lay-on-hands.txt b/world/map/npc/magic/level2-lay-on-hands.txt index 29d9292b..75f20689 100644 --- a/world/map/npc/magic/level2-lay-on-hands.txt +++ b/world/map/npc/magic/level2-lay-on-hands.txt @@ -12,6 +12,7 @@ callfunc "adjust_spellpower"; if (getmap() == "099-4") goto L_SpecialRules4; if (getmap() == "099-5") goto L_SpecialRules5; + if (getmap() == "033-1") goto L_SpecialRules6; if (distance(BL_ID, @target_id) >= (((sqrt(@spellpower)*12)+@spellpower)/100)+2) end; if (sc_check(SC_HALT_REGENERATE,@target_id)) end; if (getequipid(equip_head, @args$) == 888) end; // magic gm top hat @@ -70,6 +71,9 @@ L_SpecialRules5: if (getequipid(equip_head, @args$) == 888) end; // magic gm top hat set @needed, get(MaxHp, @target_id) - get(Hp, @target_id); goto L_Pay; +L_SpecialRules6: + message strcharinfo(0), "You cant heal others on this map!"; + end; OnInit: set .school, SKILL_MAGIC_LIFE; |