From 193c4426ac1afbc91484a5193f2289b7244b26ee Mon Sep 17 00:00:00 2001 From: Saulc Date: Thu, 1 Feb 2018 01:18:48 +0100 Subject: test hat location + add HAS quest + candor battle warp --- npc/003-1/well.txt | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) (limited to 'npc/003-1/well.txt') diff --git a/npc/003-1/well.txt b/npc/003-1/well.txt index 986d21c77..695dae536 100644 --- a/npc/003-1/well.txt +++ b/npc/003-1/well.txt @@ -3,9 +3,53 @@ 003-1,45,80,0 script Well NPC_NO_SPRITE,{ + .Item1 = IronOre; //7 + .GP = 8500; + .ItemCreate = IronIngot; + + function quest_create { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("How many ingots do you want to make?"); + input .amount; + + if (countitem("Iron Ore") >= .amount * 7 && Zeny >= 8500 * .amount) + { + delitem .Item1, .amount * 7; + Zeny = Zeny - .amount * .GP; + getitem .ItemCreate, .amount; + close; + } + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("You don't have enought quantity."); + close; + + } + + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("Hello do you want to craft @@, for that i will need 7 @@,and @@ gp.", getitemlink(.ItemCreate),getitemlink(.Item1),.GP); + + do + { + .@karim = getq(Karim_Quest); + select + l("Yes"), + menuaction(l("Quit")); + + switch (@menu) + { + case 1: + quest_create; + break; + } + } while (@menu != 2); + + closedialog; + goodbye; + close; OnInit: .sex = G_MALE; .distance = 3; end; -} \ No newline at end of file +} + -- cgit v1.2.3-70-g09d2