diff options
author | Hello=) <hello@themanaworld.org> | 2025-08-17 18:14:09 +0300 |
---|---|---|
committer | Hello=) <hello@themanaworld.org> | 2025-08-17 18:14:09 +0300 |
commit | 04c046470f38ceca34b8a72735bd4977c1734726 (patch) | |
tree | 9be930b13c2d34a0f7042d44cfcfd20b8f841f7f /world/map | |
parent | 713a0c3904b898d07ea297b01511cf180b8e8e24 (diff) | |
download | serverdata-pandorabox-chests.tar.gz serverdata-pandorabox-chests.tar.bz2 serverdata-pandorabox-chests.tar.xz serverdata-pandorabox-chests.zip |
Bugfix pass.pandorabox-chests
Fortunately timed chests were not even used anywhere in content yet. But...
1) Use actual name from puppet, in case it truncated, etc to set NPC timer. Otherwise can face missing NPC.
2) Use proper event name.
Diffstat (limited to 'world/map')
-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; |