From b865fd150ed47039bb12bf5c3416c3992922b7fa Mon Sep 17 00:00:00 2001 From: Saulc Date: Fri, 1 Jun 2018 09:20:01 +0000 Subject: i tried my best to add a random 1 to 2 iron powder for one ore --- npc/007-1/pylon.txt | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'npc/007-1/pylon.txt') diff --git a/npc/007-1/pylon.txt b/npc/007-1/pylon.txt index 974bc887b..529b27559 100644 --- a/npc/007-1/pylon.txt +++ b/npc/007-1/pylon.txt @@ -35,6 +35,7 @@ L_Menu: rif(countitem(Sapphire) >= 1, l("Yeah sure, take my Sapphire!")), rif(countitem(Topaz) >= 1, l("Yeah sure, take my Topaz!")), rif(countitem(Amethyst) >= 1, l("Yeah sure, take my Amethyst!")), + rif(countitem(IronOre) >= 1, l("And what's about Iron Ore?")), l("No, thanks, I will keep my gems."); mes ""; @@ -44,18 +45,26 @@ L_Menu: goto L_Question; break; case 8: + goto + L_Ore + break; + case 9: close; break; default: goto L_Powder; break; } +L_MenuOre; + menu + l("Yeah sure!"), L_OreOk; + l("Nah Thanks you."), L_Close; L_Question: mesn; mesq lg("That depends on your luck!"); next; - mesq l("With one gem you can expect to get 1 to 3 powders! "); + mesq l("With one gem you can expect to get 1 to 3 powders!"); next; mes col("We must blame Saulc!", 9); next; @@ -63,6 +72,32 @@ L_Question: next; goto L_Menu; +L_Ore + mesn; + mesq lg("Hum... I'm not really good at it."); + next; + mesq l("But i can try my best for you!"); + next; + mesq l("You want it!"); + next; + goto L_MenuOre; + +L_OreOk: + // Amount iron ore + .@amo=rand(1,2); + + delitem IronOre, 1; + Zeny = Zeny - 100; + getexp 10, 0; + inventoryplace IronPowder, .@amo; + getitem IronPowder, .@amo; + mes ""; + mesn; + mesq l("Here you are, i tried my best"); + next; + L_Close; + close; + // Must rework IDs L_Powder: -- cgit v1.2.3-60-g2f50