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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.