Jump to content
  • 0

Script Commands


Yaoi

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

Hi.
Just wanna know which script commands is used to check the server's day of the week.

i mean if i want to start a script automatically every Sunday, which script command should i use for it ?

it is for fixing this script... :
 

-	script	no3jobswoe	-1,{

OnInit:
	setmapflag "aldeg_cas02",mf_loadevent;
	end;

OnPCLoadMapEvent:
	.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_gvg_castle ) ) {
		if ( Class >= 4054 && gettime(3) == 21 ) {
			mes "Today only 2nds Jobs are allowed to enter the castle.";
			close2;
			warp "SavePoint",0,0;
		}
	}
	end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

Just add something like

"OnMonday:" before OnInit. For reference please see below. Pardon for the image as I'm replying through my mobile phone.

Screenshot_20170615-083534.thumb.png.712a9444268d4eb6bc8ead85f3533d57.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/13/14
  • Last Seen:  

Thanks Ninja, i will try.

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