Jump to content
  • 0
Sign in to follow this  
kerbiii

help on this script

Question

everytime a character login their clone will spawn on a specific area

and everytime they logout their clone will also die

 

 

something like this:

 

OnPCLoginEvent:

Clone NAME "Prontera",150,150

 

OnPCLogoutEvent:

Killclone NAME

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

 

-    script    clone    -1,{OnPCLoginEvent:    clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), 0, 1;    end;    OnPClogoutevent:    killmonster "prontera", strnpcinfo(3)+"::OnClone";    end;OnClone:    announce "????", 0;    end;}

Share this post


Link to post
Share on other sites
  • 0
OnPCLoginEvent:	// clone command here	 end;	OnPCLogoutEvent:	killmonster "<map name>";	end;

 

Clone command : 

*clone "<map name>",<x>,<y>,"<event>",<char id>{,<master_id>{,<mode>{,<flag>,<duration>}}}This command creates a monster which is a copy of another player. Thefirst four arguments serve the same purpose as in the monster scriptcommand, The <char id> is the character id of the player to clone (playermust be online).If <master id> is given, the clone will be a 'slave/minion' of it.Master_id must be a character id of another online player.The mode can be specified to determine the behavior of the clone, itsvalues are the same as the ones used for the mode field in the mob_db. Thedefault mode is aggressive, assists, can move, can attack.Flag can be either zero or one currently. If zero, the clone is a normalmonster that'll target players, if one, it is considered a summonedmonster, and as such, it'll target other monsters. Defaults to zero.The duration specifies how long the clone will live before it isauto-removed. Specified in seconds, defaults to no limit (zero).Returned value is the monster ID of the spawned clone. If command fails,returned value is zero.

Share this post


Link to post
Share on other sites
  • 0

 

Example:

 

clone "prontera", 0, 0, strnpcinfo(3)+"::OnClone", getcharid(0);

i tried this one its not working did i miss something?

 

- script clone -1{
OnPCLoginEvent:
clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);
end;
}

Share this post


Link to post
Share on other sites
  • 0

 

 

-    script    clone    -1,{OnPCLoginEvent:    clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);    end;    OnPClogoutevent:    killmonster "prontera", strnpcinfo(3)+"::OnClone";    end;OnClone:    announce "????", 0;    end;}

Share this post


Link to post
Share on other sites
  • 0

 

 

 

-    script    clone    -1,{OnPCLoginEvent:    clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);    end;    OnPClogoutevent:    killmonster "prontera", strnpcinfo(3)+"::OnClone";    end;OnClone:    announce "????", 0;    end;}

how to make the clone passive and just walks arround

Share this post


Link to post
Share on other sites
  • 0

I haven't tested it but try this.

 

replace this

 

clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);

with

 

clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), getcharid(0), 1;

Share this post


Link to post
Share on other sites
  • 0

 

I haven't tested it but try this.

 

replace this

 

clone "prontera",148,183,strnpcinfo(3)+"::OnClone",getcharid(0);

with

 

clone "prontera", 148, 183, strnpcinfo(3)+"::OnClone", getcharid(0), getcharid(0), 1;

it makes the clone now a pet, how to make it just a normal monster that wander arround the town?

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.