scorpionfight
New Member
Hello,
I use the svn 0.4 distro and my NPCs are picking up the item from the body (equipped items) of the players when the item is sold, I would just get to pick up the containers of items such as backpacks. I tested two systems of NPC and the same thing happens if this function uses "doPlayerSellItem (cid, itemid, count, cost)," and the other uses this function "ShopModule: addSellableItem (names, itemid, cost, realname)".
When looking at the code of the functions mentioned above, I noticed that nothing prevents them from removing the item that the player is using.
Would you like a code .lua or c++ to solve the problem with my NPCs.
Edit: OBS: Rev. 3884!
Thanks!
I use the svn 0.4 distro and my NPCs are picking up the item from the body (equipped items) of the players when the item is sold, I would just get to pick up the containers of items such as backpacks. I tested two systems of NPC and the same thing happens if this function uses "doPlayerSellItem (cid, itemid, count, cost)," and the other uses this function "ShopModule: addSellableItem (names, itemid, cost, realname)".
When looking at the code of the functions mentioned above, I noticed that nothing prevents them from removing the item that the player is using.
Would you like a code .lua or c++ to solve the problem with my NPCs.
Edit: OBS: Rev. 3884!
Thanks!
Last edited: