Log in

View Full Version : Added code fix for giving item(s) to NPCs etc...


used_pawn
06-20-2003, 10:56 AM
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:

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