Jump to content
  • 0

Clone


Yomigaeru

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.00
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

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

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...