Greetings OtLanders
I am wondering if it's possible to show the "addEvent" remaining time to the player.
Like, everytime you are using a door with "20302" in uniq id, and have storagevalue == 1
then display a message (like: You have already entered this quest. You have XX minutes remaining to re-enter this door".
(an example script)
(The script do work, but as I said, I want the show the remaining time part)
If this is possible, HOW?
If not, just say "no" <_<
I am wondering if it's possible to show the "addEvent" remaining time to the player.
Like, everytime you are using a door with "20302" in uniq id, and have storagevalue == 1
then display a message (like: You have already entered this quest. You have XX minutes remaining to re-enter this door".
(an example script)
LUA:
function onUse(cid, item, frompos, item2, topos)
function doQuest()
setPlayerStorageValue(cid, 1027, -1)
end
local itemid = 6261
if item.uid == 1027 or 1028 then
if getPlayerStorageValue(cid,1027) == 1 then
doTransformItem(item.uid,itemid)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Sorry, but you have started the Black Knight Quest and may not return!')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have started the Black Knight Quest and may not return!.')
doTransformItem(item.uid,itemid+1)
setPlayerStorageValue(cid, 1027, 1)
addEvent(doQuest, 600000)
end
end
return 1
end
If this is possible, HOW?
If not, just say "no" <_<