Jump to content
  • 0

'OnTouch' + movenpc = nothing....


luizragna

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

Hello guys, I would like to do that when I move an NPC, he would activate the label OnTouch. For some reason it doesn't work.

 

prontera,100,100,4	script	MoveMan	64,{
  
  movenpc "UnknownMan",prontera,105,105;
  end;
  
}

prontera,104,100,4	script	UnknownMan	65,1,1,{
  
  OnTouch:
  mes "Hello !!";
  close;
  
}

Basically, i want throw the npc on the player and the  label OnTouch activate

Edited by luizragna
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

Npc won't trigger on touch... but after the npc move you could add a donpcevent... and call that npc OnTouch label...

 

Calculate how long it takes to move from point a to point b...

 

Start a timer and OnTimerXXXX: dpnpcevent("ontouchnpc::OnTouch");

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