Jump to content
  • 0

Simple Quest Request


Question

Posted

I need some simple script of a Quest NPC, and I will just expand it.

The ideal is that I need to make a restricted warp portal and the only ones who can enter is the ones that has done the quest.

The script plan:

Quest starter NPC >> makes player talk to >> This NPC >> Which makes the player get an apple >> Back to This NPC >> Which gives the permission to enter the >> *Warp Portal*

bump :o

6 answers to this question

Recommended Posts

Posted (edited)
mapname,x,y,z	script	quest_warp	45,2,2{
if(!variable_A){dispbotttom "You have not done the quest to enter yet. Talk to NPC A to start the quest."; end;}
warp "mapname",x,y;
end;
}
mapname,x,y,z	script	NPC A	89,{
if(variable_A){dispbottom "You have already one this quest."; end;}
if(@v_{set variable_A,1; mes "You can now use the warp"; close;}
set @v_a,1;
mes "Talk to NPC B to further the quest.";
close;
}
mapname,x,y,z	script	NPC B	89,{
if(!@v_a){mes "Speak to NPC A first"; close;}
if(countitem(512)){set @v_b,1; mes "Talk to NPC A to finish the quest."; close;}
mes "Bring me an Apple";
close;
}

Edited by GmOcean
  • Upvote 1
Posted

if(!variable_A){dispbotttom "You have not done the quest to enter yet. Talk to NPC A to start the quest."; end;}

That line shows up in the map-server. Says that missing function name or calling.

and for the rest, doesn't seem to work well. It only shows the messages. But I'm trying to figure out how to make it work while you still haven't read this.

Posted

Sorry, if you look there's an extra 't' in that command, sticky keys ¬.¬; as for the rest of the script... You have to complete the question without logging out. If you do logout you'll have to start over. I could write it better to not use any player variables or temp variables, but that makes it a bit more complicated for you to configure. As it is now, it'll work fine.

  • Upvote 1
Posted (edited)

Oh, haha! I didn't see the extra 't'.. Alright, will try it again.

====

So I tried it, the warp portal seem to work now. it only gives the disbottom messsage.

But the other two NPCs only shows the message. Even if I talk to them in order.

====

OH ok, nevermind.. I get it now. Thanks! I can do the rest! /votes

Edited by Seiro

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...