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.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2003, 10:56 AM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default Added code fix for giving item(s) to NPCs etc...

One more annoyance fix.

When giving an item to an NPC I was getting an error message [error] GetItem at 0x0bb8 slot (or something like that)

here is my fix:

../zone/client.cpp : line 6042 or thereabouts in Client::GetItemAt() INSERT this:

Code:
	else if (in_slot >= 3000 && in_slot <= 3016) // trade window :used_pawn
		return 0xFFFF;
not CERTAIN if its stable (i have tested it quite a bit though) but it doesnt give the error message anymore.
Reply With Quote
  #2  
Old 06-20-2003, 11:16 AM
Bigpull
Discordant
 
Join Date: Feb 2003
Posts: 305
Default

It's actualy TradeList[in_slot-3000], still need to finish the GetItemProps, heh seems we only store the charges not the full item stats.
Reply With Quote
  #3  
Old 06-20-2003, 01:41 PM
used_pawn
Sarnak
 
Join Date: Apr 2003
Posts: 53
Default

ah ha, knew it wasnt gonna be 0xffff ... but it does fix the problem i could SEE anyway :lol:

glad someone is out there that knows what im doin, LOL
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:36 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