summaryrefslogblamecommitdiff
path: root/world/map/npc/021-2/government_building.txt
blob: dc2749b2506314fa7d836fc02cf28b61f663b55f (plain) (tree)
1
2
3
4
5
6
7
8
9


                                           



                                           

       

                            
 



                                                   

               



                                         

        

                                      
                           







                                                                                       

           




                                                                                                                                                                                                                                                     

                  







                                                                                                                         

                 


                                                                                                                                                   

            


                                                                                                          
                           

                                                              
                            



                                                

                




                                        

          

                                                         
                             








                                                                                          

             
                             









                                                      

               
                                   



                                                  

                     


                                                                                                               

                   


                                                 

                    


                                                               

             
                           




                                  
                                 


                             

 
                                     



                                                                                            
        
                        
 


                                           
 








                                         

            


                               

            



                                                       

                 



                                                                    

            






                                                    

             
                  
                              
                        






                                                                                                         

                 






                                                      

                  
                  
                              
                        



                                                                                                                                                                

                 


                                       


                                
                 


        



                                        
 
// 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;

L_main:
    if (getpartnerid2())
        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 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;

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())
        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;
}

021-2.gat,36,17,0|script|Tathin|107,{
    set @hw2011_npc_id, $@hw2011_npc_tathin;
    if (gettime(7) == $@hw2011_year && gettime(6) == 10 && gettime(5) >= $@hw2011_start_day)
        goto L_TrickOrTreat;

L_Begin:
    set @PARTY_SKILL, 3;

    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;

L_Base_Menu:
    menu
        "Nothing, I guess.", -;
    close;

L_Can_Party:
    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;

L_Get_Party:
    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;

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;

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;

L_NotEnoughMoney:
    mes "[Tathin]";
    mes "\"You don't have enough GP\"";
    close;

L_TrickOrTreat:
    callfunc "TrickOrTreat2011";
    goto L_Begin;
}

// Guard
021-2.gat,20,19,0|script|Guard|123,1,1,{
    mes "[Guard]";
    mes "\"You can't come back here.\"";
    close;
}