diff options
author | wushin <pasekei@gmail.com> | 2015-01-07 21:04:38 -0600 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2015-01-07 21:04:38 -0600 |
commit | 61c88ec162713b980f30e6e5111c1cfbd9f23d3a (patch) | |
tree | cbc5f399ccf8dd226056887a70b9a313f88bee6e /world/map/npc/001-2/government_building.txt | |
parent | 2901ba177dea5867cbd52eb2b02a0ef8e1816e15 (diff) | |
download | serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.gz serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.bz2 serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.tar.xz serverdata-61c88ec162713b980f30e6e5111c1cfbd9f23d3a.zip |
Adjust rest of world to Match new tutorial
Diffstat (limited to 'world/map/npc/001-2/government_building.txt')
-rw-r--r-- | world/map/npc/001-2/government_building.txt | 144 |
1 files changed, 144 insertions, 0 deletions
diff --git a/world/map/npc/001-2/government_building.txt b/world/map/npc/001-2/government_building.txt new file mode 100644 index 00000000..f201f192 --- /dev/null +++ b/world/map/npc/001-2/government_building.txt @@ -0,0 +1,144 @@ +// The government builing in the south west + +// A clerk +001-2.gat,25,21,0|script|Estard|107 +{ + mes "[Estard]"; + mes "\"Hello what can I do for you?\""; + next; + if (getpartnerid2()) + goto L_main_married; + + menu + "I'm looking at getting married.", L_marry, + "Nothing, I guess.", L_Close; + +L_main_married: + menu + "I'd like a divorce.", L_divorce, + "Nothing, I guess.", L_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", L_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 at least get wedding rings?", L_get_rings, + "Thanks anyways.", L_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.", L_Close; + if (Zeny >= WEDDING_FEE) + menu + "I'll buy a pair.", L_get_rings_pay, + "Thanks anyways.", L_Close; + goto L_get_rings_pay; + +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.", L_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; + +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; + +L_Close: + 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; +} + +// Guard +001-2.gat,22,21,0|script|Guard#govt_in|123 +{ + mes "[Guard]"; + mes "\"You can't come back here.\""; + close; +} |