summaryrefslogblamecommitdiff
path: root/npc/000-2-1/chest.txt
blob: 2be851ba98aaeba41921eef81891c50cf08f5657 (plain) (tree)
1
2
3
4
5
6
7
8
9

                

          
               
                                         


                      

                                                   
 
                                               
                                 
 
                              
                                         
 




                  
       
                             

                  
                           
 
                             

                    
                                                       
                
 





                                         
       
                                                        


          
       



                  



                     
 
// Evol scripts.
// Authors:
//    4144
//    Reid
// Description:
//    A box with clothes for new players.
// Variable:
//    ShipQuests_Arpan
// Values:
//    1   Talked to Arpan and needs to get clothes.
//    2   Has the clothes.

000-2-1,51,37,0	script	Chest	NPC_CHEST_BIG,{
    .@q = getq(ShipQuests_Arpan);

    if (.@q == 0) goto L_Talk;
    if (getnpcdir ("") == 4) goto L_Give;

    setnpcdir 2;
    initnpctimer;
    startnpctimer;
    close;

L_Give:
    if (.@q > 1) goto L_Quit;
    .@item = 1300;
    .@count = 2;
    inventoryplace 1300, 2;

    setq ShipQuests_Arpan, 2;
    getitem 1300, 1;
    getitem 2200, 1;
    npctalk3 l("You take the clothes from the chest.");
    goto L_Quit;

OnTimer220:
    stopnpctimer;
    if (getnpcdir ("") == 2) setnpcdir 4;
    if (getnpcdir ("") == 6) setnpcdir 0;
    end;

L_Talk:
    npctalk3 l("You should talk to Magic Arpan first.");

    close;

L_Quit:
    setnpcdir 6;
    initnpctimer;
    startnpctimer;
    close;

OnInit:
    setnpcdistance 2;
    end;
}