kerbiii 5 Posted November 11, 2013 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 Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted November 17, 2013 - 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;} 1 kerbiii reacted to this Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 11, 2013 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. Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 11, 2013 what do i need to put on event and charID? i want it to clone themselves Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted November 11, 2013 Example: clone "prontera", 0, 0, strnpcinfo(3)+"::OnClone", getcharid(0); Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 12, 2013 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; } Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted November 13, 2013 - 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;} 1 kerbiii reacted to this Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 16, 2013 - 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 Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted November 16, 2013 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; Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 17, 2013 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? Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted November 18, 2013 thnx its working now! /no1 Quote Share this post Link to post Share on other sites
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