EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Added code fix for giving item(s) to NPCs etc... (https://www.eqemulator.org/forums/showthread.php?t=8192)

used_pawn 06-20-2003 10:56 AM

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.

Bigpull 06-20-2003 11:16 AM

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.

used_pawn 06-20-2003 01:41 PM

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


All times are GMT -4. The time now is 04:41 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.