Restrict warp by Quest

ZelosAvalon

New member
Messages
218
Points
0
Age
34
Emulator
I'm trying to restrict some maps in the NPC Warper, so you can get them only if you do the quest

for example: 

Amatsu

8135 ID from Quest "Fox Expelled" Last part of the Amatsu Dungeon Access Quest

this is the line of ama_dun in the npc: Warper

Code:
D2:    if( questprogress(8135)!=2 ) {
            message strcharinfo(0), "You are not authorized to enter this map.";
            close;
    }else{
        setarray @c[2],175,186,236,184,188,204;
        Disp("Amatsu Dungeon",1,3); Pick("ama_dun");
    }
 
Last edited by a moderator:
post it when you're done tnx
I guess the easiest way would be to set a variable when the quest is complete. And then just use if and else.

Probably more efficient ways to do it, but this is an easy way I've found.

Code:
// Put this where the quest completes or wherever you want it
quest_complete$ = 1;
 
// When you are trying to stop them from warping, something like this
if (quest_complete$ == 1) {
mes "This is where you can continue the npc talking.";
}
else {
mes "You are not authorized to enter this map!";
close;
}
 
Back
Top