summaryrefslogblamecommitdiff
path: root/npc/019-2/guards.txt
blob: f4fe2dcb258afd15887cfa80f9b4f918a613ee99 (plain) (tree)


































































                                                                                                               
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Protect Nivalis

019-2,44,54,0	script	Guard#019-2.1	NPC_GUARD1,{
    /*
    legiontalk;
    end;
    */
    if ($NIVALIS_LIBDATE) {
        mesn;
        mesq l("Nivalis was liberated @@ ago.", FuzzyTime($NIVALIS_LIBDATE));
        // TODO
        mesc l("Due town state, you cannot visit it. Do you want to cross?"), 1;
        next;
        if (askyesno == ASK_YES)
            warp "019-1", 70, 30;
        close;
    } else if ($NLIB_DAY > 0) {
        if (BaseLevel < 40) goto L_Noob;
        if (BaseLevel >= 40) goto L_Veteran;
        close;
    } else if (is_admin()) {
        mesc "Initiate Nivalis Liberation Day?", 1;
        mesc "Event will last 7 days.", 1;
        select
            "Not yet.",
            "Yes",
            "No";
        if (@menu == 2) {
            $NLIB_DAY=1;
            channelmes("#world", "Nivalis Liberation Day has started.");
            announce "Nivalis Liberation Day has started.", bc_all|bc_npc;
        }
        close;
    } else {
        legiontalk; end;
    }
    end;
// Event Selectors
L_Noob:
    mesn;
    mesq l("Hey, you! We need help to get rid from some remaining monsters at Nivalis City.");
    next;
    mesn;
    mesq l("Are you up for the challenge?");
    close;

L_Veteran:
    if ($NLIB_DAY >= 7) goto L_MK;
    mesn;
    mesq l("Hey, you! We need help to find the Monster King.");
    close;

L_MK:
    mesn;
    mesq l("Today at 16:30 UTC we are going to attack the Monster King by surprise. There will be no delays.");
    close;

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