• 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!

Solved return what liquid is in mug

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
How do I return what the contents of a mug are?

I tried

Code:
local beer = getPlayerItemById(cid, true, 2012, 3)

but my npc, when asked to remove "beer", throws the else at me like I dont have it when I do have a mug of beer, number 3.

I have even tried this

Code:
local beer = 2012
	

				if beer.itemid == 2012 and beer.type == 3 then

But nothing happens and it conflicts with this line

Code:
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

and this line

Code:
				if beer.itemid == 2012 and beer.type == 3 then

Solved by using this line of code:
Code:
if doPlayerRemoveItem(cid, beer, 1, 3) then
 
Last edited:
Back
Top