Jump to content
  • 0
Sign in to follow this  
Jedzkie

Script Error

Question

Hi! i have a script error here in herc, but in rA, i dont have any errors at all in this script

 

here's my script:

 

the error: Missing 1 Right Curly, line 1

 

function	script	Asgard_Scroll	{	 set .@Total,10;	//<%>,<ItemID>,<Amount>	setarray .@P1[0],5,6233,1;	setarray .@P2[0],8,6234,1;	setarray .@P3[0],10,6228,1;	setarray .@P4[0],20,6235,1;	setarray .@P5[0],90,13517,5;	setarray .@P6[0],80,12080,10;	setarray .@P7[0],90,14533,5;	setarray .@P8[0],80,12075,10;	setarray .@P9[0],85,12210,5;	setarray .@P10[0],98,501,10;	set .@i, rand(1,.@Total);	if (rand(1,100) > getd(".@P"+.@i+"[0]"))	{		for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2)		{			getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");			if (!.@k[0])			{				set .@gz,.@i;				setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]");				break;			}		}	}	if(1<=.@gz&&.@gz<=10)	announce "Citizens of Midgard, Lady Luck shines upon ["+strcharinfo(0)+"] !! [Asgard Scroll] has awarded the player with '"+getitemname(.@k[0])+"'!!",0;	close;}
Edited by Frost

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

[11:13:45] <~Ind> just copy pasted your script into a txt file and loaded it

[11:13:48] <~Ind> no errors at all.

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.