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
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
But nothing happens and it conflicts with this line
and this line
Solved by using this line of code:
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: