Jump to content
  • 0

NPC to automatically talks to players in range


fictionworld

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   8
  • Joined:  12/27/11
  • Last Seen:  

Hi,

I am trying to revise the codes here. I am trying to understand what part of this code does the auto-talk to players in range?

new_1-1,53,114,4 script Isa The Greeter#nv1 612,3,3,{

as far as my experiment is concerned, the 3,3 does the trick. Please do correct me if I'm wrong though. And if so, what does each number mean and what other values can be put into them?

Thanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

<map name>,<x>,<y>,<facing>%TAB%script%TAB%<NPC Name>%TAB%<sprite id>,<triggerX>,<triggerY>,{<code>}

TriggerX and triggerY, if given, will define an area, centered on NPC and
spanning triggerX cells in every direction across X and triggerY in every
direction across Y. Walking into that area will trigger the NPC. If no
'OnTouch:' special label is present in the NPC code, the execution will start
from the beginning of the script, otherwise, it will start from the 'OnTouch:'
label. Monsters can also trigger the NPC, though the label 'OnTouchNPC:' is
used in this case.

https://rathena.svn....pt_commands.txt

Trigger X and Y just declares how far the player has to be from the NPC in the x and y direction for it to trigger.

I'm not sure though how big of a number you can put in there for it to work properly.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

as far as my experiment is concerned, the 3,3 does the trick.

You are correct.

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