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 05-02-2003, 02:29 AM
Wolfman
Fire Beetle
 
Join Date: Mar 2003
Posts: 23
Default Caught a few bugs in the current CVS

client.cpp - bool Client::MoveItem(int16 to_slot, int16 from_slot, uint8 quantity):

~line 7557:
if (to_slot >= 1 && to_slot <= 21 && !database.GetItem(GetItemAt(to_slot))->IsEquipable(GetRace(), GetClass()) )

should be
if (to_slot >= 1 && to_slot <= 21 && !database.GetItem(GetItemAt(from_slot))->IsEquipable(GetRace(), GetClass()) )

GetItemAt(to_slot) evaluates to null and causes an unhandled exception because there isnt currently anything in the to_slot.


attack.cpp - void NPC:amage(Mob* other, sint32 damage, int16 spell_id, int8 attack_skill, bool avoidable, sint8 buffslot, bool iBuffTic):

~line 1116:

parse->Event(EVENT_ATTACK, this->GetNPCTypeID(), 0, this, other->CastToClient());

should be:
parse->Event(EVENT_ATTACK, this->GetNPCTypeID(), 0, this, other->CastToMob());

Not sure how the CastToClient() got in there but it causes a crash when pets try to attack. Should be CastToMob().


client.cpp - bool Client::PutItemInInventory(int16 slotid, const Item_Struct* item, int8 charges, bool update):

Not really a bug, just something that disables a feature.

~line 6164:

if (update) {
more code
}

update never gets changed to true anywhere in the code so it doesn't allow players to loot corpses properly. Left clicking on the item while in a corpse deletes it but right clicking still works. Not sure if this is just due to something that's half implemented or not but perhaps it could be commented out for the time being (the if(update) part).
Reply With Quote
  #2  
Old 05-02-2003, 02:52 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

awesome! thanks for the bugfixes
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
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 06:09 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