Jump to content
  • 0

Simple Quest Request


Seiro

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   1
  • Joined:  01/07/12
  • Last Seen:  

You need to create an NPC that has a Portal NPC Sprite, then put some OnTouch event in its script to activate.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

Yes I do know about the portal NPC sprite, I just need a sample of quest tree script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   0
  • Joined:  10/24/12
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...