summaryrefslogblamecommitdiff
path: root/npc/items/teleporter.txt
blob: 9679d280e3d50533631f3cbffb6b86ad21927df6 (plain) (tree)




















                                                                      



                                                                                                   


         


                                               
 

          
       
                              





                                           
                              



                                           
 
// TMW2 scripts.
// Authors:
//    Pyndragon
//    Jesusalva
// Description:
//    Hand Teleporter (also saves coordinates - @memo)

-	script	LoF Teleporter	NPC_HIDDEN,{
    close;

L_Cooldown:
    mesn;
    mesc l("This teleporter is currently recharging.");
    mesc l("You can use it again in @@.", FuzzyTime(TELEPORTER_TIME));
    close;

OnUse:
    if (TELEPORTER_TIME > gettimetick(2))
        goto L_Cooldown;

    mesn;
    mesc l("Ozthokk, a great sage from the Land Of Fire, holds secrets of time and space travel.");
    mesc l("This is not magic, it is science!");
    mes "";
    mesc l("PS. Additional reagents may be required for warps.");
    next;

    menu
        l("Don't warp"), -,
        l("Land Of Fire Village (30m)"), L_LoF,
        l("Save Point (30m)"), L_Save;

    close;

L_Save:
	doevent "shake::OnGM";
    warp "Save", 0, 0;
    TELEPORTER_TIME=gettimetick(2)+(60*30);
    closedialog;
    end;

L_LoF:
	doevent "shake::OnGM";
    warp "017-1", 0, 0;
    TELEPORTER_TIME=gettimetick(2)+(60*30);
    closedialog;
    end;
}