summaryrefslogblamecommitdiff
path: root/npc/020-7/elias.txt
blob: 36ff85936915aae0bb38234d63da6a41780e40a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                            
                                                        








                                        
                                                       



















                                                                                                                  
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Controls access to Blue Sage Residence
//    Minimum level: 36 (implicit)

// NivalisQuest_BlueSage STRUCTURE
//  FIELD 1:
//      INVESTIGATION
//      1 - ACCESS GRANTED
//      2~10 - FOLLOW LOGIC
//  FIELD 2:
//      BOOK MAKING QUEST
//  FIELD 3:
//      SLIME HUNTING QUEST

020-7,44,41,0	script	#BlueSageEntry	NPC_HIDDEN,1,1,{
OnTouch:
    .@q=getq(NivalisQuest_BlueSage);
    if (!.@q) {
        slide 42, 43;
        doevent "Elias::OnAccessDenied";
    }
    end;
}

020-7,40,41,0	script	Elias	NPC_BLUESAGEWORKER_MA,{
    .@q=getq(General_Narrator);
    if (.@q < 10) {
        npctalk3 l("ERROR/TODO: Explain that library and residence is off-limits");
    } else {
        npctalk3 l("ERROR/TODO: Grant access to Blue Sage Library after showing Rakinorf recommendation letter.");
    }
    goodbye;
    end;

OnAccessDenied:
    npctalk3 l("You can't go in there!");
    end;

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

}