Jump to content
  • 0
Sign in to follow this  
Brozan

npcskill always misses

Question

Hi,

 

I'm making an npc that casts skills on the player for the purposes of Reproduce/Plagiarism. The issue is that the NPC's skill always misses the player, so the attack doesn't connect. I've tried debuffing the player with sleep/freeze/stun to set flee to 0 but that still doesn't work. Can anyone help?

 

 

 //Reproduce NPC
prontera,155,181,5 script Reproducer 81,{
mes "Which skill you need me to cast on you ?";
set .@SkillID, select( implode( .SkillName$, ":" ) ) - 1;
mes "Selected "+ .SkillName$[ .@SkillID ];
close2;
sc_start SC_SLEEP,400,1;
npcskill .SkillID[ .@SkillID ],.SkillLv[ .@SkillID ],50,50;
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,2006,2204,2213,2214,2022,263,2054,89,2002;
setarray .SkillLv,10,10,10,5,5,5,5,5,10,5,10,5;
setarray .SkillName$,"Cold Bolt","Fire Bolt","Lightning Bolt","Ignition Break","Jack Frost","Comet","Chain Lightning","Cross Impact","Triple Attack","Duple Light","Storm Gust","Sonic Wave";
end;
}

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Nude worked!

It was a stupid error though, character I was testing it on had Golden Thief Bug Card equipped. I appreciate your time though!

 

nude might be a bit annoying, better dispel just the hands:

 

unequip EQI_HAND_L;

unequip EQI_HAND_R;

Share this post


Link to post
Share on other sites
  • 0

Ran into another problem (which large amounts of googling has shown no answer to):

It seems that all magic skills work fine, but any "weapon" type skill always misses regardless of range (presumably because it fails - NPCs can't have weapons).

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.