Did hErcules support this scripts?

Elsa

New member
Messages
22
Points
0
Location
Heart of Europe
Emulator
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
default_smile.png


 
Last edited by a moderator:
change F_RandMes to F_Rand and change zeny to Zeny

 
try:

Code:
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 ); }}"; 
 
This not working

Code:
{ Zeny = Zeny + callfunc( "F_Rand", 5, 100, 1000, 10000, 100000, 1000000 ); }
Just use normal
Code:
setitemscript 668, "{ if ( rand(1000) < 200 ) { getitem 5374, 1; getitem 30002, 50; getitem 30001, 30;} else { set Zeny,Zeny+rand(1000000,10000000); } }";
Thanks @evilpuncker
 
Last edited by a moderator:
Back
Top