From 12f9e74be0e29b9bdcfa4578b097a146388eb87e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 20 Aug 2022 18:59:41 -0300 Subject: Fix a few major bugs (prio: crit) --- npc/020-5/bracco.txt | 4 +++- npc/functions/aurora.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index b725f3dde..881b842ca 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -138,6 +138,7 @@ delitem .@id, .@total; // Delete first, no refunds + freeloop(true); for (.@index=0; .@index < @inventorylist_count; .@index++) { .@x=@inventorylist_id[.@index]; if (.@x == getarg(0) && Zeny >= .@price) { @@ -147,9 +148,10 @@ mesc l("@@ melt down your @@...", .name$, getitemlink(.@x)), 2; // Really melt it down - NewMeltdown(.@x); + NewMeltdown(getarg(0)); } } + freeloop(false); @indexisbroken=true; return; } diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 42977e2f8..3204767a6 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -723,7 +723,7 @@ function script FYE_Submit { // Stops any Aurora Event function script FYStopEvent { - setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower", "Raid", "Olympics"; + setarray .@av$, "Kamelot", "Regnum", "Expo", "Fishing", "Candor", "Mining", "Tower", "Raid", "Olympics", "Celestia", "Rebirth", "Gemini"; if (array_find(.@av$, $EVENT$) >= 0) { sClear(); $EVENT$=""; -- cgit v1.2.3-60-g2f50