Jump to content
  • 0

1 hour timer Waiting room


Onairda

Question


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

Hello,

Can someone help me to edit this script to only count 1 hour and 20 minutes then refresh again to 1 hour and 20 minutes:

because I have an event that starts every 1 hour and 20 minutes.  

 

prontera,150,150,5	script	HourTimer	111,{
OnInit:
while( .@a != 1 ){
	delwaitingroom;
	waitingroom ""+gettimestr( "%H:%M:%S %p",15),0;
	sleep 1000;
}
end;

}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2357
  • Joined:  10/28/11
  • Last Seen:  

prontera,150,150,5	script	HourTimer	111,{
	.time = gettimetick(2) + 4800; // 1 hours 20 minutes from current time
	end;

OnTimer1000:
	delwaitingroom;
	if (.time > gettimetick(2))
		waitingroom ""+gettimestr( "%H:%M:%S %p", 15, .time), 0;
OnInit:
	initnpctimer;
	end;
}

something like this.

just set the duration when you want it to start.

.time = gettimetick(2) + 4800;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  245
  • Reputation:   92
  • Joined:  06/30/18
  • Last Seen:  

prontera,150,150,5	script	HourTimer	111,{
	end;

	OnInit:
	On7200000:
		initnpctimer;
		delwaitingroom;
		waitingroom("" + gettimestr("%H:%M:%S %p",15),0);
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...