View Single Post
  #4  
Old 04-19-2009, 11:34 PM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

Quote:
Originally Posted by janusd View Post
Wait... you got the boat to target the player without the player having to initiate contact with an entry or some other such? Pretty sexy! I'd forgotten all about those boats, honestly.

You think it's possible to work up a PERL command to make NPCs respond to text without being targeted? Just when something is said within a certain radius of 'em they respond if they're keyed to respond to it?
The boat targeting was fairly simple because the client sends a couple of different op codes when it enters or leaves boats, so I used those to trigger the changes.

I can think of a couple of ways that NPCs could respond to things said within a certain radius, but they all involve adding a lot of extra work for the server (as every npc sifts through everything that happens near them, looking for those few relevant items). At the very least, it would probably need a database flag, similar to the quest globals flag, to designate the few NPCs that need to do that.
Reply With Quote