Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2002, 06:59 PM
wanker
Fire Beetle
 
Join Date: Sep 2002
Posts: 1
Default Stun Bug

Whenever a creature gets stunned (I can only speak for anarchy, but I'm guessing this is the case for other stuns as well) it will stay stunned for either an extremely long duration or indefinately. For example, if I go up to a mob with a SoD and get a proc hit on it, I can back off for 30+ seconds without it coming after me, whereas anarchy is only supposed to last for a second or two. Sorry I can't be more specific, all I know is this has happened to me on all servers I've played on, both green and black, so I'm guessing it's not just a problem with one server.
Reply With Quote
  #2  
Old 10-05-2002, 12:00 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

I think I know why this bug occurs. It will occur with spells that have a stun component which isn't the primary effect, in this specific case Anarchy has damage as it's main component and the stun as a secondary effect.

The code assumes that the duration of a stun spell is the base value of the first effect in the spell ..

Spells.cpp : Line 577

CastToClient()->Stun(spells[spell_id].base[0]);

For anarchy this value will be -171. What it should be using is the value of base[1] as the stun is the second spell effect. This gives a more reasonable value of '1'.

The reason you get such a long stun is that when -171 is converted to an unsigned number somewhere on the way to the stun function it becomes (assuming a 16 bit value) 65365. That's a 65 second stun!

K.
Reply With Quote
  #3  
Old 10-05-2002, 05:14 AM
kathgar
Discordant
 
Join Date: May 2002
Posts: 434
Default

Fixed. Change base[0] to base[i] and recompile.
__________________
++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<
+++++>-]<+.+++++++..+++.>>+++++[<++++++>-]<+
+.<<+++++++++++++++.>.+++.------.--------.>+.
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:59 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