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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-17-2003, 02:13 PM
mangoo
Items Master
 
Join Date: Apr 2003
Posts: 293
Default NORENT Fix

Function: void Client::RepairInventory()

This is a very simple fix for NORENT items not being deleted in the RepairInventory() function. Previously, if a NORENT item was found, whatever was on the cursor slot would be deleted instead. Also, maybe we should add in a column to character tables for a timestamp of last time a character is saved, that way NORENT items wont be deleted each time someone zones. I think I will actually start on that myself, will release code for it once I'm done. Anyways.... here is the NORENT fix for ya...

Starts on ~ln 6824

Currently:

Code:
else {
	//Item exists, make sure it is ok
	if((item->IsGM() || !item->nosave) && admin < 10) {
		pp.inventory[0] = 0xFFFF;
		memset(&pp.invitemproperties[0],0,sizeof(ItemProperties_Struct));

		if(item->IsBag()) {
Change to:

Code:
else {
	//Item exists, make sure it is ok
	if((item->IsGM() || !item->nosave) && admin < 10) {
		pp.inventory[slotid] = 0xFFFF;
		memset(&pp.invitemproperties[slotid],0,sizeof(ItemProperties_Struct));

		if(item->IsBag()) {
[/code]
Reply With Quote
 

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 12:05 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