Alexandre Nadal
New Member
- Joined
- Jun 2, 2015
- Messages
- 5
- Reaction score
- 0
I'm trying to introduce a gold pouch on my 7.4 server
I added a condition in container.cpp below Container::queryAdd:
This condition blocks adding any item to my gold pouch, even if I buy something from an NPC, that item never goes into the gold pouch.
So far everything is fine.
But they told me that I could, via LUA, release the addition of items using FLAG_NOLIMIT, but I couldn't.
I would like to release the addition of the 3 currencies, platinum, gold and crystal.
Can someone help me?
I added a condition in container.cpp below Container::queryAdd:
C++:
if (getID() == ITEM_GOLD_POUCH && !hasBitSet(FLAG_NOLIMIT, flags)) {
return RETURNVALUE_LOOTPOUCHINVALIDITEM;
}
This condition blocks adding any item to my gold pouch, even if I buy something from an NPC, that item never goes into the gold pouch.
So far everything is fine.
But they told me that I could, via LUA, release the addition of items using FLAG_NOLIMIT, but I couldn't.
I would like to release the addition of the 3 currencies, platinum, gold and crystal.
Can someone help me?