liqeen
Active Member
Hello, I was wondering if it is possible to add a timer on the roshamuul bones after clicking on it. So basically when u click on bones they transform into other id and triggers revertBone function then after clicking again the script should send a message when the bones were used, for example 10min.
TFS 1.3
Thanks for your time.
TFS 1.3
Lua:
local function revertBone(position, itemId, transformId)
local item = Tile(position):getItemById(itemId)
if item then
item:transform(transformId)
end
end
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 10999 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You awaken the boss.')
item:transform(11000, 10999)
addEvent(revertBone, 2400000, toPosition, 11000, 10999)
toPosition:sendMagicEffect(3)
local monster = Game.createMonster('Goliath', Position(2009, 1791, 7))
end
end
Thanks for your time.