Jump to content
  • 0

How To Fix Miner Script Error?


Question

Posted (edited)

function script Minner {
if(getarg(0)==2){
undisguise;
if(strcharinfo(3)=="manuk"){warp "SavePoint",0,0;}
end;
}
if(getarg(0)==1&&strcharinfo(3)=="manuk"){
if(getequipid(4)!=6010||getequipid(1)!=5009){end;}
set .@r,rand(1,1000);
if(.@r<700){
 getitem 1002,1;
}
if(.@r>=700&&.@r<990){
 getitem 757,1;
}
if(.@r>=990){
 getitem 756,1;
}
specialeffect2 154;
end;
}
bonus bAspd,-30;
bonus bCritical,100;
bonus bAtkRate,-100;
if(getequipid(1)==5009)
disguise 1169;
else{
undisguise;
}
return;
}
- script Minnerx -1,{
OnDo:
callfunc "Minner",1;
end;
OnLill:
set .@t,1;
OnInit:
if(!.@t)set .@t,100;
monster	 "manuk",0,0,"--ja--",1907,.@t,"Minnerx::OnLill";
end;
}

[Error]:

script error on autobonus line 0

not found '{'

0 : 'd'oevent @i$;

Edited by manabeast

7 answers to this question

Recommended Posts

Posted

Not sure if I got what you want;

if i using 6010 > Pickaxe < this pick axe is Miscellaneous i cannot use it. i try double click on it. zzz

From what I've noticed in the script, the pickaxes are supposed to be like that, non-wearable. If you want them wearable then use this:

item_db2.txt

22011,c_Pickaxe,custom pickaxe,4,30000,,100,1,1,,0,0xFFFFFFFF,7,2,2,1,1,,6,{},{},{}

Posted

Can I see your item script?

I think it should be like this:

6010,Pickaxe,Pickaxe,4,10,,10,10,,1,0,0xFFFFFFFF,7,0,34,0,0,0,0,{ callfunc "Minner",0; set @i$,"Minnerx::OnDo"; autobonus "{ doevent @i$; }",10000,1,BF_WEAPON; },{},{callfunc "Minner",2;}

Posted

yes, me is using Sql so i have to convert txt to sql.

REPLACE INTO `item_db` VALUES (6010,'Pickaxe','Pickaxe',4,10,NULL,10,10,NULL,1,0,0xFFFFFFFF,7,0,34,0,0,0,0,'callfunc \"Minner\",0; set @i$,\"Minnerx::OnDo\"; autobonus \" doevent @i$; \",10000,1,BF_WEAPON;',NULL,'callfunc \"Minner\",2;');

bump... the txt same as you. after convert it's like that.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...