summaryrefslogblamecommitdiff
path: root/npc/001-1/portal.txt
blob: 370b0a1a9b3fa0881b7b4e5f26be5f454d7107b1 (plain) (tree)
1
2
3
4
5
6
7
8
9





                          
                                                        

        
         
                                                                                                                

                                                 
                          



                                                                     
                           




                                                           







                 











                                                              












                                  


                                     

          


          
// TMW2 Script
// Author:
//  Jesusalva
// Description:
//  Manages warps at Aeros

001-1,235,25,0	script	Worlds Gate	NPC_HIDDEN,1,0,{

OnTouch:
    mesn;
    mes l("This Portal can send your soul back to the world, along any items, money and/or experience gained.");
    mes l("Would you like to leave this place?");
    menu
        l("No."), L_Close,
        rif(is_admin() && !$@GM_EVENT, l("Enable Event")), L_Enable,
        rif(is_admin() && $@GM_EVENT, l("Disable Event")), L_Disable,
        rif(is_gm() && .WALL, l("Open Extension")), L_DelWall,
        rif(is_gm() && !.WALL, l("Close Extension")), L_AddWall,
        l("Yes."), L_Leave;

L_Leave:
    warp getsavepoint(0), getsavepoint(1), getsavepoint(2);
    goto L_Close;

L_Enable:
    $@GM_EVENT=1;
    close;

L_Disable:
    $@GM_EVENT=0;
    close;

L_AddWall:
    setcells "001-1", 169, 63, 169, 76, 3, "AerosWall";
    //setwall("001-1", 169, 63, 13, DOWN, false, "AerosWall");
    .WALL=1;
    close;

L_DelWall:
    delcells "AerosWall";
    //delwall("AerosWall");
    .WALL=0;
    close;

// Uses l() to translate utilities
L_TranslationFix:
    mes l("Magic Maggot");
    mes l("Monster");
    mes l("Monster King");
    mes l("Monster General");
    mes l("Monster Admiral");
    mes l("Monster Major");
    mes l("Monster Captain");
    mes l("Monster Lieutenant");
    mes l("Monster Sergeant");
    mes l("Monster Soldier");
    mes l("Random Bif");
    mes l("All monsters summoned!");
    mes l("Mercy has been granted.");
    mes l("Judgement has passed.");
    close;

L_Close:
    close;
}