diff options
-rw-r--r-- | world/map/npc/functions/pandora_box_chests.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/functions/pandora_box_chests.txt b/world/map/npc/functions/pandora_box_chests.txt index 3d43433e..72d6bbdf 100644 --- a/world/map/npc/functions/pandora_box_chests.txt +++ b/world/map/npc/functions/pandora_box_chests.txt @@ -43,8 +43,8 @@ OnInit: OnNewPandorabox: if !(mapexists(.map$)) end; // avoid server crash in puppet() set .res, puppet(.map$, .x, .y, .name$, .sprite, 1, 1); // instatiate pandora box NPC - if (.res <= 0) end; // Omit puppet setup on failure. - if (.lifetime > 0) addnpctimer .lifetime, .name$+"::OnHoleCollapse"; + if (.res <= 0) end; // Omit puppet setup on failure. + if (.lifetime > 0) addnpctimer .lifetime, strnpcinfo(0, .res) + "::OnPandoraExpired"; set .pandorabox, 1, .res; // Mark pandora box NPC as such end; |