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





                              
                                                    
       
         




                                                                                                                                  


                                                           
                                                                                                                                                                                          






                                                                                                                               
                                 





                                                                         
     


          
                    


                  





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

014-2,58,103,0	script	Guard Jennifer	NPC_GUARD2,{
OnMain:
    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, ")+l(b("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", 38, 21;
            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;
}
014-2,56,107,0	script	#ToEternalSwamps	NPC_HIDDEN,2,0,{
    end;
OnTouch:
    doevent "Guard Jennifer::OnMain";
    end;
}