Jump to content
  • 0

Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted

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


 

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