summaryrefslogblamecommitdiff
path: root/npc/002-1/arpan.txt
blob: 543a8594bd9e468ad0deb3b33fc9fa011300c292 (plain) (tree)
1
2
3
4
5
6
7
8
9
                

                    





                                             
                                     

                        



                                        








                                                        

                   
























                                                                                                        
                 




                                   
                 




                                           
                              













                                                                                                        
                 




                                   
                 




                                           
                              




                                                         

                               
                                 

                                  



                                                                                                        
                               


                             
                                
                                    


                                                                                                                                





                                                             
                               

                                                                                             


                                                             




                    
                                                                                                                      
         
                                                                                                                                                                       
         
                                                                                                                                     












                                                                               
                                                                                                                                                          
         

                                 












                                                                                                                                                               

                                                                                                     
                                                                    

                                                                
                                                                             
                                                                                                                                   




                                















                                                                                                                                        


           
                                                                                                                                                                 


                                                                                    
                                                                                                                                                                                    






                
                                                                                                                                                                                                   


                    
                                                                






                
                                                                                                                                                         
         
         
                                                                               

         
                






                                                                  
                                    
                                  

                                                        


                      





                                                                                          






                                                                                     
                                                                                                                      
         
                                                                                                                                                                        
         
                                                                                                                                     






                
                              

                







                                                                                                                       
                                          

          




                  
// TMW-2 Script.
// Editor: Jesusalva
//
// Evol scripts.
// Authors:
//    Ablu
//    Qwerty Dragon
// Description:
//    Explains to the player how he got here.
//    Modified for TMW2 by Jesusalva.
// Variable:
//    0 ShipQuests_Arpan
//          0 -> Need to talk with Arpan
//          1 -> Need to take clothes
//          2 -> Got the clothes
//          3 -> Equipment Done
//    1 ShipQuests_Julia
// Values:
//    00   Has not talked to Arpan yet.
//    01   Talked to Arpan and needs to get the clothes.
//    02   Has the clothes.
//    03   Has and equipped the clothes.
//    10   Has not talked to Julia
//    11   Need to see Julia
//    12   Has been registered by Julia
// Translation
//    FR translated

002-1,49,36,0	script	LeftDoorCheck	NPC_HIDDEN,0,0,{
    .@q = getq(ShipQuests_Arpan);
    if (.@q == 0) doevent "Magic Arpan::OnTalk";

    close;
}

002-1,54,36,0	script	RightDoorCheck	NPC_HIDDEN,0,0,{
    .@q = getq(ShipQuests_Arpan);
    if (.@q == 0) doevent "Magic Arpan::OnTalk";

    close;
}

002-1,47,32,0	script	LeftBarrierCheck	NPC_HIDDEN,0,2,{
    .@q = getq(ShipQuests_Arpan);
    if (.@q > 2) close;
    if (.@q == 2 && getequipid(equip_torso) == 1300 && getequipid(equip_legs) == 2200) goto L_EquipDone;
    if (.@q == 2) goto L_Equip;
    if (.@q == 1) goto L_GetCloth;

    doevent "Magic Arpan::OnClothNotTaken";

L_Equip:
    slide 49, 32;
    doevent "Magic Arpan::OnEquip";

    close;

L_GetCloth:
    slide 49, 32;
    doevent "Magic Arpan::OnClothNotTaken";

    close;

L_EquipDone:
    setq1 ShipQuests_Arpan, 3;

    close;
}

002-1,56,32,0	script	RightBarrierCheck	NPC_HIDDEN,0,2,{
    .@q = getq(ShipQuests_Arpan);
    if (.@q > 2) close;
    if (.@q == 2 && getequipid(equip_torso) == 1300 && getequipid(equip_legs) == 2200) goto L_EquipDone;
    if (.@q == 2) goto L_Equip;
    if (.@q == 1) goto L_GetCloth;

    doevent "Magic Arpan::OnClothNotTaken";

L_Equip:
    slide 55, 32;
    doevent "Magic Arpan::OnEquip";

    close;

L_GetCloth:
    slide 55, 32;
    doevent "Magic Arpan::OnClothNotTaken";

    close;

L_EquipDone:
    setq1 ShipQuests_Arpan, 3;

    close;
}

