Elsa 1 Posted February 21, 2015 (edited) Hello Hercules. im trying to put this script on my event script but its give an error undeclare function script: OnInit: // 1.5% chance getting gold coin , else get random money of 100,1000,10000,100000,1000000 setitemscript 668, "{ if ( rand(1000) < 15 ) getitem 5374, 1; getitem 30002, 50; 30001, 30; else zeny = zeny + callfunc( "F_RandMes", 5, 100, 1000, 10000, 100000, 1000000 ); }"; end; How to make the script works? its for random item and zeny. Thanks in advance Edited February 21, 2015 by Elsa Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted February 21, 2015 change F_RandMes to F_Rand and change zeny to Zeny Quote Share this post Link to post Share on other sites
0 Elsa 1 Posted February 21, 2015 change F_RandMes to F_Rand and change zeny to Zeny @evilpuncker not working Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted February 21, 2015 try: setitemscript 668, "{ if ( rand(1000) < 15 ) { getitem 5374, 1; getitem 30002, 50; 30001, 30; } else { Zeny = Zeny + callfunc( "F_Rand", 5, 100, 1000, 10000, 100000, 1000000 ); }}"; Quote Share this post Link to post Share on other sites
0 Elsa 1 Posted February 22, 2015 (edited) This not working { Zeny = Zeny + callfunc( "F_Rand", 5, 100, 1000, 10000, 100000, 1000000 ); } Just use normal setitemscript 668, "{ if ( rand(1000) < 200 ) { getitem 5374, 1; getitem 30002, 50; getitem 30001, 30;} else { set Zeny,Zeny+rand(1000000,10000000); } }"; Thanks @evilpuncker Edited February 22, 2015 by Elsa Quote Share this post Link to post Share on other sites
Hello Hercules.
im trying to put this script on my event script but its give an error undeclare function
script:
How to make the script works? its for random item and zeny.
Thanks in advance
Edited by ElsaShare this post
Link to post
Share on other sites