summaryrefslogblamecommitdiff
path: root/npc/017-1/townhall.txt
blob: 9b78463ce82f9fef8729386c4c65eaea4e4962e5 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                    
 














                                                    
 













                                                    
 













                                                    
 











                                                  
















                                                            
// TMW2/LoF scripts.
// Authors:
//    Jesusalva
// Description:
//    LoF Townhall Access Control

017-1,180,20,0	script	#LoF_Townhall01	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 56, 78;
    }
    end;
OnInit:
    .distance=1;
    end;

}

017-1,182,20,0	script	#LoF_Townhall02	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 60, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,171,20,0	script	#LoF_Townhall03	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 36, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,190,20,0	script	#LoF_Townhall04	NPC_HIDDEN,{
    end;

OnTouch:
    // Sponsor and Main Quest 17+ - access granted
    .@q=getq(General_Narrator);
    if (.@q >= 17 || getgmlevel()) {
        warp "017-10", 80, 78;
    }
    end;
OnInit:
    .distance=1;
    end;
}

017-1,32,44,0	script	#LoF_EleniumMines	NPC_HIDDEN,{
    end;

OnTouch:
    // TODO: OnQuest: Instance
    .@q=getq(General_Narrator);
    if (.@q >= 17) {
        warp "018-6-1", 80, 199;
    } else {
        warp "018-6-1", 80, 199;
    }
    end;
OnInit:
    .distance=1;
    end;
}