Jump to content
  • 0
Sign in to follow this  
Elsa

Did hErcules support this scripts?

Question

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 by Elsa

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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 by Elsa

Share this post


Link to post
Share on other sites
  • 0

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 ); }}"; 

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.