Dankoo
Active Member
- Joined
- Sep 4, 2010
- Messages
- 1,007
- Reaction score
- 27
Well, this function could be optimized with an feature to check if player has capacity and free slots to take the item.
Like in quest system (where you set ActionID = 2000 and place item inside container at map editor)
In this script it's like this:
But there are a lot of quests that we don't use this system, then the item falls to the ground lol
It would be nice if this check was made by the function itself ^_^
Like in quest system (where you set ActionID = 2000 and place item inside container at map editor)
In this script it's like this:
LUA:
if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then
result = "You have found a reward weighing " .. getItemWeight(reward.uid) .. " oz. It is too heavy or you have not enough space."
else
result = "You have found " .. result .. "."
setPlayerStorageValue(cid, storage, 1)
But there are a lot of quests that we don't use this system, then the item falls to the ground lol
It would be nice if this check was made by the function itself ^_^