summaryrefslogblamecommitdiff
path: root/npc/018-5/tree.txt
blob: e80af7a2c865aa6d91130d5a54952b28d6e39ad5 (plain) (tree)
1
2
3
4
5
6
7






                                                       























                                           


                                  





                         






                   
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//   Lilit's access

018-5,100,52,0	script	Great Tree	NPC_NO_SPRITE,{
    function gtLocked;
    function gtFirstTime;
    function gtAccessOK;

    .@q = getq(LilitQuest_Access);

    if (JobLevel < 40) gtLocked();
    switch (.@q) {
        case 2:
            gtAccessOK(); break;
        case 1:
            gtFirstTime(); break;
        default:
            gtLocked();
    }
    close;

function gtFirstTime {
    mesn l("Yetifly the Mighty");
    mesq l("Your persistence is amusing.");
    return;
}

function gtLocked {
    mesn;
    mesq l("The door is locked.");
    close;
}

function gtAccessOK {
    warp "018-7", 52, 33;
    return;
}

OnInit:
    .sex = G_OTHER;
    .distance = 1;
    end;
}