EarLayer
Returns layer number 0x12 - Ear(Earrings)
Pascal
function EarLayer():Byte
Python
EarLayer()
Example 1:
if ObjAtLayer(EarLayer) > 0 then
AddToSystemJournal('Earrings ID:' + IntToStr(ObjAtLayer(EarLayer)));
Example 2:
{If there is something on a layer, then remove}
if ObjAtLayer(EarLayer) <> 0 then
begin
unequip(EarLayer);
wait(1000);
end;