Jump to content
  • 0

Reproduce NPC


thenewguy1

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  07/23/12
  • Last Seen:  

Can an npc cast a skill on you? I want to make an npc that enables SC's/stalkers to copy skills through them.

I found a script for plagiarize but for reproduce, I don't know how to. So could someone point this out for me?

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   1
  • Joined:  08/22/15
  • Last Seen:  

hi, im stuck in here too..

i add more skill,but..
the skill that npc use always miss..

please help

Edited by takamurameijin
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  704
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

On 8/26/2012 at 8:43 PM, Emistry said:

try this

 

 

 

 

 

prontera,155,181,5 script Sample 757,{
mes "Which skill you need me to cast on you ?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],.SkillLv[.@SkillID],getcharid(3);
sleep 3000;
movenpc strnpcinfo(0),155,181;
end;

OnInit:
setarray .SkillID[0],14,19,20,421;
setarray .SkillLv[0],3,5,10,5;
setarray .SkillName$[0],"Cold Bolt","Fire Bolt","Lightning Bolt","Fly Kick";
end;
}
 

 

i was trying to use this npc add trying to add triple attack, but dint work and after the npc show triple attack sprites the npc gone~ help

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

try this

prontera,155,181,5 script Sample 757,{
mes "Which skill you need me to cast on you ?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],10,getcharid(3);
end;

OnInit:
setarray .SkillID[0],14,19,20;
setarray .SkillName$[0],"Cold Bolt","Fire Bolt","Lightning Bolt";
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  07/23/12
  • Last Seen:  

It works, thanks for the unitskilluseid command Emistry! but I have a simple problem, how can I let it use "Flying_Kick" without moving? and for the skill level parameter, it is always 10 right, what happens when I input a skill with less than 10 max level? will it cast the highest level of that skill? or does it fail? because in casting Flying kick, it always misses, so what I though is edit the script :)

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

try this



 

prontera,155,181,5 script Sample 757,{
mes "Which skill you need me to cast on you ?";
set .@SkillID,select( implode( .SkillName$,":" ) ) - 1;
mes "Selected "+.Skillname$[.@SkillID];
close2;
unitskilluseid getnpcid(0),.SkillID[.@SkillID],.SkillLv[.@SkillID],getcharid(3);
sleep 3000;
movenpc strnpcinfo(0),155,181;
end;

OnInit:
setarray .SkillID[0],14,19,20,421;
setarray .SkillLv[0],3,5,10,5;
setarray .SkillName$[0],"Cold Bolt","Fire Bolt","Lightning Bolt","Fly Kick";
end;
}
 

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  07/23/12
  • Last Seen:  

Wow that was quick :) thanks but it still misses can it be done such that skills will never miss? because that npc doesn't have stats right? so flee of the character is part of the computation

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

i think so ~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/15/12
  • Last Seen:  

emistry i use your script for stalker reproduce but the npc didnt cast anything on me.. ?? theres no error on Command prompt also.. weird

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

which skill ......show your script.....what emulator....what version....etc....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/15/12
  • Last Seen:  

this is the script 

i already put an attacment below.. 

im using rAthena

im using SVN 17101 

And client date 2010 .. 

 

i tried all skill that u put inside like cold bolt and etc.. but the npc didnt cast anything to me,..

StalkerNpc.txt

Edited by nixrlz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/15/12
  • Last Seen:  

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:  

brasilis,241,87,5	script	StalkerNpc	757,{

	mes "Which skill you need me to cast on you ?";
	set .@SkillID, select( implode( .SkillName$, ":" ) ) - 1;
	mes "Selected "+ .Skillname$[ .@SkillID ];
	close2;
	npcskill .SkillID[ .@SkillID ], .SkillLv[ .@SkillID ], 50, 99;
	if( .SkillID[ .@SkillID ] == 421 ) {
		getmapxy .@map$, .@x, .@y, 0;
		movenpc strnpcinfo(0), .@x, .@y;
		sleep 3000;
		movenpc strnpcinfo(0),241,87;
	}
	end;

OnInit:
	setarray .SkillID,14,19,20,421;
	setarray .SkillLv,3,5,10,5;
	setarray .SkillName$,"Cold Bolt","Fire Bolt","Lightning Bolt","Fly Kick";
	end;
}

 

Use npcskill

*npcskill <skill id>,<skill lvl>,<stat point>,<NPC level>;

*npcskill "<skill name>",<skill lvl>,<stat point>,<NPC level>;

This command causes the attached NPC object to cast a skill on the attached

player. The skill will have no cast time or cooldown. The player must be

within the default skill range or the command will fail silently.

The "stat point" parameter temporarily sets all NPC stats to the given value,

and "NPC level" is the temporary level of the NPC (used in some skills).

Neither value can be greater than the max level defined in config, and will

not work properly if the NPC has a mob sprite.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/15/12
  • Last Seen:  

where do i find this npcskill?? i dont have those on my trunk...

 

EDIT: the npc manage to use magic on me.. but whenever he use Melle skill , like bowling bash , flying side kick,, it will shows up Miss.. how can we add the npc status so they wont miss?

Edited by nixrlz
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:  

For flying side I don't know

For other skills

The player must be
within the default skill range or the command will fail silently.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/15/12
  • Last Seen:  

For flying side I don't know

For other skills

The player must be

within the default skill range or the command will fail silently.

no , even if they were within range , the skill would be miss, because the npc dosent have status.. hmm can we put status on the npc?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   4
  • Joined:  09/28/12
  • Last Seen:  

Hi

 

I got a same problem when i use Acid Demonstration and Sacrfice the npc skill miss.

 

Please advise.

 

thanks. 

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