summaryrefslogtreecommitdiff
path: root/npc/021-2_Tulimshar
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-08-20 20:30:29 -0600
committerJared Adams <jaxad0127@gmail.com>2009-08-20 20:30:29 -0600
commit21b1a5c05cad84cb54d61ebf9ec5f23cfead1ea1 (patch)
tree507c3e82640bc9193e0746966fba70fbe65586ba /npc/021-2_Tulimshar
parent0465d6c53f3b068a48d34177bf211cb8fcc637c2 (diff)
downloadserverdata-21b1a5c05cad84cb54d61ebf9ec5f23cfead1ea1.tar.gz
serverdata-21b1a5c05cad84cb54d61ebf9ec5f23cfead1ea1.tar.bz2
serverdata-21b1a5c05cad84cb54d61ebf9ec5f23cfead1ea1.tar.xz
serverdata-21b1a5c05cad84cb54d61ebf9ec5f23cfead1ea1.zip
Add another wedding location
Diffstat (limited to 'npc/021-2_Tulimshar')
-rw-r--r--npc/021-2_Tulimshar/government_building.txt133
1 files changed, 131 insertions, 2 deletions
diff --git a/npc/021-2_Tulimshar/government_building.txt b/npc/021-2_Tulimshar/government_building.txt
index 48a7db7a..92ca1f35 100644
--- a/npc/021-2_Tulimshar/government_building.txt
+++ b/npc/021-2_Tulimshar/government_building.txt
@@ -5,12 +5,142 @@
mes "[Estard]";
mes "\"Hello what Can I do for you?\"";
next;
+
+L_main:
+ if (getpartnerid2(0))
+ goto L_main_married;
+
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;
+
+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;
+
+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;
+
+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 atleast 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;
+
+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;
+
+L_get_rings_pay:
+ 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;
+
+L_do_divorce:
+ if (zeny < @divorce_cost)
+ goto L_not_enough_money;
+
+ if divorce(0) 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;
+
+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;
+
+L_not_enough_money:
+ 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;
+
+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;
}
-// A clerk
+// A clerk (TODO: give out party skill levels)
021-2.gat,36,17,0 script Tathin 107,{
mes "[Tathin]";
mes "\"Hello what Can I do for you?\"";
@@ -21,7 +151,6 @@
}
// Guard
-
021-2.gat,20,19,0 script Guard 123,1,1,{
mes "[Guard]";
mes "\"You can't come back here.\"";