• 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 the actionID of an item

guisalum

New Member
Joined
Dec 22, 2009
Messages
22
Reaction score
0
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

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?
 
Back
Top