From b441dd36f18727cba727c7fd7cc3321b3f7d8d52 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 7 Jun 2019 21:55:26 -0300 Subject: 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. --- npc/020-5/bracco.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'npc/020-5') 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; -- cgit v1.2.3-60-g2f50