• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Get Item with desired actionID? - avesta

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
I want my NPC to remove an item with action id (eg. 1000) from player.
Avesta doesn't have getItemDescriptions(uid) function. I tried with smth like this:
Code:
if(getPlayerItemById(cid, true, 1955) and getPlayerItemById(cid, true, 1955).actionid == 10018) then
			doPlayerRemoveItem(cid, 1955, 1)
end

But the 'if' always returns false.
I tried to replace ".actionid" with ".aid" but it still returns false...

Do I have to implement another function to my server by C++?
 
Back
Top