Jump to content
  • 0

SetBattleFlag cause map crash


Surefirer

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

The reason why I post here instead of open an issue on git is I want to make sure it is not my problem.

I am useing the lastest Ra, renew. client is 20180831.

My script is below:

Quote

-	script	DoubleExp_Event	-1,{
	OnClock2000:
	OnClock0200:
	
	if((gettime(DT_DAYOFWEEK) == FRIDAY) && (gettime(DT_HOUR) >= 20 && gettime(DT_HOUR) < 24)	||
		(gettime(DT_DAYOFWEEK) == SATURDAY) && (gettime(DT_HOUR) >= 20 && gettime(DT_HOUR) < 24)	||
		(gettime(DT_DAYOFWEEK) == SUNDAY) && (gettime(DT_HOUR) >= 20 && gettime(DT_HOUR) < 24))	{
		
		setBattleFlag "base_exp_rate",4500;
		setBattleFlag "job_exp_rate",4500,true;
                                                                                               
		end;
	}
	
	if ((gettime(DT_DAYOFWEEK) == SATURDAY) && (gettime(DT_HOUR) == 2) ||
		(gettime(DT_DAYOFWEEK) == SUNDAY) && (gettime(DT_HOUR) == 2) ||
		(gettime(DT_DAYOFWEEK) == MONDAY) && (gettime(DT_HOUR) == 2))	{
		
		setBattleFlag "base_exp_rate",3000;
		setBattleFlag "job_exp_rate",3000,true;
		
		end;
	}
	end;
}

 

I have this event script in my server. Every Friday, Saturday, Sunday from 20:00 - 2:00. The server will have 1.5 exp boost event.

The event will trigger when it starts with no issue, but it will make the map server crash when its end when is 2:00. The server will crash and it will restart.

I have been tested this in my live server for couple weeks before I post this just want to make sure its not a one time thing. If its my script error that makes the crash, can some one please help me fix the script, but I don't think there is any problem in my script. If this issue happen in your server, please let me know as well, so maybe I can open an issue on git. Thanks.

Edited by Surefirer
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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