I currently have a NPC that sets a timer on a player like so:
addtimer 7200000, "NPC::Tag";
when they finish a particular quest. This timer serves as a way to stop them from doing the quest again for 2 hours.
I am also using OnPCLoginEvent to reset the timer when they login. However, I'd like to make it so it doesn't add the timer again, but instead, continues the existing timer.
I was thinking of setting a variable and having it decrease by 1 every second, and that variable being the "time left." However, I do not know how to implement this using the eA/rA scripting language. Any suggestions?
Question
Genesis
Hi,
I currently have a NPC that sets a timer on a player like so:
addtimer 7200000, "NPC::Tag";
when they finish a particular quest. This timer serves as a way to stop them from doing the quest again for 2 hours.
I am also using OnPCLoginEvent to reset the timer when they login. However, I'd like to make it so it doesn't add the timer again, but instead, continues the existing timer.
I was thinking of setting a variable and having it decrease by 1 every second, and that variable being the "time left." However, I do not know how to implement this using the eA/rA scripting language. Any suggestions?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.