Jedzkie 58 Posted June 21, 2013 (edited) 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 June 21, 2013 by Frost Quote Share this post Link to post Share on other sites
0 Ind 945 Posted June 21, 2013 [11:13:45] <~Ind> just copy pasted your script into a txt file and loaded it [11:13:48] <~Ind> no errors at all. Quote Share this post Link to post Share on other sites
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
Share this post
Link to post
Share on other sites