When you click it come backAnd when you click again it goes back, or only that? You can just use doTransformItem(item.uid, 1484)
Ps: you can't rep yet with this amount of posts and join date.
Hi . I want A script if you click on Id "1485" It will be id "1484"
Rep for help![]()
<action itemid="1484;1485" event="script" value="other/coalbasin.lua"/>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1485 then
doTransformItem(item.uid, 1484)
elseif item.itemid == 1484 then
doTransformItem(item.uid, 1485)
end
return TRUE
end
LUA:function onUse(cid, item, fromPosition, itemEx, toPosition) return doTransformItem(item.uid, item.itemid == 1485 and 1484 or 1485) end
Coool Tnx@limos Your dident work
But tnx
![]()
idk . But it dident work for meI tested it, it works on 0.3.6, also don't see a reason why it doesn't work on other versions, and else you could give the error next time.