I'm developing a NPC, and I want this NPC to get a scarf from the player, but this scarf MUST have an action ID 20006.
If the scarf does not have an action ID or if the action ID doesn't match id doesn't take.
so far I've got this
any ideas?
If the scarf does not have an action ID or if the action ID doesn't match id doesn't take.
so far I've got this
Code:
if(getPlayerItemCount(cid, 2661) >= 1) then
local item = getPlayerItemById(cid, true, 2661)
if(HERE_I_NEED_TO_CHECK_IF_THE_ITEM_HAS_THE_ACTION) then
DO SOMETHING
else
DO SOMETHING ELSE
end
else
npcHandler:say('I\' sorry. Come back when you have something.', cid)
end
any ideas?