simplynice Posted July 26, 2013 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 128 Reputation: 4 Joined: 11/14/11 Last Seen: April 13, 2016 Share Posted July 26, 2013 I'd like to attach a timer to a player. Example: I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for 1 week. It's an account based attachment of time. The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again. I just need an idea easy enough to understand. Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 26, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 26, 2013 prontera.gat,151,184,5 script Awesome Guy 100,{ if(#ticker<gettimetick(2)) { mes "I think you're really awesome."; next; mes "Now you have to wait a week before you can hear that again."; set #ticker, gettimetick(2)+60*60*24*7; } else { mes "Come back next week for your complement."; } close; } 1 Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted July 27, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted July 27, 2013 Hello sorry for interupting,Hi Skorm! can you elaborate whats:"set #ticker, gettimetick(2)+60*60*24*7;"Because I wanted to make a own script using yours, thanks, and also can it be set a timer on account? Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 27, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 27, 2013 Hello sorry for interupting, Hi Skorm! can you elaborate whats: "set #ticker, gettimetick(2)+60*60*24*7;" Because I wanted to make a own script using yours, thanks, and also can it be set a timer on account? Not a problem. set #ticker, gettimetick(2)+60*60*24*7; #ticker -> Is a permanent account based variable. gettimetick(2) -> UNIX epoch time (number of seconds elapsed since 1st of January 1970) + -> Plus 60 -> 60 Seconds * -> Times 60 -> 60 Minutes 24 -> 24 Hours 7 -> 7 Days All adds up to the amount of seconds in one week. Which I then added to Unix time. If the current time in seconds is greater than #ticker then the amount of time needed has passed. It's a very simple type of timer. I guarantee anywhere you go you'll be able to find it. Hope I was able to explain it well enough. 1 Quote Link to comment Share on other sites More sharing options...
orange Posted July 27, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 175 Reputation: 7 Joined: 09/13/12 Last Seen: May 14, 2021 Share Posted July 27, 2013 I'd like to attach a timer to a player. Example: I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for 1 week. It's an account based attachment of time. The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again. I just need an idea easy enough to understand. hi there could u kindly explain y do u need such a script? i apologize but i did not understand the need of such script. Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted July 27, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share Posted July 27, 2013 /ic /ic Wow thanks Skorm for replies im learning more. /no1 /no1 Quote Link to comment Share on other sites More sharing options...
simplynice Posted July 31, 2013 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 128 Reputation: 4 Joined: 11/14/11 Last Seen: April 13, 2016 Author Share Posted July 31, 2013 I'd like to attach a timer to a player. Example: I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for 1 week. It's an account based attachment of time. The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again. I just need an idea easy enough to understand. hi there could u kindly explain y do u need such a script? i apologize but i did not understand the need of such script. I'd like to limit players to talk to NPC because it gives item. Quote Link to comment Share on other sites More sharing options...
Question
simplynice
I'd like to attach a timer to a player.
Example:
I will talk to NPC and after talking to NPC . the NPC will block the player to talk into that NPC for 1 week.
It's an account based attachment of time.
The purpose of the 1 week time is it cannot talk to the NPC even if he goes offline and online again.
I just need an idea easy enough to understand.
Link to comment
Share on other sites
6 answers 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.