Jump to content
  • 0

quest npc some question


kirameka

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  11/05/12
  • Last Seen:  

i am too beginner

sorry for using the traslator 

I have a problem with my quest npc

The way I want to do it

1 quest randomly receives 1 out of 42.

2 Complete one of the randomly received quests.

3 Cannot receive more than 1 quest

 

quest.txtAnd this is what I made for reference.

Can you tell me what the problem is here?

 

Sorry for awkward English, please help

Edited by kirameka
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  211
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

We could not locate the item you are trying to view.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

You file is unvailable... but if i understood what you want is something like

prontera,150,150,4	script	QuestTest	80,{
	setarray .@quest,90000,90001,90002,90003;   // here example of 4 different quests
	.@num_quests = getarraysize(.@quest);
	.@random_num =  rand(1,.@num_quests);
	setquest .@quest[.@random_num-1];
	end;
}


 

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...