Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2009, 11:57 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Apparently we could use the same change.

I just did some testing, and while a grey-con Level 40 hostile NPC will not attack a Level 75 character, it will attack its Level 2 pet, and then turn to the owner once the pet is dead.

Code:
Guard Legver glares at you threateningly -- You could probably win this fight.
Guard Legver hits Zarartik for 120 points of damage.
Zarartik has been slain by Guard Legver!
Guard Legver tries to hit YOU, but misses!
Zarartik tells you, 'Attacking Guard Legver Master.'
Guard Legver bashes YOU for 33 points of damage.
Also, pets can speak from beyond the grave. OooooOOOOOoooooh. Heh heh.
Reply With Quote
  #2  
Old 07-07-2009, 12:34 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

hehe, but yeah this was a huge annoyance on LIVE, we realy need to get rid of it =P
Reply With Quote
  #3  
Old 07-07-2009, 01:09 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

Grr. There's still a slight problem with this feature.

It does the proper processing when a player zones in, FillSpawnStruct(&ns, Client) gets called for the particular client entering the zone, so they get the customized version of the NPC's lastname.

However, any new NPC spawn packets that get sent to the client after zoning in don't get processed in the same way... the same spawn packet gets sent to all clients in the zone, so NPCs that spawn after zoning in, via normal respawn cycles or #repop, won't have the customized lastname.

I'll have to do a little more work before this is 100% functional.

I'll probably have to move the processing into the QueuePacket() function, and things will get a little more complicated.
Reply With Quote
  #4  
Old 07-07-2009, 04:54 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Definitely an interesting option once the code issues are all worked out. Can you maybe just do an IsPet check before doing the case switch?
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 07-07-2009, 09:57 AM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

The pet problem isn't actually related to this at all, I just noticed it while testing. An IsPet check isn't part of the hostile NPC flagging.
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:22 PM.


 

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