GOD Wille
Excellent OT User
Hello, i got a script for vip quest that when push lever u can do the vip quest. If you fail/take more time than 5 min u are tped out of quest.
When u been tped out u need to wait 1 h til u can do the quest again.
But something is wrong now. Cuz it saves 1 h for all players.
I mean, if i do the quest and i fail all ppl have to wait 1 h not just the single one.. Please help me
Errors in console:
Script:
When u been tped out u need to wait 1 h til u can do the quest again.
But something is wrong now. Cuz it saves 1 h for all players.
I mean, if i do the quest and i fail all ppl have to wait 1 h not just the single one.. Please help me
Errors in console:
Code:
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/annihilatorr.lua:onUse
Description:
(luaGetCreatureStorage) Creature not found
Script:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 or item.itemid == 1946 then
if(getPlayerStorageValue(cid, 30016) == -1)then
nplayer1pos = {x=979, y=1409, z=11}
doTeleportThing(cid, nplayer1pos)
setPlayerStorageValue(cid, 30016, 1)
local hours = 1
local timed = 5
local tijd = 0
local function timer(i)
xpos = {x=1000, y=1000, z=7}
if (getPlayerStorageValue(cid, 5785) == 1) then
setPlayerStorageValue(cid, 30016, 2)
doPlayerSendTextMessage(cid, 19, "You've compleated the quest before time runs out!")
else
addEvent(setPlayerStorageValue(cid, 30016, -1), (hours * 1 * 60 * 60 * 1000))
doTeleportThing(cid, xpos)
doPlayerSendTextMessage(cid, 19, 'You need to wait '.. hours ..' hour before you could do this quest again!')
end
end
if(tijd == 0)then
addEvent(timer, (timed * 60 * 1000))
doPlayerSendTextMessage(cid, 19, 'Whitin '.. timed ..' minutes you will get teleported back for safety reasons.')
end
else
doPlayerSendCancel(cid, "You can't pull this lever yet.")
end
end
return TRUE
end