JoyRo 5 Posted November 28, 2015 (edited) 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 November 28, 2015 by JoyRo Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted November 29, 2015 (edited) @@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 November 29, 2015 by Zhao Chow Quote Share this post Link to post Share on other sites
0 JoyRo 5 Posted November 29, 2015 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! Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted November 29, 2015 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. Quote Share this post Link to post Share on other sites
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.
Share this post
Link to post
Share on other sites