summaryrefslogtreecommitdiff
path: root/npc/020-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-12-31 03:29:09 -0300
committerJesusaves <cpntb1@ymail.com>2019-12-31 03:29:09 -0300
commitf6f7c541f515d2dae17c9d1f950b9507ebb53201 (patch)
tree4dfd84ff006f43c2b2244e340724797d68d85be6 /npc/020-5
parentde4b97390930de629a0cc1bd754a1ca8a5f486c0 (diff)
downloadserverdata-f6f7c541f515d2dae17c9d1f950b9507ebb53201.tar.gz
serverdata-f6f7c541f515d2dae17c9d1f950b9507ebb53201.tar.bz2
serverdata-f6f7c541f515d2dae17c9d1f950b9507ebb53201.tar.xz
serverdata-f6f7c541f515d2dae17c9d1f950b9507ebb53201.zip
Delete Bracco's old logic.
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)