summaryrefslogblamecommitdiff
path: root/npc/001-1/portal.txt
blob: 72c0d7edaf1ae78a468eec35e06a7b49e4f53b68 (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	Soul Menhir	NPC_HIDDEN,1,0,{

OnTouch:
    mesn;
    mes l("This Soul Menhir 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(getgmlevel() && !$@GM_EVENT, l("Enable Event")), L_Enable,
        rif(getgmlevel() && $@GM_EVENT, l("Disable Event")), L_Disable,
        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_Close:
    close;
}