Guys here is my situation, im trying to put callfunc on an item, the item does craft a stone but in a random chance, i cant get right the the script, when i load the script no error are found.
function script Crafting Tool { dispbottom "" + strcharinfo(0) + " : Seems that the Crafting Tool is working...." set .@menu, select ("Crafting Tool:Close"); if (.@menu == 1); set .@r, rand(10); if( .@r < 10 ) specialeffect2 306; specialeffect2 183; delitem 7849,10; delitem 7758,10; if( .@r == 3 ) getitem 27301,1; delitem 7849,10; delitem 7758,10; specialeffect2 305; specialeffect2 113;
Question
Lil Troll
Guys here is my situation, im trying to put callfunc on an item, the item does craft a stone but in a random chance, i cant get right the the script, when i load the script no error are found.
function script Crafting Tool {
dispbottom "" + strcharinfo(0) + " : Seems that the Crafting Tool is working...."
set .@menu, select ("Crafting Tool:Close");
if (.@menu == 1);
set .@r, rand(10);
if( .@r < 10 )
specialeffect2 306;
specialeffect2 183;
delitem 7849,10;
delitem 7758,10;
if( .@r == 3 )
getitem 27301,1;
delitem 7849,10;
delitem 7758,10;
specialeffect2 305;
specialeffect2 113;
close;
if (.@menu == 2);
close;
}
now here is my item:
27315,Crafting_Tool,Crafting Tool,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{ callfunc "Crafting_Tool"; }
Edited by coldfire2k1 answer 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.