i'm having errors with my clone script. it's kinda weird.
here's my item script:
20060,Konoha_Head_Protector,Konoha Head Protector,5,0,,150,,1,,1,0xFFFFFFFF,7,2,256,,0,1,1141,{ autobonus2 "{ callfunc \"Bunshin\"; }",1000,1000,BF_WEAPON|BF_MAGIC|BF_MISC,"{ specialeffect2 666; }"; },{},{}
here's my function:
//Kage Bunshin
function script Bunshin {
sleep2 1000; // every 1 second spawn one, change this to 3 minutes
getmapxy .@map$, .@x, .@y, 0;
if ( mobcount( .@map$, "clonecheck::on"+ getcharid(0) ) < 1 ) // limit spawn to 3
clone .@map$, .@x, .@y, "clonecheck::On"+ getcharid(0), getcharid(0), getcharid(0), 0x8D, 1;
}
i got that script from eA. the problem is, there is no clone limit. when i'm hit a clone always respawn, how can I prevent this from happening?