Jump to content
  • 0

Stalker NPC ( gone after clicking )


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

Hello everyone. I got a problem with my Stalker NPC. 

Whenever a player clicks it, it will gone. So it's like it's good for only 1 use. Dunno what's wrong. 

So i have to @reloadscript again to make it back again. 

Here's my stalker npc script. 

phtownall,189,195,4	script	Stalker NPC	481,{
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),108,89;
end;

OnInit:
setarray .SkillID[0],84,89,83,537,542,62,421,534;
setarray .SkillLv[0],10,10,10,10,5,10,7,10;
setarray .SkillName$[0],"Jupitel Thunder","Storm Gust","Meteor Storm","Lightning Spear of Ice","North Wind","Bowling Bash","Flying Side Kick","Crimson Fire Blossom";
end;
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Its because of this. 

movenpc strnpcinfo(0),108,89; <= Remove this
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   3
  • Joined:  09/04/14
  • Last Seen:  

What do you want? Should the NPC move or not?

 

Best regards,

Garkor

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