diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-05-15 23:23:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-05-15 23:23:15 -0300 |
commit | a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c (patch) | |
tree | 9cc73a2c20ce39e9fb498b312ddbcfd072b15cd4 /npc | |
parent | 84ff563767cb680a457af4396199a2f0b59e5d39 (diff) | |
download | serverdata-a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c.tar.gz serverdata-a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c.tar.bz2 serverdata-a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c.tar.xz serverdata-a6d68cfe1e7a8ed3b2f54533b809fbd514c6040c.zip |
Fix infinite loop bug
Diffstat (limited to 'npc')
-rw-r--r-- | npc/craft/price.txt | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |