*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.
clone "prontera", 0, 0, strnpcinfo(3)+"::OnClone", getcharid(0);
i tried this one its not working did i miss something?Example:
clone "prontera", 0, 0, strnpcinfo(3)+"::OnClone", getcharid(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- 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;}
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?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;
- 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;}
We use essential cookies to make this site work, and optional cookies to enhance your experience.