diff options
Diffstat (limited to 'npc/055-1/pumpkins.txt')
-rwxr-xr-x | npc/055-1/pumpkins.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/npc/055-1/pumpkins.txt b/npc/055-1/pumpkins.txt index 8fc25eb3..d4c6150a 100755 --- a/npc/055-1/pumpkins.txt +++ b/npc/055-1/pumpkins.txt @@ -66,11 +66,8 @@ OnAppear: L_Destroy: disablenpc strnpcinfo(0); // makes the npc invisible, unclickable - addnpctimer .death_t, strnpcinfo(0) + "::OnReallyDestroy"; // schedule a respawn - end; - -OnReallyDestroy: - set .nodes[.i], get(.nodes[.i], "_N-Pumpkin") - 1, "_N-Pumpkin"; // tell the puppeteer we lost an egg + sleep(.death_t); + set(getvariableofnpc(.nodes[.i], "_N-Pumpkin"), get(.nodes[.i], "_N-Pumpkin") - 1); // tell the puppeteer we lost an egg destroy; |