View Single Post
  #4  
Old 02-18-2013, 07:52 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Necro!

I came across this issue again and the following code now works as a work-around.

Code:
i->PutItem( i->FindFreeSlot(0,0), *pDB->CreateBaseItem( pDB->GetItem( YOUR_ITEM_ID ), 0 ) );
CreateBaseItem must be called, only calling GetItem will result in the item being out of charges.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?

Last edited by Drajor; 02-18-2013 at 07:53 AM.. Reason: Spelling.. I just walked 20km!
Reply With Quote