Jump to content
  • 0
Sign in to follow this  
ZelosAvalon

Restrict warp by Quest

Question

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

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");
    }

 

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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.

 

// 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;
}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.