Jump to content
  • 0

How To Fix Miner Script Error?


manabeast

Question


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

that's an item right?and when you try to double-click the item, nothing happens?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

Remove to prevent confuse

Edited by manabeast
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

try to edit the item's script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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,{},{},{}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

Refer post 1

bump =)

post-472-0-66470400-1325163853_thumb.png

post-472-0-11337800-1325690622_thumb.png

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

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;}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

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.

Link to comment
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.   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.

×
×
  • Create New...