Cloow
Active Member
- Joined
- May 10, 2010
- Messages
- 1,086
- Reaction score
- 35
Hello, im practicing my Lua acknowledge, so i've tryed to make a simple DHQ quest.
So here it is, I just can't figure out how to add so the stone will get back in 10 seconds.
plix help?
So here it is, I just can't figure out how to add so the stone will get back in 10 seconds.
plix help?
Code:
local t = {
uid = 15126
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
doRemoveItem(t.uid)
doPlayerSendTextMessage(cid,21,"You removed the stone! You got 10 seconds to enter before the stone appears again.")
doPlayerSetStorageValue(uid, 15127, 1)
return TRUE
end
getPlayerStorageValue(uid, 15127, 1)
doPlayerSendCancel(cid,"You already did this quest.")
end
end