JassMax Posted July 15, 2014 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 Share Posted July 15, 2014 hi i want to make npcthat ppl can clone any char in certain map..to test demihuman damage is it possible? Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 16, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 16, 2014 hi i want to make npc that ppl can clone any char in certain map.. to test demihuman damage is it possible? Yes it's possible Quote Link to comment Share on other sites More sharing options...
JassMax Posted July 16, 2014 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 Author Share Posted July 16, 2014 Yes it's possible can u make for me please Quote Link to comment Share on other sites More sharing options...
JassMax Posted July 17, 2014 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 Author Share Posted July 17, 2014 any idea or example?Bump~ Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 17, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 17, 2014 prontera,150,160,5 script clone 74,{ mes "want to clone someone?"; mes "the player to clone must be online"; next; if ( select( "No", "yes" ) == 1 ) close; mes "select a player"; .@total = query_sql( "select name, char_id from `char` where online = 1 order by name asc limit 128", .@name$, .@char_id ); .@s = select( implode( .@name$, ":" ) ) -1; if ( getcharid( 0,.@name$[.@s] ) == 0 ) { mes "this player is not online anymore"; close; } getmapxy .@map$, .@x, .@y, 0; clone .@map$, .@x, .@y,strnpcinfo(0)+"::OnMobDead",.@char_id[.@s]; close; OnMobDead: } Quote Link to comment Share on other sites More sharing options...
JassMax Posted July 19, 2014 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 Author Share Posted July 19, 2014 (edited) prontera,150,160,5 script clone 74,{ mes "want to clone someone?"; mes "the player to clone must be online"; next; if ( select( "No", "yes" ) == 1 ) close; mes "select a player"; .@total = query_sql( "select name, char_id from `char` where online = 1 order by name asc limit 128", .@name$, .@char_id ); .@s = select( implode( .@name$, ":" ) ) -1; if ( getcharid( 0,.@name$[.@s] ) == 0 ) { mes "this player is not online anymore"; close; } getmapxy .@map$, .@x, .@y, 0; clone .@map$, .@x, .@y,strnpcinfo(0)+"::OnMobDead",.@char_id[.@s]; close; OnMobDead: } ___ Thanks Capuche great help @Capuche your @evilclone npc is working very fine but can u make if there is noone in that map clone get die automatically? Edited July 19, 2014 by JassMax Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 20, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 20, 2014 add a duration on the clone *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. The firstfour arguments serve the same purpose as in the monster script command, The<char id> is the character id of the player to clone (player must be online).If <master id> is given, the clone will be a 'slave/minion' of it. Master_idmust 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 summoned monster,and as such, it'll target other monsters. Defaults to zero.The duration specifies how long the clone will live before it is auto-removed.Specified in seconds, defaults to no limit (zero). Quote Link to comment Share on other sites More sharing options...
JassMax Posted July 21, 2014 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 Author Share Posted July 21, 2014 (edited) add a duration on the clone *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. The first four arguments serve the same purpose as in the monster script command, The <char id> is the character id of the player to clone (player must 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. Its values are the same as the ones used for the mode field in the mob_db. The default mode is aggressive, assists, can move, can attack. Flag can be either zero or one currently. If zero, the clone is a normal monster that'll target players, if one, it is considered a summoned monster, and as such, it'll target other monsters. Defaults to zero. The duration specifies how long the clone will live before it is auto-removed. Specified in seconds, defaults to no limit (zero). ____ But can u make like this if someone summon clone in particular map and if that user died by clone or got warp from that particular map clone automatically get die? like searchmap 0 player on map and @killmonster command something like that possible? clone also killed by command @killmonster i foudn this error and sometimes we cant hit or attck the clone We cant use skill on clone always needed to hold left+shift i tried with /ns on and /ns off cant hit clone with skills and map is not pvp but i want to make it work without pvp map please Edited July 21, 2014 by JassMax Quote Link to comment Share on other sites More sharing options...
Question
JassMax
hi i want to make npc
that ppl can clone any char in certain map..
to test demihuman damage
is it possible?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.