summaryrefslogtreecommitdiff
path: root/npc/020-5/bracco.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-07 21:55:26 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-07 21:55:26 -0300
commitb441dd36f18727cba727c7fd7cc3321b3f7d8d52 (patch)
tree9eb1abbd66c17b51c32934786ce540f4aab89082 /npc/020-5/bracco.txt
parent0c7999d8782853f7711a884646a6054e8caa6d51 (diff)
downloadserverdata-b441dd36f18727cba727c7fd7cc3321b3f7d8d52.tar.gz
serverdata-b441dd36f18727cba727c7fd7cc3321b3f7d8d52.tar.bz2
serverdata-b441dd36f18727cba727c7fd7cc3321b3f7d8d52.tar.xz
serverdata-b441dd36f18727cba727c7fd7cc3321b3f7d8d52.zip
Knives are an exception. Even if not craft items, they are drop items and can
be melt down. They return Iron Ore, and not Iron Ingot.
Diffstat (limited to 'npc/020-5/bracco.txt')
-rw-r--r--npc/020-5/bracco.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt
index 6a914a477..0f5f8b467 100644
--- a/npc/020-5/bracco.txt
+++ b/npc/020-5/bracco.txt
@@ -26,7 +26,8 @@
// TODO: Inventoryplace
// Add Items (if inventory is full, your fault and not mine)
for (.@i=2;.@i < getargcount(); .@i++) {
- getitem getarg(.@i), getarg(.@i+1);
+ if (getarg(.@i+1)) // It may be zero
+ getitem getarg(.@i), getarg(.@i+1);
.@i++;
}
return;
@@ -136,6 +137,18 @@ L_Meltdown:
mes "";
// Returns 50~70% of invested ingots, rounded down. Never returns Coal.
switch (.@id) {
+ case RustyKnife:
+ Meltdown(.@it, 15, IronOre, any(0, 0, 0, 0, 1)); // Exception
+ break;
+ case Knife:
+ Meltdown(.@it, 25, IronOre, any(0, 0, 0, 1)); // Exception
+ break;
+ case SharpKnife:
+ Meltdown(.@it, 50, IronOre, any(0, 0, 1)); // Exception
+ break;
+ case Dagger:
+ Meltdown(.@it, 100, IronOre, rand2(0,1)); // Exception
+ break;
case WoodenSword:
Meltdown(.@it, 500, WoodenLog, rand2(5,10)); // Exception: 25~50% returned
break;