From a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 15 May 2022 23:23:15 -0300 Subject: Fix infinite loop bug --- npc/craft/price.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'npc/craft/price.txt') diff --git a/npc/craft/price.txt b/npc/craft/price.txt index 74111b3cf..6e1474008 100644 --- a/npc/craft/price.txt +++ b/npc/craft/price.txt @@ -64,7 +64,6 @@ function script _fix_cPrice { //debugmes("New Price for %s is now %d (%d) GP", getitemname(.@item), getiteminfo(.@item, ITEMINFO_BUYPRICE), getiteminfo(.@item, ITEMINFO_SELLPRICE)); } } - debugmes "\n\n-------------------------------------------------------"; return; } @@ -73,6 +72,8 @@ function script fix_cPrice { if (debug) return; // Otherwise... + freeloop(true); + // Fix potions prices _fix_cPrice(AgiPotionA); _fix_cPrice(AgiPotionB); @@ -199,6 +200,7 @@ function script fix_cPrice { // TODO: Rewrite meltdown forge to similar formula // Giving 30%~50% instead of 50%~70% // Max rounded down, Min rounded up + freeloop(false); return; } -- cgit v1.2.3-60-g2f50