summaryrefslogtreecommitdiff
path: root/npc/020-5
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-5')
-rw-r--r--npc/020-5/bracco.txt41
1 files changed, 0 insertions, 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)