Hello again!
I need to fix this script, i try to fix it and nothing happens
Sytuation look's that:
But i have errors in console:
lever is working, but stone don't want to delete...
Here is code, what's wrong? Use tfs 3.6.0pl1
REP++ OTlanders!
I need to fix this script, i try to fix it and nothing happens
Sytuation look's that:
But i have errors in console:
lever is working, but stone don't want to delete...
13:25 You removed a Stone.
13:25 You added a Stone.
Here is code, what's wrong? Use tfs 3.6.0pl1
Code:
-- Script by Ates, Add/Remove Stone!
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=1203, y=199, z=11, stackpos=1}
local stone = 1304
local stoneFromPos = getThingfromPos(pos)
if item.itemid == 1945 and item.uid == 6025 then
doRemoveItem(stoneFromPos.uid, 1,)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed a Stone.")
doTransformItem(item.uid,item.id+1)
elseif item.itemid == 1946 and item.uid == 6025 then
doCreateItem(stone, 1, pos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You added a Stone.")
doTransformItem(item.uid,item.id-1)
end
end
REP++ OTlanders!