Random quest Equipment reward

JoyRo

New member
Messages
120
Points
0
Location
Netherlands
Emulator
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.

 
Last edited by a moderator:
@@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

 
Last edited by a moderator:
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! 

 
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.

 
Back
Top