summaryrefslogtreecommitdiff
path: root/world/map/npc/021-2
diff options
context:
space:
mode:
authorThe Kandiman <kandiman@kandiman.(none)>2011-09-10 14:10:36 -0400
committerJessica Tölke <jtoelke@mail.upb.de>2011-09-10 22:16:46 +0200
commit634e31bc0f4d1efac4936619205e454dd39f2514 (patch)
tree524425b9559d6bb3c13fd36caa71938cb0059911 /world/map/npc/021-2
parent62cf14da16023625773c43d215975766d86a1b9a (diff)
downloadserverdata-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')
-rw-r--r--world/map/npc/021-2/bakery.txt383
-rw-r--r--world/map/npc/021-2/government_building.txt329
-rw-r--r--world/map/npc/021-2/heathin.txt460
-rw-r--r--world/map/npc/021-2/inya.txt303
-rw-r--r--world/map/npc/021-2/jhedia.txt88
-rw-r--r--world/map/npc/021-2/workshop.txt16
6 files changed, 819 insertions, 760 deletions
diff --git a/world/map/npc/021-2/bakery.txt b/world/map/npc/021-2/bakery.txt
index 1fa60134..76253c0f 100644
--- a/world/map/npc/021-2/bakery.txt
+++ b/world/map/npc/021-2/bakery.txt
@@ -1,234 +1,235 @@
// The bakery
// The chef
-021-2.gat,95,21,0 script Riskim 148,{
+021-2.gat,95,21,0|script|Riskim|148,{
// lines belong to easter 2011:
-// set @month, 4;
-// set @start_day, 15;
-// set @end_day, 30;
+// set @month, 4;
+// set @start_day, 15;
+// set @end_day, 30;
-// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 10) goto L_ChocMouboo;
-// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 11) goto L_MakeChocMouboo;
-// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 12) goto L_SeeBunny;
+// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 10) goto L_ChocMouboo;
+// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 11) goto L_MakeChocMouboo;
+// if (gettime(6) == @month && gettime(5) >= @start_day && gettime(5) <= @end_day && QUEST_Easter11 == 12) goto L_SeeBunny;
L_Begin:
- mes "[Riskim]";
- mes "";
- mes "\"Welcome to our bakery!\"";
-
- callfunc "KadiyaSubquestConsts";
- if ((@Q_kadiya_status == @Q_STATUS_WANTS_CHOCOCAKE) && (countitem ("MopoxCurePotion") > 0))
- goto L_lace_chococake;
-
- if ((@Q_kadiya_status == @Q_STATUS_WANTS_ORANGECUPCAKE) && (countitem ("MopoxCurePotion") > 0))
- goto L_lace_cupcake;
-
- mes "\"Would you mind bringing me 6 acorns please? I need them to make flour for the chocolate cakes. I will be so delicious!\"";
- next;
- mes "\"Um, I mean, the cakes will be delicious...\"";
- emotion EMOTE_BLUSH;
- next;
-
- set @dq_level, 15;
- set @dq_cost, 3;
- set @dq_count, 6;
- set @dq_name$, "Acorn";
- set @dq_friendly_name$, "acorns";
- set @dq_money, 250;
- set @dq_exp, 50;
-
- callfunc "DailyQuest";
-
- next;
-
- mes "\"And don't forget, our bakery is the best!\"";
-
- close;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Welcome to our bakery!\"";
+
+ callfunc "KadiyaSubquestConsts";
+ if ((@Q_kadiya_status == @Q_STATUS_WANTS_CHOCOCAKE)
+ && (countitem ("MopoxCurePotion") > 0))
+ goto L_lace_chococake;
+
+ if ((@Q_kadiya_status == @Q_STATUS_WANTS_ORANGECUPCAKE)
+ && (countitem ("MopoxCurePotion") > 0))
+ goto L_lace_cupcake;
+
+ mes "\"Would you mind bringing me 6 acorns please? I need them to make flour for the chocolate cakes. I will be so delicious!\"";
+ next;
+ mes "\"Um, I mean, the cakes will be delicious...\"";
+ emotion EMOTE_BLUSH;
+ next;
+
+ set @dq_level, 15;
+ set @dq_cost, 3;
+ set @dq_count, 6;
+ set @dq_name$, "Acorn";
+ set @dq_friendly_name$, "acorns";
+ set @dq_money, 250;
+ set @dq_exp, 50;
+
+ callfunc "DailyQuest";
+
+ next;
+ mes "\"And don't forget, our bakery is the best!\"";
+ close;
L_lace_chococake:
- next;
-
- menu
- "Thanks! Let me have a look around...", L_end,
- "Can you put this potion into a Chocolate Cake?", -,
- "Goodbye!", L_end;
-
- mes "[Riskim]";
- mes "";
- mes "As you show Riskim the potion, he leans back, away from it.";
- mes "\"Ooooh, I remember that smell...\"";
- mes "\"Elanore's Mopox potion, right? She made me drink that, too...\"";
- mes "He chuckles.";
- mes "\"Yes, well, you do want to hide that somehow.\"";
- next;
-
- mes "[Riskim]";
- mes "";
- mes "\"We'll need extra chocolate for that one. If you can give me ten pieces of chocolate and that potion, plus 400 GP, I will bake you a special Chocolate Cake that hides the taste.\"";
- next;
-
- menu
- "I will get them for you.", L_end,
- "Here you are!", -,
- "Maybe later.", L_end;
-
- if (countitem("ChocolateBar") < 10)
- goto L_lacking_ingredients;
- if (countitem("MopoxCurePotion") < 1)
- goto L_lacking_ingredients;
- if (zeny < 400)
- goto L_lacking_zeny;
- delitem "MopoxCurePotion", 1;
- delitem "ChocolateBar", 10;
- getitem "LacedChocolateCake", 1;
- set zeny, zeny - 400;
-
- mes "[Riskim]";
- mes "";
- mes "\"Please have a seat!\"";
- mes "You watch as Riskim melts the chocolate and stirs in the potion, then glazes a cake with the mixture.";
- mes "\"It's a bit more chocolatey than your average chocolate cake, of course...\"";
- next;
-
- mes "[Riskim]";
- mes "";
- mes "Riskim hands you the cake.";
- mes "\"Here you are. I hope that this works.\"";
- close;
+ next;
+ menu
+ "Thanks! Let me have a look around...", L_end,
+ "Can you put this potion into a Chocolate Cake?", -,
+ "Goodbye!", L_end;
+ mes "[Riskim]";
+ mes "";
+ mes "As you show Riskim the potion, he leans back, away from it.";
+ mes "\"Ooooh, I remember that smell...\"";
+ mes "\"Elanore's Mopox potion, right? She made me drink that, too...\"";
+ mes "He chuckles.";
+ mes "\"Yes, well, you do want to hide that somehow.\"";
+ next;
+ mes "[Riskim]";
+ mes "";
+ mes "\"We'll need extra chocolate for that one. If you can give me ten pieces of chocolate and that potion, plus 400 GP, I will bake you a special Chocolate Cake that hides the taste.\"";
+ next;
+ menu
+ "I will get them for you.", L_end,
+ "Here you are!", -,
+ "Maybe later.", L_end;
+ if (countitem("ChocolateBar") < 10)
+ goto L_lacking_ingredients;
+ if (countitem("MopoxCurePotion") < 1)
+ goto L_lacking_ingredients;
+ if (zeny < 400)
+ goto L_lacking_zeny;
+ delitem "MopoxCurePotion", 1;
+ delitem "ChocolateBar", 10;
+ getitem "LacedChocolateCake", 1;
+ set zeny, zeny - 400;
+
+ mes "[Riskim]";
+ mes "";
+ mes "\"Please have a seat!\"";
+ mes "You watch as Riskim melts the chocolate and stirs in the potion, then glazes a cake with the mixture.";
+ mes "\"It's a bit more chocolatey than your average chocolate cake, of course...\"";
+ next;
+ mes "[Riskim]";
+ mes "";
+ mes "Riskim hands you the cake.";
+ mes "\"Here you are. I hope that this works.\"";
+ close;
L_lacking_zeny:
- mes "[Riskim]";
- mes "";
- mes "\"I'm sorry, but I have to charge 400 GP.\"";
- close;
+ mes "[Riskim]";
+ mes "";
+ mes "\"I'm sorry, but I have to charge 400 GP.\"";
+ close;
L_lacking_ingredients:
- mes "[Riskim]";
- mes "";
- mes "\"Sorry, but I need ten Chocolate Bars AND your cure potion for this. Please come back later when you have everything.\"";
- close;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Sorry, but I need ten Chocolate Bars AND your cure potion for this. Please come back later when you have everything.\"";
+ close;
L_lace_cupcake:
- next;
-
- menu
- "Thanks! Let me have a look around...", L_end,
- "Can you put this potion into an Orange Cupcake?", -,
- "Goodbye!", L_end;
-
- mes "[Riskim]";
- mes "";
- mes "\"Orange Cupcakes? Oh dear... I'm sorry, but I have a very bad orange allergy.\"";
- next;
- mes "[Riskim]";
- mes "";
- mes "\"Perhaps the Chef at Dimond's Cove can help you? We get all our cupcakes from him.\"";
- next;
+ next;
+ menu
+ "Thanks! Let me have a look around...", L_end,
+ "Can you put this potion into an Orange Cupcake?", -,
+ "Goodbye!", L_end;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Orange Cupcakes? Oh dear... I'm sorry, but I have a very bad orange allergy.\"";
+ next;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Perhaps the Chef at Dimond's Cove can help you? We get all our cupcakes from him.\"";
+ next;
L_End:
- close;
+ close;
L_ChocMouboo:
- mes "[Riskim]";
- mes "";
- mes "\"Welcome to our bakery! Here you will find the best cakes in Tulimshar. And don't leave before you try one of our delicious Chocolate Pinkies!\"";
- next;
- menu
- "Excuse me, sir? Did you say Chocolate Pinkies?", -;
- mes "\"Yes! But there is no need to be alarmed, it is just plain chocolate molded in the shape of a small pinkie...\"";
- next;
- menu
- "Do you have one in the shape of a mouboo? The Easter Bunny needs one.", -;
- mes "\"The Easter Bunny? Interesting... I think I can help you make a Chocolate Mouboo.\"";
- menu
- "Nah, I decided not to do that stupid quest.", L_End,
- "I would really appreciate that!", -;
- set QUEST_Easter11, 11;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Welcome to our bakery! Here you will find the best cakes in Tulimshar. And don't leave before you try one of our delicious Chocolate Pinkies!\"";
+ next;
+ menu
+ "Excuse me, sir? Did you say Chocolate Pinkies?", -;
+ mes "\"Yes! But there is no need to be alarmed, it is just plain chocolate molded in the shape of a small pinkie...\"";
+ next;
+ menu
+ "Do you have one in the shape of a mouboo? The Easter Bunny needs one.", -;
+ mes "\"The Easter Bunny? Interesting... I think I can help you make a Chocolate Mouboo.\"";
+ menu
+ "Nah, I decided not to do that stupid quest.", L_End,
+ "I would really appreciate that!", -;
+ set QUEST_Easter11, 11;
L_MakeChocMouboo:
- mes "[Riskim]";
- mes "";
- mes "\"I will need you to bring me some Chocolate Bars.\"";
- mes "\"I think 5 bars should be enough.\"";
- mes "\"Red slimes seem to have those, so try there.\"";
- mes "\"I will also need a Mouboo Figurine to hollow out and use as a mold.\"";
- mes "\"Any mage should be able to make you one out of a log, if you ask.\"";
- menu
- "I have everything you need.", -,
- "Ok, I will be back soon.", L_End,
- "I changed my mind, forget about it.", L_End;
-
- if(countitem("ChocolateBar") < 5 || countitem("MoubooFigurine") < 1) goto L_EasterNotEnough;
+ mes "[Riskim]";
+ mes "";
+ mes "\"I will need you to bring me some Chocolate Bars.\"";
+ mes "\"I think 5 bars should be enough.\"";
+ mes "\"Red slimes seem to have those, so try there.\"";
+ mes "\"I will also need a Mouboo Figurine to hollow out and use as a mold.\"";
+ mes "\"Any mage should be able to make you one out of a log, if you ask.\"";
+ menu
+ "I have everything you need.", -,
+ "Ok, I will be back soon.", L_End,
+ "I changed my mind, forget about it.", L_End;
+
+ if(countitem("ChocolateBar") < 5
+ || countitem("MoubooFigurine") < 1)
+ goto L_EasterNotEnough;
L_EasterEnough:
- getinventorylist;
- if (@inventorylist_count == 100 && countitem("ChocolateBar") > 5 && countitem("MoubooFigurine") > 1) goto L_EasterTooMany;
- if(countitem("ChocolateBar") < 5 || countitem("MoubooFigurine") < 1) goto L_EasterNotEnough;
- delitem "ChocolateBar", 5;
- delitem "MoubooFigurine", 1;
- getitem "ChocolateMouboo", 1;
- set QUEST_Easter11, 12;
- mes "[Riskim]";
- mes "";
- mes "\"Excellent. You have brought me the chocolate and the mold.\"";
- mes "He places the chocolate in a pan to melt.";
- mes "Next, he pours the melted chocolate into the mold.";
- mes "Finally, he dips the mold in cold water for a moment to solidify the chocolate before skillfully cracking it open and handing you the finished product.";
- mes "\"Here is your Chocolate Mouboo.\"";
- close;
+ getinventorylist;
+ if (@inventorylist_count == 100
+ && countitem("ChocolateBar") > 5
+ && countitem("MoubooFigurine") > 1)
+ goto L_EasterTooMany;
+ if (countitem("ChocolateBar") < 5
+ || countitem("MoubooFigurine") < 1)
+ goto L_EasterNotEnough;
+ delitem "ChocolateBar", 5;
+ delitem "MoubooFigurine", 1;
+ getitem "ChocolateMouboo", 1;
+ set QUEST_Easter11, 12;
+ mes "[Riskim]";
+ mes "";
+ mes "\"Excellent. You have brought me the chocolate and the mold.\"";
+ mes "He places the chocolate in a pan to melt.";
+ mes "Next, he pours the melted chocolate into the mold.";
+ mes "Finally, he dips the mold in cold water for a moment to solidify the chocolate before skillfully cracking it open and handing you the finished product.";
+ mes "\"Here is your Chocolate Mouboo.\"";
+ close;
L_EasterNotEnough:
- mes "[Riskim]";
- mes "";
- if(countitem("ChocolateBar") < 5) mes "\"You do not have enough Chocolate Bars for me to work with yet.\"";
- if(countitem("MoubooFigurine") < 1) mes "\"You do not have the Mouboo Figurine to use as a mold.\"";
- mes "\"Please go get what I asked.\"";
- close;
+ mes "[Riskim]";
+ mes "";
+ if(countitem("ChocolateBar") < 5)
+ mes "\"You do not have enough Chocolate Bars for me to work with yet.\"";
+ if(countitem("MoubooFigurine") < 1)
+ mes "\"You do not have the Mouboo Figurine to use as a mold.\"";
+ mes "\"Please go get what I asked.\"";
+ close;
L_EasterTooMany:
- mes "[Riskim]";
- mes "";
- mes "\"You don't have enough room for the Chocolate Mouboo. Come back later.\"";
- close;
+ mes "[Riskim]";
+ mes "";
+ mes "\"You don't have enough room for the Chocolate Mouboo. Come back later.\"";
+ close;
L_SeeBunny:
- mes "[Riskim]";
- mes "";
- mes "\"You need to return to the Easter Bunny now.\"";
- close;
+ mes "[Riskim]";
+ mes "";
+ mes "\"You need to return to the Easter Bunny now.\"";
+ close;
}
// Server?
-021-2.gat,82,23,0 script Sara 108,{
- mes "[Sara]";
- mes "";
- mes "\"Hello!\"";
- close;
+021-2.gat,82,23,0|script|Sara|108,{
+ mes "[Sara]";
+ mes "";
+ mes "\"Hello!\"";
+ close;
}
// The cashier
-021-2.gat,89,21,0 shop Drabur 112,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,Cake :-1,CherryCake :-1,OrangeCupcake :-3,Milk :-5,XmasCake :-1
+021-2.gat,89,21,0|shop|Drabur|112,WhiteCake :-1,ChocolateCake :-1,OrangeCake :-1,AppleCake :-1,Cake :-1,CherryCake :-1,OrangeCupcake :-3,Milk :-5,XmasCake :-1
// Stockroom boy
-021-2.gat,133,21,0 script Iormo 160,{
- mes "[Iormo]";
- mes "";
- mes "\"This stock room can get messy.\"";
- close;
+021-2.gat,133,21,0|script|Iormo|160,{
+ mes "[Iormo]";
+ mes "";
+ mes "\"This stock room can get messy.\"";
+ close;
}
// An old couple eating at the bakery
-021-2.gat,71,22,0 script Rynoh 159,{
- mes "[Rynoh]";
- mes "";
- mes "\"The cakes may be expensive, but they sure are delicious!\"";
- close;
+021-2.gat,71,22,0|script|Rynoh|159,{
+ mes "[Rynoh]";
+ mes "";
+ mes "\"The cakes may be expensive, but they sure are delicious!\"";
+ close;
}
-021-2.gat,73,22,0 script Ontas 154,{
- mes "[Ontas]";
- mes "";
- mes "\"We come here every week. This place has some of the best bread I've ever eaten!\"";
- close;
-}
+021-2.gat,73,22,0|script|Ontas|154,{
+ mes "[Ontas]";
+ mes "";
+ mes "\"We come here every week. This place has some of the best bread I've ever eaten!\"";
+ close;
+} \ No newline at end of file
diff --git a/world/map/npc/021-2/government_building.txt b/world/map/npc/021-2/government_building.txt
index 52a20fbe..48ea528f 100644
--- a/world/map/npc/021-2/government_building.txt
+++ b/world/map/npc/021-2/government_building.txt
@@ -1,220 +1,225 @@
// The government builing in the south west
// A clerk
-021-2.gat,27,17,0 script Estard 107,{
- mes "[Estard]";
- mes "\"Hello what can I do for you?\"";
- next;
+021-2.gat,27,17,0|script|Estard|107,{
+ mes "[Estard]";
+ mes "\"Hello what can I do for you?\"";
+ next;
L_main:
- if (getpartnerid2())
- goto L_main_married;
+ if (getpartnerid2())
+ goto L_main_married;
- menu
- "I'm looking at getting married.", L_marry,
- "Nothing, I guess.", -;
- close;
+ menu
+ "I'm looking at getting married.", L_marry,
+ "Nothing, I guess.", -;
+ close;
L_main_married:
- menu
- "I'd like a divorce.", L_divorce,
- "Nothing, I guess.", -;
- close;
+ menu
+ "I'd like a divorce.", L_divorce,
+ "Nothing, I guess.", -;
+ close;
L_marry:
- if (BaseLevel < WEDDING_MIN_LEVEL)
- goto L_marry_too_young;
- if (zeny < WEDDING_FEE)
- goto L_marry_too_poor;
-
- mes "[Estard]";
- mes "\"Are you sure you want to get married? It'll cost " + WEDDING_FEE + " GP.\"";
-
- menu
- "Yes", L_marry_do,
- "No", -;
- close;
+ if (BaseLevel < WEDDING_MIN_LEVEL)
+ goto L_marry_too_young;
+ if (zeny < WEDDING_FEE)
+ goto L_marry_too_poor;
+
+ mes "[Estard]";
+ mes "\"Are you sure you want to get married? It'll cost " + WEDDING_FEE + " GP.\"";
+ menu
+ "Yes", L_marry_do,
+ "No", -;
+ close;
L_marry_do:
- callsub S_give_rings;
-
- mes "[Estard]";
- mes "\"Here are your rings. You can get married by standing in one of the designated places (like that small rug over there) with your partner, give them their ring, and say 'marry (their name here)'. You both need to have your rings on.\"";
- close;
+ callsub S_give_rings;
+
+ mes "[Estard]";
+ mes "\"Here are your rings. You can get married by standing in one of the designated places (like that small rug over there) with your partner, give them their ring, and say 'marry (their name here)'. You both need to have your rings on.\"";
+ close;
L_marry_too_young:
- mes "[Estard]";
- mes "\"I'm sorry, but you are too young to get married. You must be atleast " + WEDDING_MIN_LEVEL + " levels old.\"";
- next;
-
- menu
- "Can I at least get wedding rings?", L_get_rings,
- "Thanks anyways.", -;
- close;
+ mes "[Estard]";
+ mes "\"I'm sorry, but you are too young to get married. You must be atleast " + WEDDING_MIN_LEVEL + " levels old.\"";
+ next;
+
+ menu
+ "Can I at least get wedding rings?", L_get_rings,
+ "Thanks anyways.", -;
+ close;
L_marry_too_poor:
- mes "[Estard]";
- mes "\"You need " + WEDDING_FEE + " GP to get married. That covers all administrative fees for the marriage and provides two wedding rings.\"";
- close;
+ mes "[Estard]";
+ mes "\"You need " + WEDDING_FEE + " GP to get married. That covers all administrative fees for the marriage and provides two wedding rings.\"";
+ close;
L_get_rings:
- mes "[Estard]";
- mes "\"Yes. They are " + WEDDING_FEE + " GP. That covers all administrative fees for the marriage.\"";
-
- if (zeny < WEDDING_FEE)
- menu
- "Thanks anyways. I don't have enough with me.", -;
-
- if (zeny >= WEDDING_FEE)
- menu
- "I'll buy a pair.", L_get_rings_pay,
- "Thanks anyways.", -;
- close;
+ mes "[Estard]";
+ mes "\"Yes. They are " + WEDDING_FEE + " GP. That covers all administrative fees for the marriage.\"";
+
+ if (zeny < WEDDING_FEE)
+ menu
+ "Thanks anyways. I don't have enough with me.", -;
+ if (zeny >= WEDDING_FEE)
+ menu
+ "I'll buy a pair.", L_get_rings_pay,
+ "Thanks anyways.", -;
+ close;
L_get_rings_pay:
- callsub S_give_rings;
-
- mes "[Estard]";
- mes "\"There you go. Come again.\"";
- close;
+ callsub S_give_rings;
+
+ mes "[Estard]";
+ mes "\"There you go. Come again.\"";
+ close;
L_divorce:
- set @divorce_cost, DIVORCE_FEE_PER_LEVEL * BaseLevel;
-
- if (zeny < @divorce_cost)
- goto L_divorce_not_enough;
-
- mes "[Estard]";
- mes "\"If you're sure you want a divorce, it'll cost you " + @divorce_cost + " GP.\"";
- next;
-
- menu
- "I am sure I want it.", L_do_divorce,
- "I don't want it.", -;
- close;
+ set @divorce_cost, DIVORCE_FEE_PER_LEVEL * BaseLevel;
+
+ if (zeny < @divorce_cost)
+ goto L_divorce_not_enough;
+
+ mes "[Estard]";
+ mes "\"If you're sure you want a divorce, it'll cost you " + @divorce_cost + " GP.\"";
+ next;
+ menu
+ "I am sure I want it.", L_do_divorce,
+ "I don't want it.", -;
+ close;
L_do_divorce:
- if (zeny < @divorce_cost)
- goto L_not_enough_money;
-
- if (divorce()) goto L_divorce_done;
-
- mes "[Estard]";
- mes "\"I'm having trouble finding the record. \"";
-
- mes "[Server]";
- mes "Try again when your partner is online too.";
- close;
+ if (zeny < @divorce_cost)
+ goto L_not_enough_money;
+
+ if (divorce())
+ goto L_divorce_done;
+
+ mes "[Estard]";
+ mes "\"I'm having trouble finding the record. \"";
+ mes "[Server]";
+ mes "Try again when your partner is online too.";
+ close;
L_divorce_done:
- set zeny, zeny - @divorce_cost;
-
- mes "[Estard]";
- mes "\"You have been divorced. Come again.\"";
- close;
+ set zeny, zeny - @divorce_cost;
+
+ mes "[Estard]";
+ mes "\"You have been divorced. Come again.\"";
+ close;
L_divorce_not_enough:
- mes "[Estard]";
- mes "\"I'm sorry , but you don't have enough money to get a divorce. You need " + @divorce_cost + " GP.\"";
- close;
+ mes "[Estard]";
+ mes "\"I'm sorry , but you don't have enough money to get a divorce. You need " + @divorce_cost + " GP.\"";
+ close;
L_not_enough_money:
- mes "[Estard]";
- mes "\"Seems you don't have enough money.\"";
- close;
+ mes "[Estard]";
+ mes "\"Seems you don't have enough money.\"";
+ close;
L_no_room_for_rings:
- mes "[Estard]";
- mes "\"You don't have enough room to carry these rings.\"";
- close;
+ mes "[Estard]";
+ mes "\"You don't have enough room to carry these rings.\"";
+ close;
S_give_rings:
- if (zeny < WEDDING_FEE)
- goto L_not_enough_money;
- getinventorylist;
- if (@inventorylist_count > 98) goto L_no_room_for_rings;
-
- set zeny, zeny - WEDDING_FEE;
- getitem "WeddingRing", 1;
- getitem "WeddingRing", 1;
- return;
+ if (zeny < WEDDING_FEE)
+ goto L_not_enough_money;
+ getinventorylist;
+ if (@inventorylist_count > 98)
+ goto L_no_room_for_rings;
+
+ set zeny, zeny - WEDDING_FEE;
+ getitem "WeddingRing", 1;
+ getitem "WeddingRing", 1;
+ return;
}
-021-2.gat,36,17,0 script Tathin 107,{
- set @PARTY_SKILL, 3;
+021-2.gat,36,17,0|script|Tathin|107,{
+ set @PARTY_SKILL, 3;
- mes "[Tathin]";
- mes "\"Hello what Can I do for you?\"";
- next;
+ mes "[Tathin]";
+ mes "\"Hello what Can I do for you?\"";
+ next;
- if (getskilllv(@PARTY_SKILL) == 2 ) goto L_Base_Menu;
- if (BaseLevel >= 15 && getskilllv(@PARTY_SKILL) == 1) goto L_Can_Make_Party;
- if (getskilllv(@PARTY_SKILL) == 1) goto L_Base_Menu;
- if (BaseLevel >= 10) goto L_Can_Party;
+ if (getskilllv(@PARTY_SKILL) == 2 )
+ goto L_Base_Menu;
+ if (BaseLevel >= 15
+ && getskilllv(@PARTY_SKILL) == 1)
+ goto L_Can_Make_Party;
+ if (getskilllv(@PARTY_SKILL) == 1)
+ goto L_Base_Menu;
+ if (BaseLevel >= 10)
+ goto L_Can_Party;
L_Base_Menu:
- menu
- "Nothing, I guess.", -;
- close;
+ menu
+ "Nothing, I guess.", -;
+ close;
L_Can_Party:
- menu
- "I'd like to get a party permit.", L_Get_Party,
- "Nothing, I guess.", -;
- close;
+ menu
+ "I'd like to get a party permit.", L_Get_Party,
+ "Nothing, I guess.", -;
+ close;
L_Can_Make_Party:
- menu
- "I'd like to get a party creator permit.", L_Get_Make_Party,
- "Nothing, I guess.", -;
- close;
+ menu
+ "I'd like to get a party creator permit.", L_Get_Make_Party,
+ "Nothing, I guess.", -;
+ close;
L_Get_Party:
- mes "[Tathin]";
- mes "\"A permit to join parties costs 10 GP.\"";
- next;
- menu
- "OK", L_Give_Party,
- "No thank you", -;
- close;
+ mes "[Tathin]";
+ mes "\"A permit to join parties costs 10 GP.\"";
+ next;
+ menu
+ "OK", L_Give_Party,
+ "No thank you", -;
+ close;
L_Give_Party:
- if (zeny < 10) goto L_NotEnoughMoney;
- set zeny, zeny - 10;
- setskill @PARTY_SKILL, 1;
- mes "[Tathin]";
- mes "\"Here's your permit. You'll need to be invited by an existing member of a party to join it.\"";
- next;
- mes "[Tathin]";
- mes "\"Remember, parties cannot share experience if any members are more than 10 levels apart.\"";
- close;
+ if (zeny < 10)
+ goto L_NotEnoughMoney;
+ set zeny, zeny - 10;
+ setskill @PARTY_SKILL, 1;
+ mes "[Tathin]";
+ mes "\"Here's your permit. You'll need to be invited by an existing member of a party to join it.\"";
+ next;
+ mes "[Tathin]";
+ mes "\"Remember, parties cannot share experience if any members are more than 10 levels apart.\"";
+ close;
L_Get_Make_Party:
- mes "[Tathin]";
- mes "\"A permit to create parties costs 50 GP.\"";
- next;
- menu
- "OK", L_Give_Make_Party,
- "No thank you", -;
- close;
+ mes "[Tathin]";
+ mes "\"A permit to create parties costs 50 GP.\"";
+ next;
+ menu
+ "OK", L_Give_Make_Party,
+ "No thank you", -;
+ close;
L_Give_Make_Party:
- if (zeny < 50) goto L_NotEnoughMoney;
- set zeny, zeny - 50;
- setskill @PARTY_SKILL, 2;
- mes "[Tathin]";
- mes "\"Here's your permit. You can create parties with the 'new' or 'create' commands on the Party tab in the client. Parties need to have unique names.\"";
- close;
+ if (zeny < 50)
+ goto L_NotEnoughMoney;
+ set zeny, zeny - 50;
+ setskill @PARTY_SKILL, 2;
+ mes "[Tathin]";
+ mes "\"Here's your permit. You can create parties with the 'new' or 'create' commands on the Party tab in the client. Parties need to have unique names.\"";
+ close;
L_NotEnoughMoney:
- mes "[Tathin]";
- mes "\"You don't have enough GP\"";
- close;
+ mes "[Tathin]";
+ mes "\"You don't have enough GP\"";
+ close;
}
// Guard
-021-2.gat,20,19,0 script Guard 123,1,1,{
- mes "[Guard]";
- mes "\"You can't come back here.\"";
- close;
+021-2.gat,20,19,0|script|Guard|123,1,1,{
+ mes "[Guard]";
+ mes "\"You can't come back here.\"";
+ close;
}
diff --git a/world/map/npc/021-2/heathin.txt b/world/map/npc/021-2/heathin.txt
index 567d5fee..e1684dd5 100644
--- a/world/map/npc/021-2/heathin.txt
+++ b/world/map/npc/021-2/heathin.txt
@@ -1,287 +1,303 @@
//Items for NPC are incomplete. Makes "simple ring" which can be crafted into a useful ring by Inya and terranite armor.
-021-2.gat,29,55,0 script Heathin 147,{
-
- set @TARROW_REQ_TERRA_ORE, 1;
- set @TARROW_REQ_COAL, 5;
- set @TARROW_REQ_GP, 3000;
-
- if (HEATHIN_QUEST == 14) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Trade;
- if (HEATHIN_QUEST == 13) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Ready;
- if (HEATHIN_QUEST == 12) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Forge;
- if (HEATHIN_QUEST == 11) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows;
- if (HEATHIN_QUEST == 10) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Ready;
- if (HEATHIN_QUEST == 9) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Forge;
- if (HEATHIN_QUEST == 8) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor;
- if (HEATHIN_QUEST == 7) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Ready;
- if (HEATHIN_QUEST == 6) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Forge;
- if (HEATHIN_QUEST == 5) && (baselevel >= 80) goto L_Heathin_Terranite_Legs;
- if (HEATHIN_QUEST == 4) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Ready;
- if (HEATHIN_QUEST == 3) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Forge;
- if (HEATHIN_QUEST == 2) && (baselevel >= 80) goto L_Heathin_Terranite_Hood;
- if (HEATHIN_QUEST == 2) && (baselevel >= 60)goto L_Heathin_Ring_Thanks;
- if (HEATHIN_QUEST == 1) && (baselevel >= 60) goto L_Heathin_Ring_Award;
- if (baselevel >= 60) goto L_Heathin_Start;
-
- mes "[Heathin]";
- mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \"";
- close;
+021-2.gat,29,55,0|script|Heathin|147,{
+
+ set @TARROW_REQ_TERRA_ORE, 1;
+ set @TARROW_REQ_COAL, 5;
+ set @TARROW_REQ_GP, 3000;
+
+ if (HEATHIN_QUEST == 14) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Trade;
+ if (HEATHIN_QUEST == 13) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Ready;
+ if (HEATHIN_QUEST == 12) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows_Forge;
+ if (HEATHIN_QUEST == 11) && (baselevel >= 80) goto L_Heathin_Terranite_Arrows;
+ if (HEATHIN_QUEST == 10) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Ready;
+ if (HEATHIN_QUEST == 9) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor_Forge;
+ if (HEATHIN_QUEST == 8) && (baselevel >= 80) goto L_Heathin_Terranite_Chest_Armor;
+ if (HEATHIN_QUEST == 7) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Ready;
+ if (HEATHIN_QUEST == 6) && (baselevel >= 80) goto L_Heathin_Terranite_Legs_Forge;
+ if (HEATHIN_QUEST == 5) && (baselevel >= 80) goto L_Heathin_Terranite_Legs;
+ if (HEATHIN_QUEST == 4) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Ready;
+ if (HEATHIN_QUEST == 3) && (baselevel >= 80) goto L_Heathin_Terranite_Hood_Forge;
+ if (HEATHIN_QUEST == 2) && (baselevel >= 80) goto L_Heathin_Terranite_Hood;
+ if (HEATHIN_QUEST == 2) && (baselevel >= 60)goto L_Heathin_Ring_Thanks;
+ if (HEATHIN_QUEST == 1) && (baselevel >= 60) goto L_Heathin_Ring_Award;
+ if (baselevel >= 60) goto L_Heathin_Start;
+
+ mes "[Heathin]";
+ mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \"";
+ close;
L_Heathin_Start:
- mes "[Heathin]";
- mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \"";
- next;
- mes "\"By the order of the Wizard's Council, I've been commissioned to forge gold ingots from gold pieces. I need to collect as many gold pieces as I can manage, forge them and give the ingots to the Council. However, I am but a simple smith and cannot complete this effort by myself.\"";
- next;
- mes "\"Forging gold ingots is not just a simple matter of gold falling from the sky! I need individuals that can gather not just the gold, but also help collect Coal to heat my forge.\"";
- next;
- mes "\"Of course it would make little sense for me to gather gold pieces from helpers just to pass them back out. However, I am willing to smith an award for any who would put an effort in towards completing my goal.\"";
- next;
- mes "\"Perhaps you would be interested in helping me out? Would you be willing to help me gather Coal and gold to fulfill my commission? I am asking any and all willing souls to get me 50 coal and 100,000 gold pieces, as that would put a significant dint in my goal.\"";
- menu
- "Sure, I'll help!", L_Heathin_Help,
- "I'd rather keep my gold for my own purposes, thank you very much.", L_Heathin_No,
- "Wait, what kind of award are we talking about?", L_Heathin_Interested;
+ mes "[Heathin]";
+ mes "\"Hello, friend. I am Heathin, a smith of exotic metals. \"";
+ next;
+ mes "\"By the order of the Wizard's Council, I've been commissioned to forge gold ingots from gold pieces. I need to collect as many gold pieces as I can manage, forge them and give the ingots to the Council. However, I am but a simple smith and cannot complete this effort by myself.\"";
+ next;
+ mes "\"Forging gold ingots is not just a simple matter of gold falling from the sky! I need individuals that can gather not just the gold, but also help collect Coal to heat my forge.\"";
+ next;
+ mes "\"Of course it would make little sense for me to gather gold pieces from helpers just to pass them back out. However, I am willing to smith an award for any who would put an effort in towards completing my goal.\"";
+ next;
+ mes "\"Perhaps you would be interested in helping me out? Would you be willing to help me gather Coal and gold to fulfill my commission? I am asking any and all willing souls to get me 50 coal and 100,000 gold pieces, as that would put a significant dint in my goal.\"";
+ menu
+ "Sure, I'll help!", L_Heathin_Help,
+ "I'd rather keep my gold for my own purposes, thank you very much.", L_Heathin_No,
+ "Wait, what kind of award are we talking about?", L_Heathin_Interested;
L_Heathin_Help:
- set HEATHIN_QUEST, 1;
- mes "[Heathin]";
- mes "\"Excellent! I am always glad when someone can be of service not just to me, but to all of Tulimshar. Please get me 50 Coal and 100,000 gold pieces, and you will be compensated for your efforts.\"";
- close;
+ set HEATHIN_QUEST, 1;
+ mes "[Heathin]";
+ mes "\"Excellent! I am always glad when someone can be of service not just to me, but to all of Tulimshar. Please get me 50 Coal and 100,000 gold pieces, and you will be compensated for your efforts.\"";
+ close;
L_Heathin_No:
- mes "[Heathin]";
- mes "\"That is too bad. If you change your mind, I shall still be here, attempting to get my commission done.\"";
- close;
+ mes "[Heathin]";
+ mes "\"That is too bad. If you change your mind, I shall still be here, attempting to get my commission done.\"";
+ close;
L_Heathin_Interested:
- mes "[Heathin]";
- mes "\"Well, when I am crafting these ingots, there are always stray metals left over. Surely I could forge them into ingots again, but I'd rather ensure that my commission be completed. I am willing to forge a Simple Ring for you, which could be made more beautiful by a skilled jeweler.\"";
- next;
- mes "\"What you do with the ring after I am done forging it is your own business, but it could come in handy.\"";
- next;
- mes "\"Does this sound like something you might be interested in?\"";
- menu
- "Sure, I'll help!", L_Heathin_Help,
- "I'd rather keep my gold.", L_Heathin_No,
- "Can you repeat that again?", L_Heathin_Interested;
- close;
+ mes "[Heathin]";
+ mes "\"Well, when I am crafting these ingots, there are always stray metals left over. Surely I could forge them into ingots again, but I'd rather ensure that my commission be completed. I am willing to forge a Simple Ring for you, which could be made more beautiful by a skilled jeweler.\"";
+ next;
+ mes "\"What you do with the ring after I am done forging it is your own business, but it could come in handy.\"";
+ next;
+ mes "\"Does this sound like something you might be interested in?\"";
+ menu
+ "Sure, I'll help!", L_Heathin_Help,
+ "I'd rather keep my gold.", L_Heathin_No,
+ "Can you repeat that again?", L_Heathin_Interested;
+ close;
L_Heathin_Ring_Award:
- if ( (zeny < 100000) | (countitem ("Coal") < 50) ) goto L_Heathin_Ring_Wait;
- set HEATHIN_QUEST, 2;
- set zeny, zeny - 100000;
- delitem "Coal", 50;
- getitem "RingSimple", 1;
- mes "[Heathin]";
- mes "\"You have brought the Coal and gold pieces. This is most excellent! As promised, I have crafted a ring for you. Hopefully you will find it useful.\"";
- next;
- mes "\"Time to smelt these gold pieces into ingots. The Council will be pleased. Thank you for your efforts!\"";
- close;
+ if ( (zeny < 100000)
+ | (countitem ("Coal") < 50) )
+ goto L_Heathin_Ring_Wait;
+ set HEATHIN_QUEST, 2;
+ set zeny, zeny - 100000;
+ delitem "Coal", 50;
+ getitem "RingSimple", 1;
+ mes "[Heathin]";
+ mes "\"You have brought the Coal and gold pieces. This is most excellent! As promised, I have crafted a ring for you. Hopefully you will find it useful.\"";
+ next;
+ mes "\"Time to smelt these gold pieces into ingots. The Council will be pleased. Thank you for your efforts!\"";
+ close;
L_Heathin_Ring_Wait:
- mes "[Heathin]";
- mes "\"Hello again. Making golden ingots keeps me pretty busy. I certainly hope I can fulfill my commission soon so that I can move on to bigger and better things.\"";
- next;
- mes "\"The pay is good, certainly, but I am a far better smith than this. If you can bring me 100,000 gold pieces and 50 Coal, it would surely get me to my goal faster.\"";
- next;
- mes "\"I will be sure to provide an apt award once you are done.\"";
- close;
+ mes "[Heathin]";
+ mes "\"Hello again. Making golden ingots keeps me pretty busy. I certainly hope I can fulfill my commission soon so that I can move on to bigger and better things.\"";
+ next;
+ mes "\"The pay is good, certainly, but I am a far better smith than this. If you can bring me 100,000 gold pieces and 50 Coal, it would surely get me to my goal faster.\"";
+ next;
+ mes "\"I will be sure to provide an apt award once you are done.\"";
+ close;
L_Heathin_Ring_Thanks:
- mes "[Heathin]";
- mes "\"Thank you again for helping me fulfil my commission. It has made a signficant dint in what the Council requires of me. Perhaps I may be of service to you again one day!\"";
- close;
+ mes "[Heathin]";
+ mes "\"Thank you again for helping me fulfil my commission. It has made a signficant dint in what the Council requires of me. Perhaps I may be of service to you again one day!\"";
+ close;
L_Heathin_Terranite_Hood:
- mes "[Heathin]";
- mes "\"Hello again friend, I just found out about this great metal called terranite.\"";
- next;
- mes "\"This metal is almost as strong as steel, but is also very ductile.\"";
- next;
- mes "\"With some effort, I can make this metal form rings tighter than any chain mail. It isn't the prettiest in hue, but its uses can be many.\"";
- next;
- mes "\"Unfortunately, it seems to be difficult to gather. Most that have searched for Terranite Ore either cannot find it or have never returned...\"";
- next;
- mes "\"I may be an excellent smith, but I certainly am no combatant. However, I would enjoy turning this ore into something useful, perhaps some type of armor to help those that may be braver.\"";
- next;
- mes "\"So, what do you say? Are you interested?\"";
- menu
- "No, thank you. Maybe later.", L_Heathin_Terranite_No,
- "Armor, you say? Definitely!", L_Heathin_Terranite_Yes;
- close;
+ mes "[Heathin]";
+ mes "\"Hello again friend, I just found out about this great metal called terranite.\"";
+ next;
+ mes "\"This metal is almost as strong as steel, but is also very ductile.\"";
+ next;
+ mes "\"With some effort, I can make this metal form rings tighter than any chain mail. It isn't the prettiest in hue, but its uses can be many.\"";
+ next;
+ mes "\"Unfortunately, it seems to be difficult to gather. Most that have searched for Terranite Ore either cannot find it or have never returned...\"";
+ next;
+ mes "\"I may be an excellent smith, but I certainly am no combatant. However, I would enjoy turning this ore into something useful, perhaps some type of armor to help those that may be braver.\"";
+ next;
+ mes "\"So, what do you say? Are you interested?\"";
+ menu
+ "No, thank you. Maybe later.", L_Heathin_Terranite_No,
+ "Armor, you say? Definitely!", L_Heathin_Terranite_Yes;
+ close;
L_Heathin_Terranite_No:
- mes "[Heathin]";
- mes "\"Ah, that is too bad. Come by again anytime.\"";
- close;
+ mes "[Heathin]";
+ mes "\"Ah, that is too bad. Come by again anytime.\"";
+ close;
L_Heathin_Terranite_Yes:
- set HEATHIN_QUEST, 3;
- mes "[Heathin]";
- mes "\"Great, this is going to be fun! As I have not had much practice with this armor, I'd like to get started soon.\"";
- next;
- mes "Heathin thinks for a moment.";
- next;
- mes "\"Ah, I know! I will make a helm... Well, more like a hood, since it will be woven.\"";
- next;
- mes "\"It will require a great amount of heat, if the rumors are to be believed. For this, I will need 100 Coal to keep my forge burning hot. I will also need 10 Terranite Ore to make the armor. Of course, such work does not come cheap. While I may enjoy my work, my time and effort is very valuable. To compensate my efforts I will need 200,000 gold pieces. Please come back with the gold, Coal and ore and I'll make this hood for you.\"";
- close;
+ set HEATHIN_QUEST, 3;
+ mes "[Heathin]";
+ mes "\"Great, this is going to be fun! As I have not had much practice with this armor, I'd like to get started soon.\"";
+ next;
+ mes "Heathin thinks for a moment.";
+ next;
+ mes "\"Ah, I know! I will make a helm... Well, more like a hood, since it will be woven.\"";
+ next;
+ mes "\"It will require a great amount of heat, if the rumors are to be believed. For this, I will need 100 Coal to keep my forge burning hot. I will also need 10 Terranite Ore to make the armor. Of course, such work does not come cheap. While I may enjoy my work, my time and effort is very valuable. To compensate my efforts I will need 200,000 gold pieces. Please come back with the gold, Coal and ore and I'll make this hood for you.\"";
+ close;
L_Heathin_Terranite_Hood_Forge:
- if ( (zeny < 200000) | (countitem("Coal") < 100) | (countitem("TerraniteOre") < 10) ) goto L_Heathin_Terranite_Hood_Wait;
- set HEATHIN_QUEST, 4;
- delitem "Coal", 100;
- delitem "TerraniteOre", 10;
- set zeny, zeny - 200000;
- mes "[Heathin]";
- mes "\"Great, you brought everything! Come back later and I'll have the helm ready for you.\"";
- close;
+ if ( (zeny < 200000)
+ | (countitem("Coal") < 100)
+ | (countitem("TerraniteOre") < 10) )
+ goto L_Heathin_Terranite_Hood_Wait;
+ set HEATHIN_QUEST, 4;
+ delitem "Coal", 100;
+ delitem "TerraniteOre", 10;
+ set zeny, zeny - 200000;
+ mes "[Heathin]";
+ mes "\"Great, you brought everything! Come back later and I'll have the helm ready for you.\"";
+ close;
L_Heathin_Terranite_Hood_Wait:
- mes "[Heathin]";
- mes "\"I am very busy right now. If you could bring me 10 Terranite Ore, 100 Coal and 200,000 gold pieces, I will make that terranite hood for you.\"";
- close;
+ mes "[Heathin]";
+ mes "\"I am very busy right now. If you could bring me 10 Terranite Ore, 100 Coal and 200,000 gold pieces, I will make that terranite hood for you.\"";
+ close;
L_Heathin_Terranite_Hood_Ready:
- set HEATHIN_QUEST, 5;
- getitem "TerraniteHelmet", 1;
- mes "[Heathin]";
- mes "\"I am all done with your terranite hood. I hope you enjoy it! I have some work to wrap up for the Council, but come back later and I might be able to assist you again.\"";
- close;
+ set HEATHIN_QUEST, 5;
+ getitem "TerraniteHelmet", 1;
+ mes "[Heathin]";
+ mes "\"I am all done with your terranite hood. I hope you enjoy it! I have some work to wrap up for the Council, but come back later and I might be able to assist you again.\"";
+ close;
L_Heathin_Terranite_Legs:
- set HEATHIN_QUEST, 6;
- mes "[Heathin]";
- mes "\"I am glad you are back! I've just finished up some more of my commission. Now I can get back to making terranite armor for you. This time I will make some pants, but they need more ore, more Coal to heat my forge and of course, more gold for my efforts.\"";
- next;
- mes "\"To make terranite pants, I need 200 Coal, 30 Terranite Ore and 400,000 gold pieces. The faster you bring this to me, the faster I can have your terranite pants ready.\"";
- close;
+ set HEATHIN_QUEST, 6;
+ mes "[Heathin]";
+ mes "\"I am glad you are back! I've just finished up some more of my commission. Now I can get back to making terranite armor for you. This time I will make some pants, but they need more ore, more Coal to heat my forge and of course, more gold for my efforts.\"";
+ next;
+ mes "\"To make terranite pants, I need 200 Coal, 30 Terranite Ore and 400,000 gold pieces. The faster you bring this to me, the faster I can have your terranite pants ready.\"";
+ close;
L_Heathin_Terranite_Legs_Forge:
- if ( (zeny < 400000) | (countitem("Coal") < 200) | (countitem("TerraniteOre") < 30) ) goto L_Heathin_Terranite_Legs_Wait;
- set HEATHIN_QUEST, 7;
- delitem "Coal", 200;
- delitem "TerraniteOre", 30;
- set zeny, zeny - 400000;
- mes "[Heathin]";
- mes "\"Great, you have brought everything! Come back later and I will have those terranite pants ready for you.\"";
- close;
+ if ( (zeny < 400000)
+ | (countitem("Coal") < 200)
+ | (countitem("TerraniteOre") < 30) )
+ goto L_Heathin_Terranite_Legs_Wait;
+ set HEATHIN_QUEST, 7;
+ delitem "Coal", 200;
+ delitem "TerraniteOre", 30;
+ set zeny, zeny - 400000;
+ mes "[Heathin]";
+ mes "\"Great, you have brought everything! Come back later and I will have those terranite pants ready for you.\"";
+ close;
L_Heathin_Terranite_Legs_Wait:
- mes "[Heathin]";
- mes "\"I am very busy right now. If you could bring me 30 Terranite Ore, 200 Coal and 400,000 gold pieces, I will make those terranite pants for you.\"";
- close;
+ mes "[Heathin]";
+ mes "\"I am very busy right now. If you could bring me 30 Terranite Ore, 200 Coal and 400,000 gold pieces, I will make those terranite pants for you.\"";
+ close;
L_Heathin_Terranite_Legs_Ready:
- set HEATHIN_QUEST, 8;
- getitem "TerraniteLegs", 1;
- mes "[Heathin]";
- mes "\"I am all done with your terranite pants. Hope you enjoy them! I have some more work to complete for the Council. Come back later and I might be able to assist you again.\"";
- close;
+ set HEATHIN_QUEST, 8;
+ getitem "TerraniteLegs", 1;
+ mes "[Heathin]";
+ mes "\"I am all done with your terranite pants. Hope you enjoy them! I have some more work to complete for the Council. Come back later and I might be able to assist you again.\"";
+ close;
L_Heathin_Terranite_Chest_Armor:
- set HEATHIN_QUEST, 9;
- mes "[Heathin]";
- mes "\"Good to see you again. I have just finished up some more of my commission. Now I can get back to making terranite armor for you. This time, I will make some terranite chest armor, but it needs more ore, more Coal for my forge and of course, more gold to compensate for my efforts.\"";
- next;
- mes "\"To make terranite chest armor, I need 250 Coal, 40 Terranite Ore and 500,000 gold pieces. The faster you bring this to me, the faster I can have your terranite armor ready.\"";
- close;
+ set HEATHIN_QUEST, 9;
+ mes "[Heathin]";
+ mes "\"Good to see you again. I have just finished up some more of my commission. Now I can get back to making terranite armor for you. This time, I will make some terranite chest armor, but it needs more ore, more Coal for my forge and of course, more gold to compensate for my efforts.\"";
+ next;
+ mes "\"To make terranite chest armor, I need 250 Coal, 40 Terranite Ore and 500,000 gold pieces. The faster you bring this to me, the faster I can have your terranite armor ready.\"";
+ close;
L_Heathin_Terranite_Chest_Armor_Forge:
- if ( (zeny < 500000) | (countitem("Coal") < 250) | (countitem("TerraniteOre") < 40) ) goto L_Heathin_Terranite_Chest_Armor_Wait;
- set HEATHIN_QUEST, 10;
- delitem "Coal", 250;
- delitem "TerraniteOre", 40;
- set zeny, zeny - 500000;
- mes "[Heathin]";
- mes "\"Splendid, you have brought everything! Come back later and I will have the terranite chest armor ready for you.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem("Coal") < 250)
+ | (countitem("TerraniteOre") < 40) )
+ goto L_Heathin_Terranite_Chest_Armor_Wait;
+ set HEATHIN_QUEST, 10;
+ delitem "Coal", 250;
+ delitem "TerraniteOre", 40;
+ set zeny, zeny - 500000;
+ mes "[Heathin]";
+ mes "\"Splendid, you have brought everything! Come back later and I will have the terranite chest armor ready for you.\"";
+ close;
L_Heathin_Terranite_Chest_Armor_Wait:
- mes "[Heathin]";
- mes "\"I am very busy right now. If you could bring me 40 Terranite Ore, 250 Coal and 500,000 gold pieces, I will make that chest armor for you.\"";
- close;
+ mes "[Heathin]";
+ mes "\"I am very busy right now. If you could bring me 40 Terranite Ore, 250 Coal and 500,000 gold pieces, I will make that chest armor for you.\"";
+ close;
L_Heathin_Terranite_Chest_Armor_Ready:
- set HEATHIN_QUEST, 11;
- getitem "TerraniteChestArmor", 1;
- mes "[Heathin]";
- mes "\"I have completed your terranite chest armor. I hope you enjoy it! I have some work to wrap up for the Council again, but come back later and I might be able to assist you once more.\"";
- close;
+ set HEATHIN_QUEST, 11;
+ getitem "TerraniteChestArmor", 1;
+ mes "[Heathin]";
+ mes "\"I have completed your terranite chest armor. I hope you enjoy it! I have some work to wrap up for the Council again, but come back later and I might be able to assist you once more.\"";
+ close;
L_Heathin_Terranite_Arrows:
- mes "[Heathin]";
- mes "\"How good to see you. I have experimented a little with Terranite Ore to see what else can be done with it. It seems to have some qualities suitable for weapons, but I have only tested it with arrows. If you would like, I can make Terranite Arrows, but as as with the armor, I need Coal, Terranite Ore and payment for my efforts.\"";
- next;
- mes "\"Also, it might be a while until I have time to see what else I can make with terranite other than arrows, as right now the Council is keeping me rather busy with my commission. So, would you like some Terranite Arrows?\"";
- menu
- "No, thank you.", L_Heathin_Terranite_Arrows_No,
- "Sure, I could use some arrows.", L_Heathin_Terranite_Arrows_Yes;
- close;
+ mes "[Heathin]";
+ mes "\"How good to see you. I have experimented a little with Terranite Ore to see what else can be done with it. It seems to have some qualities suitable for weapons, but I have only tested it with arrows. If you would like, I can make Terranite Arrows, but as as with the armor, I need Coal, Terranite Ore and payment for my efforts.\"";
+ next;
+ mes "\"Also, it might be a while until I have time to see what else I can make with terranite other than arrows, as right now the Council is keeping me rather busy with my commission. So, would you like some Terranite Arrows?\"";
+ menu
+ "No, thank you.", L_Heathin_Terranite_Arrows_No,
+ "Sure, I could use some arrows.", L_Heathin_Terranite_Arrows_Yes;
+ close;
L_Heathin_Terranite_Arrows_No:
- mes "[Heathin]";
- mes "\"Well, if you change your mind, I'm not going anywhere.\"";
- close;
+ mes "[Heathin]";
+ mes "\"Well, if you change your mind, I'm not going anywhere.\"";
+ close;
L_Heathin_Terranite_Arrows_Yes:
- set HEATHIN_QUEST, 12;
- mes "[Heathin]";
- mes "\"Good, good. I shall begin crafting these arrows as soon as you come back. However, I cannot just make small handfuls as it would not be worth my time and effort to have my concentration interrupted for small tasks. I will make 1,000 Terranite Arrows per request, for which I will need "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\"";
- next;
- mes "\"See you soon!\"";
- close;
+ set HEATHIN_QUEST, 12;
+ mes "[Heathin]";
+ mes "\"Good, good. I shall begin crafting these arrows as soon as you come back. However, I cannot just make small handfuls as it would not be worth my time and effort to have my concentration interrupted for small tasks. I will make 1,000 Terranite Arrows per request, for which I will need "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\"";
+ next;
+ mes "\"See you soon!\"";
+ close;
L_Heathin_Terranite_Arrows_Forge:
- if ( (zeny < @TARROW_REQ_GP) | (countitem("Coal") < @TARROW_REQ_COAL) | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) ) goto L_Heathin_Terranite_Arrows_Wait;
- set HEATHIN_QUEST, 13;
- delitem "Coal", @TARROW_REQ_COAL;
- delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE;
- set zeny, zeny - @TARROW_REQ_GP;
- mes "[Heathin]";
- mes "\"Wonderful! You have everything I asked for. I will start working on the arrows right away.\"";
- close;
+ if ( (zeny < @TARROW_REQ_GP)
+ | (countitem("Coal") < @TARROW_REQ_COAL)
+ | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) )
+ goto L_Heathin_Terranite_Arrows_Wait;
+ set HEATHIN_QUEST, 13;
+ delitem "Coal", @TARROW_REQ_COAL;
+ delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE;
+ set zeny, zeny - @TARROW_REQ_GP;
+ mes "[Heathin]";
+ mes "\"Wonderful! You have everything I asked for. I will start working on the arrows right away.\"";
+ close;
L_Heathin_Terranite_Arrows_Wait:
- mes "[Heathin]";
- mes "\"If you want Terranite Arrows, please get me "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\"";
- close;
+ mes "[Heathin]";
+ mes "\"If you want Terranite Arrows, please get me "+@TARROW_REQ_TERRA_ORE+" Terranite Ore, "+@TARROW_REQ_COAL+" Coal and "+@TARROW_REQ_GP+" gold pieces.\"";
+ close;
L_Heathin_Terranite_Arrows_Ready:
- getitem "TerraniteArrow", 1000;
- set HEATHIN_QUEST, 14;
- mes "[Heathin]";
- mes "\"All done, here you go! I hope you like them. I am still working on my commission, but if you ever need any more Terranite Arrows, just come on by with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces and I will make another 1,000 arrows for you. By now I have enough Terranite Ore in reserve that you can just trade me my requirements to keep my resources up. Thank you for all your efforts!\"";
- close;
+ getitem "TerraniteArrow", 1000;
+ set HEATHIN_QUEST, 14;
+ mes "[Heathin]";
+ mes "\"All done, here you go! I hope you like them. I am still working on my commission, but if you ever need any more Terranite Arrows, just come on by with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces and I will make another 1,000 arrows for you. By now I have enough Terranite Ore in reserve that you can just trade me my requirements to keep my resources up. Thank you for all your efforts!\"";
+ close;
L_Heathin_Terranite_Arrows_Trade:
- mes "[Heathin]";
- mes "\"Hello, there. If you have "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces, I will trade you 1,000 Terranite Arrows. Would you like some Terranite Arrows?\"";
- menu
- "No.", L_Heathin_Terranite_Arrows_Trade_No,
- "Yes.", L_Heathin_Terranite_Arrows_Trade_Yes;
- close;
+ mes "[Heathin]";
+ mes "\"Hello, there. If you have "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces, I will trade you 1,000 Terranite Arrows. Would you like some Terranite Arrows?\"";
+ menu
+ "No.", L_Heathin_Terranite_Arrows_Trade_No,
+ "Yes.", L_Heathin_Terranite_Arrows_Trade_Yes;
+ close;
L_Heathin_Terranite_Arrows_Trade_No:
- mes "[Heathin]";
- mes "\"Come back again if you would like to get Terranite Arrows.\"";
- close;
+ mes "[Heathin]";
+ mes "\"Come back again if you would like to get Terranite Arrows.\"";
+ close;
L_Heathin_Terranite_Arrows_Trade_Yes:
- if ( (zeny < @TARROW_REQ_GP) | (countitem("Coal") < @TARROW_REQ_COAL) | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) ) goto L_Heathin_Terranite_Arrows_Trade_Wait;
- delitem "Coal", @TARROW_REQ_COAL;
- delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE;
- set zeny, zeny - @TARROW_REQ_GP;
- set @lucky, 5 * rand(readparam(bLuk));
- getitem "TerraniteArrow", 1000 + @lucky;
- mes "[Heathin]";
- mes "\"Here you go! You are lucky, I could forge "+@lucky+" more arrows than expected. Come back again if you want more Terranite Arrows.\"";
- close;
+ if ( (zeny < @TARROW_REQ_GP)
+ | (countitem("Coal") < @TARROW_REQ_COAL)
+ | (countitem("TerraniteOre") < @TARROW_REQ_TERRA_ORE) )
+ goto L_Heathin_Terranite_Arrows_Trade_Wait;
+ delitem "Coal", @TARROW_REQ_COAL;
+ delitem "TerraniteOre", @TARROW_REQ_TERRA_ORE;
+ set zeny, zeny - @TARROW_REQ_GP;
+ set @lucky, 5 * rand(readparam(bLuk));
+ getitem "TerraniteArrow", 1000 + @lucky;
+ mes "[Heathin]";
+ mes "\"Here you go! You are lucky, I could forge "+@lucky+" more arrows than expected. Come back again if you want more Terranite Arrows.\"";
+ close;
L_Heathin_Terranite_Arrows_Trade_Wait:
- mes "[Heathin]";
- mes "\"It seems that you do not have the necessary resources for me to trade you. Please come back with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces if you want another 1,000 Terranite Arrows.\"";
- close;
-
+ mes "[Heathin]";
+ mes "\"It seems that you do not have the necessary resources for me to trade you. Please come back with "+@TARROW_REQ_COAL+" Coal, "+@TARROW_REQ_TERRA_ORE+" Terranite Ore and "+@TARROW_REQ_GP+" gold pieces if you want another 1,000 Terranite Arrows.\"";
+ close;
}
diff --git a/world/map/npc/021-2/inya.txt b/world/map/npc/021-2/inya.txt
index ac383e87..53d3cf0f 100644
--- a/world/map/npc/021-2/inya.txt
+++ b/world/map/npc/021-2/inya.txt
@@ -1,174 +1,203 @@
//Gemstones: Diamond (white) , Ruby (red), Emerald (green), Sapphire (blue), Topaz (yellow), Amethyst (purple)
//The power of the gems is important to future balance of these rings. Are they related to stats, tiers of power, schools of magic?
-021-2.gat,43,62,0 script Inya 106,{
-
- mes "[Inya]";
- mes "\"I am Inya, a jeweler of fine rings. If you have a Simple Ring and a gem, I can make a nice ring for you for 1,000,000 gold pieces.\"";
- next;
- mes "\"Also, if you have a ring with gems on it, I can remove the gems and return the Simple Ring to you for 500,000 gold pieces.\"";
- next;
- mes "\"So, how can I help you?\"";
- menu
- "I have a wedding ring, will that do?", L_Inya_Wedding_Ring,
- "I'd like to remove a gem (500000 GP).", L_Inya_Remove_RingGem,
- "I'd like to add a gem (1000000 GP).", L_Inya_Add_RingGem,
- "Not interested.", L_Inya_NotInterested;
- close;
+021-2.gat,43,62,0|script|Inya|106,{
+
+ mes "[Inya]";
+ mes "\"I am Inya, a jeweler of fine rings. If you have a Simple Ring and a gem, I can make a nice ring for you for 1,000,000 gold pieces.\"";
+ next;
+ mes "\"Also, if you have a ring with gems on it, I can remove the gems and return the Simple Ring to you for 500,000 gold pieces.\"";
+ next;
+ mes "\"So, how can I help you?\"";
+ menu
+ "I have a wedding ring, will that do?", L_Inya_Wedding_Ring,
+ "I'd like to remove a gem (500000 GP).", L_Inya_Remove_RingGem,
+ "I'd like to add a gem (1000000 GP).", L_Inya_Add_RingGem,
+ "Not interested.", L_Inya_NotInterested;
+ close;
L_Inya_Wedding_Ring:
- mes "[Inya]";
- mes "\"No, sorry. I do not alter wedding rings at this time.\"";
- close;
+ mes "[Inya]";
+ mes "\"No, sorry. I do not alter wedding rings at this time.\"";
+ close;
L_Inya_Remove_RingGem:
- mes "[Inya]";
- mes "\"What kind of gem would you like to have removed?\"";
- menu
- "Diamond.", L_Inya_Remove_Diamond,
- "Ruby.", L_Inya_Remove_Ruby,
- "Emerald.", L_Inya_Remove_Emerald,
- "Sapphire.", L_Inya_Remove_Sapphire,
- "Topaz.", L_Inya_Remove_Topaz,
- "Amethyst.", L_Inya_Remove_Amethyst,
- "I've changed my mind.", L_Inya_NotInterested;
- close;
+ mes "[Inya]";
+ mes "\"What kind of gem would you like to have removed?\"";
+ menu
+ "Diamond.", L_Inya_Remove_Diamond,
+ "Ruby.", L_Inya_Remove_Ruby,
+ "Emerald.", L_Inya_Remove_Emerald,
+ "Sapphire.", L_Inya_Remove_Sapphire,
+ "Topaz.", L_Inya_Remove_Topaz,
+ "Amethyst.", L_Inya_Remove_Amethyst,
+ "I've changed my mind.", L_Inya_NotInterested;
+ close;
L_Inya_Add_RingGem:
- mes "[Inya]";
- mes "\"What kind of gem would you like to add?\"";
- menu
- "Diamond.", L_Inya_Add_Diamond,
- "Ruby.", L_Inya_Add_Ruby,
- "Emerald.", L_Inya_Add_Emerald,
- "Sapphire.", L_Inya_Add_Sapphire,
- "Topaz.", L_Inya_Add_Topaz,
- "Amethyst.", L_Inya_Add_Amethyst,
- "I've changed my mind.", L_Inya_NotInterested;
- close;
+ mes "[Inya]";
+ mes "\"What kind of gem would you like to add?\"";
+ menu
+ "Diamond.", L_Inya_Add_Diamond,
+ "Ruby.", L_Inya_Add_Ruby,
+ "Emerald.", L_Inya_Add_Emerald,
+ "Sapphire.", L_Inya_Add_Sapphire,
+ "Topaz.", L_Inya_Add_Topaz,
+ "Amethyst.", L_Inya_Add_Amethyst,
+ "I've changed my mind.", L_Inya_NotInterested;
+ close;
L_Inya_Remove_Diamond:
- if ( (zeny < 500000) | (countitem ("RingGemWhite") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemWhite", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemWhite") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemWhite", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Remove_Ruby:
- if ( (zeny < 500000) | (countitem ("RingGemRed") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemRed", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemRed") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemRed", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Remove_Emerald:
- if ( (zeny < 500000) | (countitem ("RingGemGreen") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemGreen", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemGreen") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemGreen", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Remove_Sapphire:
- if ( (zeny < 500000) | (countitem ("RingGemBlue") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemBlue", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemBlue") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemBlue", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Remove_Topaz:
- if ( (zeny < 500000) | (countitem ("RingGemYellow") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemYellow", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemYellow") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemYellow", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Remove_Amethyst:
- if ( (zeny < 500000) | (countitem ("RingGemPurple") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 500000;
- delitem "RingGemPurple", 1;
- getitem "RingSimple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 500000)
+ | (countitem ("RingGemPurple") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 500000;
+ delitem "RingGemPurple", 1;
+ getitem "RingSimple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Diamond:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawWhite") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawWhite", 1;
- getitem "RingGemWhite", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawWhite") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawWhite", 1;
+ getitem "RingGemWhite", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Ruby:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawRed") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawRed", 1;
- getitem "RingGemRed", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawRed") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawRed", 1;
+ getitem "RingGemRed", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Emerald:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawGreen") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawGreen", 1;
- getitem "RingGemGreen", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawGreen") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawGreen", 1;
+ getitem "RingGemGreen", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Sapphire:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawBlue") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawBlue", 1;
- getitem "RingGemBlue", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawBlue") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawBlue", 1;
+ getitem "RingGemBlue", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Topaz:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawYellow") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawYellow", 1;
- getitem "RingGemYellow", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawYellow") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawYellow", 1;
+ getitem "RingGemYellow", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_Add_Amethyst:
- if ( (zeny < 1000000) | (countitem ("RingSimple") < 1) | (countitem ("GemRawPurple") < 1) ) goto L_Inya_Not_Enough;
- set zeny, zeny - 1000000;
- delitem "RingSimple", 1;
- delitem "GemRawPurple", 1;
- getitem "RingGemPurple", 1;
- mes "[Inya]";
- mes "\"Here you go.\"";
- close;
+ if ( (zeny < 1000000)
+ | (countitem ("RingSimple") < 1)
+ | (countitem ("GemRawPurple") < 1) )
+ goto L_Inya_Not_Enough;
+ set zeny, zeny - 1000000;
+ delitem "RingSimple", 1;
+ delitem "GemRawPurple", 1;
+ getitem "RingGemPurple", 1;
+ mes "[Inya]";
+ mes "\"Here you go.\"";
+ close;
L_Inya_NotInterested:
- mes "[Inya]";
- mes "\"Come back later and I will try to be of assistance.\"";
- close;
+ mes "[Inya]";
+ mes "\"Come back later and I will try to be of assistance.\"";
+ close;
L_Inya_Not_Enough:
- mes "[Inya]";
- mes "\"I am sorry, you simply do not seem to have the necessary items for me to help you. Please come back when you do, and I would be more than happy to help you out.\"";
- close;
-
-}
+ mes "[Inya]";
+ mes "\"I am sorry, you simply do not seem to have the necessary items for me to help you. Please come back when you do, and I would be more than happy to help you out.\"";
+ close;
+} \ No newline at end of file
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;
}
diff --git a/world/map/npc/021-2/workshop.txt b/world/map/npc/021-2/workshop.txt
index ffe732b4..ed23ab5b 100644
--- a/world/map/npc/021-2/workshop.txt
+++ b/world/map/npc/021-2/workshop.txt
@@ -1,11 +1,11 @@
// Tulimshar's main workshop
// The receptionist
-021-2.gat,22,63,0 script Sonir 118,{
- mes "[Sonir]";
- mes "\"This is Tulimshar's main workshop. Much crafting happens here.\"";
- next;
- mes "[Sonir]";
- mes "\"We also have limited housing on the second floor.\"";
- close;
-}
+021-2.gat,22,63,0|script|Sonir|118,{
+ mes "[Sonir]";
+ mes "\"This is Tulimshar's main workshop. Much crafting happens here.\"";
+ next;
+ mes "[Sonir]";
+ mes "\"We also have limited housing on the second floor.\"";
+ close;
+} \ No newline at end of file