summaryrefslogblamecommitdiff
path: root/npc/014-2/guards.txt
blob: 20a77907e534e8e97e2b3f1456809c3e2c9230aa (plain) (tree)
1
2
3
4
5
6
7
8





                              
                                                    
         




                                                                                                                                  

















                                                                                                                                                                                              
     


          
                    



                  
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Access to Eternal Swamps

014-2,58,103,0	script	Guard Jennifer	NPC_GUARD2,{
    mesn;
    mesq l("Halt! Beyond this gate, is the Great River and the Eternal Swamps.");
    next;
    mesn;
    mesq l("Was not it only flooded constantly, the graveyard is not too far. If you stray away from the path, you'll get lost.");
    next;
    .@fd=!(getmapmask("011-3")&1024); // .@fd - is flooded?
    if (!.@fd) {
        mesn;
        mesq l("Various people already went missing, including GMs. This is why if you plan to cross, @@.", b(l("You won't be allowed to walk sideways, except to avoid a monster or two.")));
        mesc l("If you try to walk west or east too much, you'll hit an \"invisible wall\" to prevent you from getting lost.");
        next;
        select
            l("I'm fine, thanks."),
            l("My equipment is good, let me through!");
        mes "";
        if (@menu == 2) {
            warp "011-3", 37, 219;
            closedialog;
            close;
        }
    } else {
        mesn;
        mesq l("In fact, it is flooded at the moment. Come back later.");
    }
    close;

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