• 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 [Movements] EquipVip Error

russogracie

New Member
Joined
Sep 9, 2010
Messages
205
Reaction score
2
I wanted my script from deleting items that had not furnished his name in the description, so I put this case but the item is not being deleted:

function onEquip(cid, item, slot)
local f = getItemAttribute(item.uid, 'description')
if f then doPlayerRemoveItem(cid,iditem,1)
if f then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Esse item pertence ao player '..f..'!') end
return not f or f == getCreatureName(cid)
end
return TRUE
end

Wath is the error?
 
i have no idea what ur trying to make here but u gotta close the IFs ..
Code:
function onEquip(cid, item, slot)
local f = getItemAttribute(item.uid, 'description')
if f then--1
doPlayerRemoveItem(cid,iditem,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Esse item pertence ao player '..f..'!')
return not f or f == getCreatureName(cid)
end--close1
return TRUE
end--close function
 
Back
Top