diff options
author | The Kandiman <kandiman@kandiman.(none)> | 2011-09-10 14:10:36 -0400 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-09-10 22:16:46 +0200 |
commit | 634e31bc0f4d1efac4936619205e454dd39f2514 (patch) | |
tree | 524425b9559d6bb3c13fd36caa71938cb0059911 /world/map/npc/021-2/jhedia.txt | |
parent | 62cf14da16023625773c43d215975766d86a1b9a (diff) | |
download | serverdata-634e31bc0f4d1efac4936619205e454dd39f2514.tar.gz serverdata-634e31bc0f4d1efac4936619205e454dd39f2514.tar.bz2 serverdata-634e31bc0f4d1efac4936619205e454dd39f2514.tar.xz serverdata-634e31bc0f4d1efac4936619205e454dd39f2514.zip |
Tab replacement and formatting project: Maps 014-1 to 021-2 complete.
Diffstat (limited to 'world/map/npc/021-2/jhedia.txt')
-rw-r--r-- | world/map/npc/021-2/jhedia.txt | 88 |
1 files changed, 48 insertions, 40 deletions
diff --git a/world/map/npc/021-2/jhedia.txt b/world/map/npc/021-2/jhedia.txt index b4ec8380..102c8598 100644 --- a/world/map/npc/021-2/jhedia.txt +++ b/world/map/npc/021-2/jhedia.txt @@ -1,54 +1,62 @@ // Ingot maker takes iron ore, gives ingots for future crafting purposes. -021-2.gat,23,55,0 script Jhedia 160,{ - - set @Cost_Per_Ingot, 1000; - set @Iron_Ore_Per, 5; - set @Coal_Per, 10; - - mes "[Jhedia]"; - mes "\"I forge Iron Ore into ingots. Ingots are more useful for skilled smiths, like armorers, because the ore is refined and made into useful units which can be worked with. To make ingots, I need " + @Iron_Ore_Per + " Iron Ore and " + @Cost_Per_Ingot + " gp per ingot. I also need " + @Coal_Per + " Coal for my forge.\""; - next; - mes "[Jhedia]"; - mes "\"How many ingots would you like?\""; - input @ingot_count; - - if (@ingot_count == 0) goto L_Jhedia_Bye; - set @Zeny_cost, @ingot_count * @Cost_Per_Ingot; - if (countitem("IronOre") < @Iron_Ore_Per * @ingot_count) goto L_Jhedia_NotEnough_Ore; - if (countitem("Coal") < @Coal_Per * @ingot_count) goto L_Jhedia_NotEnough_Coal; - if (zeny < @Zeny_cost) goto L_Jhedia_NotEnough_Zeny; - getinventorylist; - if (@inventorylist_count == 100 && countitem("IngotIron") == 0 && countitem("IronOre") > @ingot_count * @Iron_Ore_Per | countitem("Coal") > @ingot_count * @Coal_Per) goto L_Jhedia_NotEnoughSlots; - set zeny, zeny - @Zeny_cost; - delitem "IronOre", @ingot_count * @Iron_Ore_Per; - delitem "Coal", @ingot_count * @Coal_Per; - getitem "IngotIron", @ingot_count; - close; +021-2.gat,23,55,0|script|Jhedia|160,{ + + set @Cost_Per_Ingot, 1000; + set @Iron_Ore_Per, 5; + set @Coal_Per, 10; + + mes "[Jhedia]"; + mes "\"I forge Iron Ore into ingots. Ingots are more useful for skilled smiths, like armorers, because the ore is refined and made into useful units which can be worked with. To make ingots, I need " + @Iron_Ore_Per + " Iron Ore and " + @Cost_Per_Ingot + " gp per ingot. I also need " + @Coal_Per + " Coal for my forge.\""; + next; + mes "[Jhedia]"; + mes "\"How many ingots would you like?\""; + input @ingot_count; + + if (@ingot_count == 0) + goto L_Jhedia_Bye; + set @Zeny_cost, @ingot_count * @Cost_Per_Ingot; + if (countitem("IronOre") < @Iron_Ore_Per * @ingot_count) + goto L_Jhedia_NotEnough_Ore; + if (countitem("Coal") < @Coal_Per * @ingot_count) + goto L_Jhedia_NotEnough_Coal; + if (zeny < @Zeny_cost) + goto L_Jhedia_NotEnough_Zeny; + getinventorylist; + if (@inventorylist_count == 100 + && countitem("IngotIron") == 0 + && countitem("IronOre") > @ingot_count * @Iron_Ore_Per + | countitem("Coal") > @ingot_count * @Coal_Per) + goto L_Jhedia_NotEnoughSlots; + set zeny, zeny - @Zeny_cost; + delitem "IronOre", @ingot_count * @Iron_Ore_Per; + delitem "Coal", @ingot_count * @Coal_Per; + getitem "IngotIron", @ingot_count; + close; L_Jhedia_Bye: - mes "[Jhedia]"; - mes "\"Goodbye then.\""; - close; + mes "[Jhedia]"; + mes "\"Goodbye then.\""; + close; L_Jhedia_NotEnough_Ore: - mes "[Jhedia]"; - mes "\"You do not seem to have enough Iron Ore.\""; - close; + mes "[Jhedia]"; + mes "\"You do not seem to have enough Iron Ore.\""; + close; L_Jhedia_NotEnough_Coal: - mes "[Jhedia]"; - mes "\"You do not seem to have enough Coal.\""; - close; + mes "[Jhedia]"; + mes "\"You do not seem to have enough Coal.\""; + close; L_Jhedia_NotEnough_Zeny: - mes "[Jhedia]"; - mes "\"You do not seem to have enough gold pieces.\""; - close; + mes "[Jhedia]"; + mes "\"You do not seem to have enough gold pieces.\""; + close; L_Jhedia_NotEnoughSlots: - mes "[Jhedia]"; - mes "\"You do not seem to have enough room to carry this many ingots.\""; - close; + mes "[Jhedia]"; + mes "\"You do not seem to have enough room to carry this many ingots.\""; + close; } |