Jump to content
  • 0
luxus2311

OnDay Problem

Question

I made this script so WoE could be activated at certain date of the month. But my problem is whenever the script is reloaded all of the enablenpc in "OnDay<Month><Day>:" are getting enabled. How can I stop it from enabling all the NPC and make it work at the time given on the Schedule?

-	script	WoEScheduler	-1,{
	OnDay0701:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0702:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0704:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0707:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0710:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0713:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay0716:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0719:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0722:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0725:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0728:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0729:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay0801:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0802:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0804:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0807:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0810:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0813:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay0816:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0819:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0822:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0825:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0828:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0829:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay0901:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0902:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0904:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0907:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0910:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0913:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay0916:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay0919:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay0922:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay0925:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay0928:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay0929:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1001:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1002:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1004:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1007:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1010:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1013:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1016:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1019:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1022:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1025:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1028:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1029:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1101:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1102:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1104:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1107:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1110:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1113:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1116:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1119:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1122:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1125:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1128:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1129:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1201:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1202:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1204:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1207:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1210:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1213:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;
		
	OnDay1216:
		enablenpc "WoECoreSystemProntera";
		end;
		
	OnDay1219:
		enablenpc "WoECoreSystemPayon";
		end;
		
	OnDay1222:
		enablenpc "WoECoreSystemGeffen";
		end;
		
	OnDay1225:
		enablenpc "WoECoreSystemAldebran";
		end;
		
	OnDay1228:
		enablenpc "WoECoreSystemArunafeltz";
		end;
		
	OnDay1229:
		enablenpc "WoECoreSystemSchwaltzvalt";
		end;

	}

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I can't reproduce your bug locally and npc_event_do_clock() seems to be working just fine. Most likely you have made changes to the source code and that broke this function

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, meko said:

I can't reproduce your bug locally and npc_event_do_clock() seems to be working just fine. Most likely you have made changes to the source code and that broke this function

Is there any wag that I can make it work by using DT_MONTH? It just need to be constantly checking the day instead.

Share this post


Link to post
Share on other sites
  • 0

you could manually check the day from your script with gettime(GETTIME_DAYOFYEAR)

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.