summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaulc <lucashelaine14@gmail.com>2018-06-01 09:20:01 +0000
committerSaulc <lucashelaine14@gmail.com>2018-06-01 09:20:01 +0000
commitb865fd150ed47039bb12bf5c3416c3992922b7fa (patch)
tree9d3542155982a00eebbc5cf4cd1bf8b049e2ad59
parent4edc7126487d04e2e0e50e33a32f492dba6e3fa8 (diff)
downloadserverdata-b865fd150ed47039bb12bf5c3416c3992922b7fa.tar.gz
serverdata-b865fd150ed47039bb12bf5c3416c3992922b7fa.tar.bz2
serverdata-b865fd150ed47039bb12bf5c3416c3992922b7fa.tar.xz
serverdata-b865fd150ed47039bb12bf5c3416c3992922b7fa.zip
i tried my best to add a random 1 to 2 iron powder for one ore
-rw-r--r--npc/007-1/pylon.txt37
1 files changed, 36 insertions, 1 deletions
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: