How do I add exhausted in my script?
I would like to add 2 seconds in the following script:
TFS Dev 0.4
Thank you in advance!!
I would like to add 2 seconds in the following script:
TFS Dev 0.4
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {X=32412, Y=31413, Z=12}
local stone = 1304
local stoneFromPos = getThingfromPos(pos)
if item.itemid == 1945 then
doRemoveItem(stoneFromPos.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed the Stone.")
doTransformItem(item.uid, 1946)
elseif item.itemid == 1946 then
doCreateItem(stone, 1, pos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You added the Stone.")
doTransformItem(item.uid, 1945)
end
end
Thank you in advance!!
Last edited: