diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-12-17 20:28:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-12-17 20:28:34 -0300 |
commit | d1a63c203594d68c202d76f7c7e55e4dd37dba22 (patch) | |
tree | 50d38a5809fa6547ef1aa5c01f90fb051de7355f /npc/020-5/bracco.txt | |
parent | 7014264365373a3477357951c2153a9cc7a20341 (diff) | |
download | serverdata-d1a63c203594d68c202d76f7c7e55e4dd37dba22.tar.gz serverdata-d1a63c203594d68c202d76f7c7e55e4dd37dba22.tar.bz2 serverdata-d1a63c203594d68c202d76f7c7e55e4dd37dba22.tar.xz serverdata-d1a63c203594d68c202d76f7c7e55e4dd37dba22.zip |
Maybe fix Bracco, open a security vuln/exploit, deal with it later
Diffstat (limited to 'npc/020-5/bracco.txt')
-rw-r--r-- | npc/020-5/bracco.txt | 7 |
1 files 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; } |