From f6f7c541f515d2dae17c9d1f950b9507ebb53201 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 31 Dec 2019 03:29:09 -0300 Subject: Delete Bracco's old logic. --- npc/020-5/bracco.txt | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index 6bcea4bf2..5d41dbb30 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -50,47 +50,6 @@ return; } - // LegacyMeltdown( item, price, {id1, amount1}, {id2, amount2}... ) - function LegacyMeltdown { - if (getargcount() < 2 || getargcount() % 2 != 0) - return Exception("Faulty learning Meltdown command invoked - error"); - if (@indexisbroken) { - mesc l("Wait, if you try to melt more than one item at login, manaplus will get buggy."), 1; - mesc l("Please try again later!"), 1; - close; - } - - .@index=getarg(0); - .@price=getarg(1); - - .@price=POL_AdjustPrice(.@price); - - // Confirmation - mesn; - mesc l("Really melt down your @@? It'll cost you @@ GP. This action cannot be undone!", getinvindexlink(.@index), .@price), 1; - next; - if (askyesno() == ASK_NO || Zeny < .@price) - return; - - // Report it was done - mesc l("@@ melt down your @@...", .name$, getinvindexlink(.@index)); - - // Effective: delete item and GP - delitemidx .@index, 1; - POL_PlayerMoney(.@price); - - // TODO: Inventoryplace. - // Add Items (if inventory is full, your fault and not mine) - for (.@i=2;.@i < getargcount(); .@i++) { - if (getarg(.@i+1)) {// It may be zero - getitem getarg(.@i), getarg(.@i+1); - mesc l("* Acquired @@ @@!", getarg(.@i+1), getitemlink(getarg(.@i))); - } - .@i++; - } - @indexisbroken=true; - return; - } // MassMeltdown( item, price, {id1, amount1}, {id2, amount2}... ) function MassMeltdown { if (getargcount() < 2 || getargcount() % 2 != 0) -- cgit v1.2.3-60-g2f50