local t = {
[CONST_SLOT_ARMOR] = {12603},
[CONST_SLOT_LEGS] = {12604},
[CONST_SLOT_FEET] = {12607},
[CONST_SLOT_RING] = {2123},
[CONST_SLOT_NECKLACE] = {7888},
}
function onThink()
for _, cid in ipairs(getPlayersOnline()) do
local has = true
for slot, ids in pairs(t) do
if not table.find(ids, getPlayerSlotItem(cid, slot).itemid) then
has = false
break
end
end
if has then
doSendAnimatedText(getThingPos(cid), 'ROYALTY', TEXTCOLOR_YELLOW)
end
end
return true
end
Didn't try it yet but thanks.Code:local t = { [CONST_SLOT_ARMOR] = {12603}, [CONST_SLOT_LEGS] = {12604}, [CONST_SLOT_FEET] = {12607}, [CONST_SLOT_RING] = {2123}, [CONST_SLOT_NECKLACE] = {7888}, } function onThink() for _, cid in ipairs(getPlayersOnline()) do local has = true for slot, ids in pairs(t) do if not table.find(ids, getPlayerSlotItem(cid, slot).itemid) then has = false break end end if has then doSendAnimatedText(getThingPos(cid), 'ROYALTY', TEXTCOLOR_YELLOW) end end return true end
Ah yea working thanks again.its work don't wory its not mine i found in old date