manabeast Posted December 26, 2011 Posted December 26, 2011 (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 January 19, 2012 by manabeast Quote
Diconfrost VaNz Posted December 26, 2011 Posted December 26, 2011 that's an item right?and when you try to double-click the item, nothing happens? Quote
manabeast Posted December 26, 2011 Author Posted December 26, 2011 (edited) Remove to prevent confuse Edited January 19, 2012 by manabeast Quote
Diconfrost VaNz Posted December 26, 2011 Posted December 26, 2011 try to edit the item's script Quote
Sneaky Posted December 26, 2011 Posted December 26, 2011 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,{},{},{} Quote
manabeast Posted January 19, 2012 Author Posted January 19, 2012 (edited) Refer post 1 bump =) Edited January 19, 2012 by Arcenciel Quote
Joseph Posted January 19, 2012 Posted January 19, 2012 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;} Quote
manabeast Posted January 30, 2012 Author Posted January 30, 2012 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. Quote
Question
manabeast
[Error]:
script error on autobonus line 0
not found '{'
0 : 'd'oevent @i$;
Edited by manabeast7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.