Jump to content
  • 0

Question

Posted

Hello can someone help me to make this

what i want to happen is waiting room on npc

but it will fetch or get the 

/* Time Events */
/* On<weekday><hour><minute>: */
OnWhisperGlobal:
OnSun1200:
OnMon1200:
OnTue1200:
OnWed2233:
OnThu1200:
OnFri1200:
OnSat1200:



for example in waiting room

Example today is Wednesday
it will get the time for Thursday

Activate in (TIME)

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

image.png.669bdcf24aaefd389d5eb42f00ea6439.png
This will be automatically updated once the server time reach 00:00.

prontera,161,185,3	script	Day of The Day	100,{
	end;
	OnInit:
		while(1){
			.@day = gettime(DT_DAYOFWEEK);
			if(.@day == 0)
				.@day$ = "Sunday";
			if(.@day == 1)
				.@day$ = "Monday";
			if(.@day == 2)
				.@day$ = "Tuesday";
			if(.@day == 3)
				.@day$ = "Wednesday";
			if(.@day == 4)
				.@day$ = "Thursday";
			if(.@day == 5)
				.@day$ = "Friday";
			if(.@day == 6)
				.@day$ = "Saturday";
			waitingroom "Today is "+.@day$+"!",0;
			sleep 100;
			delwaitingroom;
		}
	end;
}

 

Edited by KazumaSatou

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...