diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-28 18:43:55 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-28 18:43:55 +0100 |
commit | e7e8b6a5d2c0065a274e7077286b21477d1472af (patch) | |
tree | 1f2cb947ab598ce9164bb78f1ebb4cccda508221 /npc/003-8 | |
parent | 7efcbec40146ec80dc287ce29b5d9862d80414b1 (diff) | |
download | serverdata-e7e8b6a5d2c0065a274e7077286b21477d1472af.tar.gz serverdata-e7e8b6a5d2c0065a274e7077286b21477d1472af.tar.bz2 serverdata-e7e8b6a5d2c0065a274e7077286b21477d1472af.tar.xz serverdata-e7e8b6a5d2c0065a274e7077286b21477d1472af.zip |
add new npc
Diffstat (limited to 'npc/003-8')
-rw-r--r-- | npc/003-8/_import.txt | 1 | ||||
-rw-r--r-- | npc/003-8/jhedia.txt | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/npc/003-8/_import.txt b/npc/003-8/_import.txt index 6dd2e8a40..a9e80497c 100644 --- a/npc/003-8/_import.txt +++ b/npc/003-8/_import.txt @@ -1,3 +1,4 @@ // Map 003-8: Terranite Forge // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/003-8/_warps.txt", +"npc/003-8/jhedia.txt", diff --git a/npc/003-8/jhedia.txt b/npc/003-8/jhedia.txt new file mode 100644 index 000000000..8a5754d62 --- /dev/null +++ b/npc/003-8/jhedia.txt @@ -0,0 +1,58 @@ +// TMW2 scripts. +// Author: +// Crazyfefe + +003-8,28,30,0 script Jhedia NPC_ELVEN_FEMALE_ARMOR_SHOP,{ + + .Item1 = IronOre; //7 + .Item2 = Coal; //11 + .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 && countitem("Coal") >= .amount * 11 && Zeny >= 8500 * .amount) + { + delitem .Item1, .amount * 7; + delitem .Item2, .amount * 11; + 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 @@, 11 @@ and @@ gp.", getitemlink(.ItemCreate),getitemlink(.Item1),getitemlink(.Item2),.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; +} + |