Jump to content
  • 0

1 hour timer Waiting room


Question

Posted

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;

}

 

2 answers to this question

Recommended Posts

  • 0
Posted
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;

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...