otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.59k stars 1.06k forks source link

New function #259

Closed punkice3407 closed 10 years ago

punkice3407 commented 10 years ago

getPlayerItemInContainer, Check whether the item is in backpack (must have

ghost commented 10 years ago

This function exists in forgottenserver.

local container = Container(container)
local item = Item(item)

container:hasItem(item) -- return true if backpack contains item