002-1,49,33,0	script	Magic Arpan	NPC_MAGIC_ARPAN,{
    showavatar NPC_MAGIC_ARPAN;

    .@q = getq(ShipQuests_Arpan);
    .@s = getq2(ShipQuests_Arpan);
    .@n = getq(General_Narrator);
    .@q_julia = getq(ShipQuests_Julia);
    if (.@q == 2 && getequipid(equip_torso) == 1300 && getequipid(equip_legs) == 2200) goto L_EquipDone;

OnTalk:
    showavatar NPC_MAGIC_ARPAN;
    mesn;

    if (.@q > 0) goto L_Menu;
    setq ShipQuests_Arpan, 1, 0;
    deltimer("Magic Arpan::OnSlow");

    mesq lg("Yeye, you are really lucky to be alive. You are in good enough shape for walking, do you remember what happened?");
    next;

    menu
        lg("I only remember I was rescued by you."), L_Story,
        lg("I can't remember anything."), L_OhWell;

OnClothNotTaken:
    showavatar NPC_MAGIC_ARPAN;
    mesn;
    mesq lg("Yeye, you still did not get your new clothes from the chest next to your bed!");
    next;
    mesn;
    mesq lg("It will be a problem if you run around naked!");

    close;

OnEquip:
    mesn "Narrator";
    mesc l("To open your inventory, use the F3 key or use your mouse to select it in the above menu in your client.");
    next;
    mesc l("When your inventory is open, you can equip an item by selecting it and clicking 'Equip'. You can do the same to remove an item by clicking on 'Unequip'.");
    next;
    mesc l("Items have different effects. Some will heal you, some can be used as weapons or armor, and some can be sold for gold.");

    close;

L_OhWell:
    mes "";
    mesq lg("Oh well, we rescued you when you were yaying adrift in the sea.");
    next;

    select
        l("And then what happened?");

L_Story:
    mes "";
    mesq lg("You were yaying sleeping for quite some time there. Our shipkeeper, Juliet, was here with you, and she did her best to heal your injuries.");
    next;
    if (.@q_julia == 0)
        setq ShipQuests_Julia, 1;
    mesq lg("Yaya, you should go see her! She'll be happy to see you.");
    next;
    mesq lg("Also, we took your yayed clothes, as they were... Yeyeye... In a bad shape. Go check the chest near your bed, there are some other ones inside.");
    setcamnpc "Chest";

    close;

L_Menu:
    mesq l("What yeye could I do for you today?");
    next;
    .@equipped = getequipid(equip_torso) == 1300 && getequipid(equip_legs) == 2200;

    menu
        rif(!.@equipped && .@q < 3, lg("What should I do after taking these clothes?")), L_WhatCloth,
        rif(!.@equipped && .@q < 3, l("Thank you, I'll take them and put them on.")), -,
        rif(.@q_julia < 2, lg("Where can I find Juliet?")), L_Julia,
        rif(!.@n, lg("Could you tell me where I am?")), L_Where,
        rif(!.@n, l("Who are you?")), L_Who,
        rif(!.@n, l("I need a tutorial, where can I find help?")), L_Trainer,
        rif(!getq(ShipQuests_ArpanMoney), lg("Do you know what happened to the gold I had when you guys saved me?")), L_WhereMoney,
        l("Nothing, sorry."), -;

    closedialog;
    close;

L_Trainer:
    mes "";
    mesn;
    mesq l("There is a NPC called Trainer, just outside this ship.");
    next;
    mesn;
    mesq l("Just use the arrow key--, err, I mean, just walk to the door on the right. The one which is not guarded by Peter.");
    next;
    mesn;
    mesq lg("You must be dressed, and talk to our captain first. He'll give you a mission and unlock the ship main door.");
    next;
    mesn;
    mesq l("All you need to do then is walk outside, enter on the biggest house, and talk to the Trainer. He'll teach you everything.");
    next;
    goto L_Menu;

L_Where:
    mes "";
    mesn;
    mesq lg("You're on our ship, we made port to a little island and we're actually yeyending our long merchant travelling adventure at the city of Tulimshar.");
    next;
    mesq l("We will be yaying there in a few days, so we will drop you off there.");
    next;
    mesq l("You will see, citizens are polite and you can still ask around for help. They can help find a job for you or maybe help you find out what happened to you out at sea!");
    next;

    goto L_Menu;

L_Julia:
    mes "";
    mesn;
    mesq lg("Just go right, yeye can't miss her. She's the only girl in this crew, oh well, except for you now yeyeye!", "Just go right, yeye  can't miss her. She's the only girl in this crew.");
    next;

    mesn "Narrator";
    mesc l("Use the arrow keys to walk right and meet Juliet.");
    next;

    goto L_Menu;

L_Who:
    mes "";
    mesn;
    mesq l("Sorry! I forgot to introduce myself. My name is Arpan, but other sailors call me Magic Arpan because I know one or two yaing magic tricks.");
    next;
    mesn;
    mesq l("They're not magic, but yayaya, people like to say it is! Yeyeye.");
    next;

    goto L_Menu;

L_WhereMoney:
    mes "";
    mesn;
    mesq l("Oh right, I totally forgot about that, here you go.");
    next;

    if (BaseLevel < 4) goto L_Apana;
    setq ShipQuests_ArpanMoney, 1;
    Zeny = Zeny + 35;
    message strcharinfo(0), l("You receive @@ GP!", 35);

    goto L_BeforeMenu;

L_Apana:
    mesn;
    mesq l("On hindsight, I'll wait you get a few levels. Can't have cheaters, ya know!");
    next;
    goto L_Menu;

L_WhatCloth:
    mes "";
    mesn;
    mesq lg("Oh yeyeye... As they are not edible, you can maybe try to equip them?");
    next;

    mesn "Narrator";
    mesc l("To open your inventory, use the F3 key or use your mouse to select it in the above menu in your client.");
    next;
    mesc l("When your inventory is open, you can equip an item by selecting it and clicking 'Equip'. You can do the same to unequip an item by clicking on 'Unequip'.");
    next;
    mesc l("Items have different effects. Some will heal you, some can be used as weapons or armor, and some can be sold for gold.");
    next;

L_BeforeMenu:
    mesn;
    goto L_Menu;

L_EquipDone:
    setq1 ShipQuests_Arpan, 3;
    goto L_Menu;

OnSlow:
    setcamnpc;
    showavatar NPC_MAGIC_ARPAN;
    mesn;
    mesq l("Yayaya, @@ is surely slow. Do you remember how to walk? You can use arrow keys for that!", strcharinfo(0));
    next;
    mesn;
    mesc l("Here, come talk to me, the Magic Arpan! I'll help you get dressed."), 1;
    addtimer(90000,"Magic Arpan::OnSlow");
    close;

OnInit:
    .sex = G_MALE;
    .distance = 5;
    end;
}