Jump to content
  • 0

OnTouch NPC unittalk


ragexe

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  05/30/17
  • Last Seen:  

prontera,150,166,4	script	Test	777,5,5,{

npctalk "Hey you"+getcharid(3);
sleep 5000;
unittalk getcharid(3), "Hey";
sleep 10000;


end;
}

i got error in map server got 
[Error]buildin_getcharid: fatal error ! player not attached!
[Debug]: Function: getcharid(1 parameter);
[Debug]: Data: number value=3
[Debug]: Source (NPC): Test at prontera (150,166)
someone can help me to fix this?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

40 minutes ago, ragexe said:

prontera,150,166,4	script	Test	777,5,5,{

npctalk "Hey you"+getcharid(3);
sleep 5000;
unittalk getcharid(3), "Hey";
sleep 10000;


end;
}

i got error in map server got 
[Error]buildin_getcharid: fatal error ! player not attached!
[Debug]: Function: getcharid(1 parameter);
[Debug]: Data: number value=3
[Debug]: Source (NPC): Test at prontera (150,166)
someone can help me to fix this?

prontera,150,166,4	script	Test	777,5,5,{
	end;
OnTouch:
	npctalk "Hey you "+strcharinfo(0);
	sleep2 5000;
	unittalk getcharid(3), "Hey";
	sleep2 10000;
	end;
}

 

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