Jump to content
  • 0
Sign in to follow this  
JoyRo

Random quest Equipment reward

Question

Hello,

 

Is there any one that can help me create a script.

I would like to have a script that gives me a random reward if i complete a quest or trade for points.

 

Edited by JoyRo

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hello Zhao Chow,

 

Thank you for your reply.

I wil go try it out thanks keep you updated if it worked or not.

 

Kind regards



 

@@JoyRo Test this
 

prontera,100,100,3	script	Random Item	123,{	mes "[ Random Item Giver ]";	mes "Get Random Item Here";	next;	mes "[ Random Item Giver ]";	mes "Here you go";	setarray .@item_id,505,506,507,508,509,510;	set .@item_count,1;	getitem .@item_id[rand(getarraysize(.@item_id))], .@item_count,1;	close;}

 

EDIT : you can just put that script when giving the reward or item


Thank you its working! 

Share this post


Link to post
Share on other sites
  • 0
@@JoyRo Test this
 
prontera,100,100,3	script	Random Item	123,{	mes "[ Random Item Giver ]";	mes "Get Random Item Here";	next;	mes "[ Random Item Giver ]";	mes "Here you go";	setarray .@item_id,505,506,507,508,509,510;	set .@item_count,1;	getitem .@item_id[rand(getarraysize(.@item_id))], .@item_count,1;	close;}

 

EDIT : you can just put that script when giving the reward or item

Edited by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0

Hello Zhao Chow,

 

Thank you for your reply.

I wil go try it out thanks keep you updated if it worked or not.

 

Kind regards

 

@@JoyRo Test this
 

prontera,100,100,3	script	Random Item	123,{	mes "[ Random Item Giver ]";	mes "Get Random Item Here";	next;	mes "[ Random Item Giver ]";	mes "Here you go";	setarray .@item_id,505,506,507,508,509,510;	set .@item_count,1;	getitem .@item_id[rand(getarraysize(.@item_id))], .@item_count,1;	close;}

 

EDIT : you can just put that script when giving the reward or item

 

Thank you its working! 

kindly mark as solve so that other members can easily search for this kind of topic they looking for.

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.