local ITEM_IDS = {
[2041] = 2042,
[2042] = 2041,
[2044] = 2045,
[2045] = 2044,
[2047] = 2048,
[2048] = 2047,
[2050] = 2051,
[2051] = 2050,
[2052] = 2053,
[2053] = 2051,
[2054] = 2055,
[2054] = 2055,
-- crystal pedestals
[9976] = 9977,
[9977] = 9978,
[9978] = 9979,
[9979] = 9976
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not ITEM_IDS[item.itemid]) then
return false
end
doTransformItem(item.uid, ITEM_IDS[item.itemid])
doDecayItem(item.uid)
return true
end
I can't believe this still isn't fixed.Code:[2053] = 2051, [2054] = 2055, [2054] = 2055,
[2053] = 205[B][COLOR="Red"]2[/COLOR][/B],
[2054] = 2055,
[205[B][COLOR="Red"]5[/COLOR][/B]] = 205[B][COLOR="Red"]4[/COLOR][/B],
<action itemid="2041;2042;2044;2045;2047;2048;2050-2055;9976-9979;1479;1480" event="script" value="custom/item/light.lua"/>
local ITEM_IDS = {
[2041] = 2042,
[2042] = 2041,
[2044] = 2045,
[2045] = 2044,
[2047] = 2048,
[2048] = 2047,
[2050] = 2051,
[2051] = 2050,
[2052] = 2053,
[2053] = 2052,
[2054] = 2055,
[2055] = 2054,
-- street lamp
[1480] = 1479,
[1479] = 1480,
-- crystal pedestals
[9976] = 9977,
[9977] = 9978,
[9978] = 9979,
[9979] = 9976
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not ITEM_IDS[item.itemid]) then
return false
end
doTransformItem(item.uid, ITEM_IDS[item.itemid])
doDecayItem(item.uid)
return true
end