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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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