Hello, iam newbie on luascript, i don't know how to fix it, any can help me?
Lua:
--Addon Only Click By: Raikon (RaikND)--
function onUse(cid, item, frompos, item2, topos)
-- First Citizen Addon
if item.actionid == 33751 then
if doPlayerRemoveItem(cid,5878,100) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You Found a First Citizen Addon")
doPlayerAddOutfit(cid, 136, 1)
doPlayerAddOutfit(cid, 128, 1)
else
doPlayerSendCancel(cid,"You need 100 minotaur leathers.")
end
-- Second Citizen Addon
elseif item.actionid == 33752 then
if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You Found a First Citizen Addon")
doPlayerAddOutfit(cid, 136, 2)
doPlayerAddOutfit(cid, 128, 2)
else
doPlayerSendCancel(cid,"You need 100 chiken feathers, 50 honeycombs, 1 legion helmet.")
end
end
return false
end