summaryrefslogtreecommitdiff
path: root/npc/012-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-16 11:59:54 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-16 11:59:54 -0300
commit5924cd46a2b4636dc64eba166f8d35ddc125aa4d (patch)
tree7c14a44094fd78cf278528774d5e753deed9d7ee /npc/012-5
parented51acbae7aaab40f10764f5b1858770382c3844 (diff)
downloadserverdata-5924cd46a2b4636dc64eba166f8d35ddc125aa4d.tar.gz
serverdata-5924cd46a2b4636dc64eba166f8d35ddc125aa4d.tar.bz2
serverdata-5924cd46a2b4636dc64eba166f8d35ddc125aa4d.tar.xz
serverdata-5924cd46a2b4636dc64eba166f8d35ddc125aa4d.zip
Quiver Prototype
Diffstat (limited to 'npc/012-5')
-rw-r--r--npc/012-5/nicholas.txt57
1 files changed, 50 insertions, 7 deletions
diff --git a/npc/012-5/nicholas.txt b/npc/012-5/nicholas.txt
index 45caeb065..b6dd5c1d3 100644
--- a/npc/012-5/nicholas.txt
+++ b/npc/012-5/nicholas.txt
@@ -3,6 +3,7 @@
// Jesusalva
// Description:
// Nicholas is Hurnscald's blakcsmith. He forges some stuff, and sell other stuff.
+// Perhaps he should not forge armor? Remember he cannot forge EVERYTHING...
//
// PS.
// Iridium + Platyna Platinum
@@ -21,6 +22,14 @@
012-5,36,26,0 script Nicholas NPC_CHELIOS,{
goto L_Menu;
+ // blacksmith_header()
+ function blacksmith_header {
+ mesn;
+ mesq l("Very well! We have seven class of items: Wood, Iron, Terranite, Bronze, Silver, Gold and Platinum.");
+ mesq l("Each of them require different items, I'll sort from weakest to strongest, so choose wisely.");
+ return;
+ }
+
// blacksmith_create( BaseItem1, Amount, BaseItem2, Amount, PrizeItem, Price )
function blacksmith_create {
.@base1=getarg(0);
@@ -68,6 +77,7 @@ L_Menu:
l("I just want to trade."),
l("I want to forge Weapons!"),
l("I want to forge Shields!"),
+ rif(is_admin(), l("I want to forge Quivers!")),
l("Nothing, thanks!");
mes "";
@@ -81,6 +91,8 @@ L_Menu:
goto L_Weapon;
case 3:
goto L_Shield;
+ case 4:
+ goto L_Quiver;
}
close;
@@ -95,9 +107,7 @@ L_Menu:
L_Weapon:
- mesn;
- mesq l("Very well! We have seven class of items: Wood, Iron, Terranite, Bronze, Silver, Gold and Platinum.");
- mesq l("Each of them require different items, I'll sort from weakest to strongest, so choose wisely.");
+ blacksmith_header();
select
l("Nothing, sorry!"),
l("Wooden Sword"),
@@ -129,9 +139,7 @@ L_Weapon:
L_Shield:
- mesn;
- mesq l("Very well! We have seven class of items: Wood, Iron, Terranite, Bronze, Silver, Gold and Platinum.");
- mesq l("Each of them require different items, I'll sort from weakest to strongest, so choose wisely.");
+ blacksmith_header();
select
l("Nothing, sorry!"),
l("Wooden Shield");
@@ -143,7 +151,42 @@ L_Shield:
blacksmith_create(WoodenLog, 40, BottleOfTonoriWater, 1, WoodenShield, 5000);
break;
}
- goto L_Weapon;
+ goto L_Shield;
+
+
+
+
+
+
+L_Quiver:
+ blacksmith_header();
+ select
+ l("Nothing, sorry!"),
+ l("Leather Quiver"),
+ l("Terranite Quiver"),
+ l("Platinum Quiver");
+
+ switch (@menu) {
+ case 1:
+ goto L_Menu;
+ case 2:
+ blacksmith_create(LeatherPatch, 40, TitaniumIngot, 1, WoodenShield, 20000);
+ break;
+ case 3:
+ blacksmith_create(TerraniteOre, 324, Coal, 80, WoodenShield, 20000); // TODO: Terranite Ingot
+ break;
+ case 4:
+ blacksmith_create(PlatinumIngot, 40, IridiumIngot, 20, WoodenShield, 20000);
+ break;
+ }
+ goto L_Quiver;
+
+
+
+
+
+
+
OnInit:
tradertype(NST_MARKET);