From d1a63c203594d68c202d76f7c7e55e4dd37dba22 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Dec 2022 20:28:34 -0300 Subject: Maybe fix Bracco, open a security vuln/exploit, deal with it later --- npc/020-5/bracco.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index 881b842ca..659505db8 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -10,6 +10,7 @@ 020-5,31,25,0 script Bracco NPC_M_SHOPKEEPER,{ goto L_Start; + // NewMeltdown( item ) // Meltdown the item for realz function NewMeltdown { @@ -136,8 +137,6 @@ delinventorylist(); getinventorylist(); - delitem .@id, .@total; // Delete first, no refunds - freeloop(true); for (.@index=0; .@index < @inventorylist_count; .@index++) { .@x=@inventorylist_id[.@index]; @@ -152,6 +151,10 @@ } } freeloop(false); + + // TODO: Put this in a timer so it can't be exploited + delitem .@id, .@total; // Delete first, no refunds + @indexisbroken=true; return; } -- cgit v1.2.3-60-g2f50