I got an script from Cykotitan, but I didn't really understand one part of it, and would like to know what it does
All that I already know is that this do transform item to another but never seen the part
before, could someone please explain it for me?
(This is the whole code if you need to know)
Code:
doTransformItem(item.uid, tonumber("194".. (item.itemid == 1945 and 6 or 5)))
All that I already know is that this do transform item to another but never seen the part
Code:
("194".. (item.itemid == 1945 and 6 or 5))
(This is the whole code if you need to know)
Code:
local config = {
id = 2111,
pos = {x = 100, y = 100, z = 7}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
return
true,
item.itemid == 388 and
doRemoveItem(getTileItemById(config.pos, config.id).uid)
or item.itemid == 389 and
doCreateItem(config.id, 1, config.pos),
doTransformItem(item.uid, tonumber("194".. (item.itemid == 1945 and 6 or 5)))
end