here is my script, it doesnt summon the monster, and when i kill the monster the teleport does not appear, also it says i need to wait 17221 seconds.
LUA:
function onUse(cid, item, toPosition, itemEx, fromPosition)
if getGlobalStorageValue(9872) <= 0 then --all the ##### have to be the same
if itemEx.itemid == 2553 then
teleport = doCreateTeleport(1387, {315,810,15}, {x=348, y=887, z=15})
doItemSetAttribute(teleport, "aid", 101)
setGlobalStorageValue(9872, 1)
addEvent(function reset, 60*60*1000, setGlobalStorageValue(9872, 0) end)
doSummonCreature("pythius the rotten", {x=343, y=887, z=15})
return true
end
else
doPlayerSendTextMessage(cid, 25, "You have to wait, it is available every 1 hour...")
end
return true
end