About Store Forum Documentation Contact



Post Reply 
itemDropDown fails
Author Message
caspersky Offline
Member

Post: #1
itemDropDown fails
i searched the forum b4 asking the question,
well i am using itemDropDown to drop down items but it returns NULL and nothing happen,
well reading the documentation in the header files :
1->item must belong to item container.
and this is true in my case, because i already defined a player::itemcontainer() which reference the current items of the player.
and i tried something very simple like : itemDropDown(items[0]); where items is the returner container from itemContainer..
back to the doc in header file, it says that the the function fails if the item has been dropped to unloaded area and has ...
now my question is why the functions fails to drop the item..
i am missing something here ?
08-26-2010 10:13 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: itemDropDown fails
did you call Game::World.setObjItem instead of Game::World.setObjType for your item class?
I'll update the comments on itemDropDown function to mention it
08-26-2010 10:56 AM
Find all posts by this user Quote this message in a reply
caspersky Offline
Member

Post: #3
RE: itemDropDown fails
tx for the reply
i did it , i got a pure virtual function call.. it seems that i should implement a function ?
tx a lot, it was my mistake..
its now working with Game::World.setObjItem
(This post was last modified: 08-26-2010 11:28 AM by caspersky.)
08-26-2010 11:13 AM
Find all posts by this user Quote this message in a reply
Post Reply