diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-02 04:04:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-02 04:04:21 -0300 |
commit | 19e2021fd657664bb854f1b73247eade047fe58a (patch) | |
tree | 2aeb276c571259c02352370dba83b1a515192440 | |
parent | becba86a3861bc18fc0479a35c4e56f84a160715 (diff) | |
download | serverdata-19e2021fd657664bb854f1b73247eade047fe58a.tar.gz serverdata-19e2021fd657664bb854f1b73247eade047fe58a.tar.bz2 serverdata-19e2021fd657664bb854f1b73247eade047fe58a.tar.xz serverdata-19e2021fd657664bb854f1b73247eade047fe58a.zip |
Fix a bug reported to Hello=) during the event.
One of the magic spells was not being considered and... was quite dramatic.
-rw-r--r-- | world/map/npc/annuals/xmas/2020.txt | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/world/map/npc/annuals/xmas/2020.txt b/world/map/npc/annuals/xmas/2020.txt index 9747d244..dd82f134 100644 --- a/world/map/npc/annuals/xmas/2020.txt +++ b/world/map/npc/annuals/xmas/2020.txt @@ -44,6 +44,13 @@ OnHit: if (getequipid(equip_hand1) != 5261) end; + // By last, check for Arrow Hail + set @nearby, 0; + foreach 1, getmap(), @away[0] - 14, @away[1] - 14, @away[0] + 14, @away[1] + 14, + strnpcinfo(0) + "::OnNearbyNpc"; + if (@nearby) + end; + // Grinchboo slain set XMAS2020, XMAS2020 + 1; set $XMAS2020_BOO, $XMAS2020_BOO + 1; @@ -131,6 +138,12 @@ OnClock0600: goto OnClock1800; OnClock0630: goto OnClock1830; + +OnNearbyNpc: + explode .@nearby$[0], strnpcinfo(0,@target_id), "#"; + if(.@nearby$[0] == "arrow-hail" || .@nearby$[1] == "arrow-hail") + set @nearby, @nearby + 1; + end; } // Scatter the grinchboos @@ -390,6 +403,13 @@ OnHit: if (getequipid(equip_hand1) != 5261) end; + // By last, check for Arrow Hail + set @nearby, 0; + foreach 1, getmap(), @away[0] - 14, @away[1] - 14, @away[0] + 14, @away[1] + 14, + strnpcinfo(0) + "::OnNearbyNpc"; + if (@nearby) + end; + // Grinchboo slain set XMAS2020, XMAS2020 + 1; set $XMAS2020_BOO, $XMAS2020_BOO + 1; @@ -477,6 +497,12 @@ OnClock0600: goto OnClock1800; OnClock0630: goto OnClock1830; + +OnNearbyNpc: + explode .@nearby$[0], strnpcinfo(0,@target_id), "#"; + if(.@nearby$[0] == "arrow-hail" || .@nearby$[1] == "arrow-hail") + set @nearby, @nearby + 1; + end; } 046-1,0,0,0|script|XXmas0461|32767 @@ -519,6 +545,13 @@ OnHit: if (getequipid(equip_hand1) != 5261) end; + // By last, check for Arrow Hail + set @nearby, 0; + foreach 1, getmap(), @away[0] - 14, @away[1] - 14, @away[0] + 14, @away[1] + 14, + strnpcinfo(0) + "::OnNearbyNpc"; + if (@nearby) + end; + // Grinchboo slain set XMAS2020, XMAS2020 + 1; set $XMAS2020_BOO, $XMAS2020_BOO + 1; @@ -606,6 +639,12 @@ OnClock0600: goto OnClock1800; OnClock0630: goto OnClock1830; + +OnNearbyNpc: + explode .@nearby$[0], strnpcinfo(0,@target_id), "#"; + if(.@nearby$[0] == "arrow-hail" || .@nearby$[1] == "arrow-hail") + set @nearby, @nearby + 1; + end; } 047-1,0,0,0|script|XXmas0471|32767 @@ -648,6 +687,13 @@ OnHit: if (getequipid(equip_hand1) != 5261) end; + // By last, check for Arrow Hail + set @nearby, 0; + foreach 1, getmap(), @away[0] - 14, @away[1] - 14, @away[0] + 14, @away[1] + 14, + strnpcinfo(0) + "::OnNearbyNpc"; + if (@nearby) + end; + // Grinchboo slain set XMAS2020, XMAS2020 + 1; set $XMAS2020_BOO, $XMAS2020_BOO + 1; @@ -735,5 +781,11 @@ OnClock0600: goto OnClock1800; OnClock0630: goto OnClock1830; + +OnNearbyNpc: + explode .@nearby$[0], strnpcinfo(0,@target_id), "#"; + if(.@nearby$[0] == "arrow-hail" || .@nearby$[1] == "arrow-hail") + set @nearby, @nearby + 1; + end; } |