Jump to content
  • 0

'OnTouch' + movenpc = nothing....


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted

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");

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...