Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-09-2012, 04:09 PM
iluvseq
Sarnak
 
Join Date: Aug 2009
Location: Somewhere
Posts: 53
Default EVENT_SAY only triggering when right on top of a mob

Looking at the code, it would appear that EVENT_SAY should have a range of 200, but it only seems to work when I'm within 10.

What am I missing?
Reply With Quote
  #2  
Old 03-09-2012, 04:23 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

If you are looking at the same code as I am, i.e. client.cpp, line 992, then it is using the DistNoRootNoZ function which doesn't use square root (for performance reasons) to get the real distance, so in that context, 200 is equivalent to sqrtf(200) == 14.14 in real distance units.
Reply With Quote
  #3  
Old 03-09-2012, 04:25 PM
iluvseq
Sarnak
 
Join Date: Aug 2009
Location: Somewhere
Posts: 53
Default

Ah-ha! I didn't dig that deep into it, just assumed the 200 was 'real distance units'. Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 03:53 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3