Jump to content
  • 0

NPC for @evilclone


JassMax

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

Yes it's possible

 

can u make for me please  /swt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

any idea or example?

Bump~

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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:

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

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  /thx

@Capuche

your @evilclone npc is working very fine

but can u make if there is noone in that map

clone get die automatically?

Edited by JassMax
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

 

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

post-17166-0-71826400-1405929353_thumb.jpg

Edited by JassMax
Link to comment
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.   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...