npcskill always misses

Brozan

New member
Messages
6
Points
0
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;
}
 
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 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;

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

 
Back
Top