Jump to content
  • 0
glemor123

double exp mod help

Question

why is it that every day +50% added to the exp mod. for example the original rate is 7x. then when friday comes, it will turn to 14x then when saturday comes it turned to 21x.

 

I want that when friday-sunday it will only turn to 14x

 

here is the script

 

 

-	script	FloatingRates	-1,{OnInit:OnClock0001:	if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) {		set .br,getbattleflag("base_exp_rate")*2;		set .jr,getbattleflag("job_exp_rate")*2;		setbattleflag("base_exp_rate"), .br;		setbattleflag("job_exp_rate"), .jr;		atcommand "@reloadmobdb";		end;	}	if(gettime(4) == 0)	{		announce "Weekend Exp Event is finished",bc_all,0xFF6060;		atcommand "@reloadbattleconf";		atcommand "@reloadmobdb";	}	end;OnMinute02:	if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 )	{		announce "Weekend Exp Event(Base:"+.br/100+"x, Job:"+.jr/100+"x) is active!!",bc_all,0xFF6060;	}	end;} 
Edited by glemor123

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Remove

  set .br,getbattleflag("base_exp_rate")*2;        set .jr,getbattleflag("job_exp_rate")*2;
Change

setbattleflag("base_exp_rate"), .br;        setbattleflag("job_exp_rate"), .jr;
To

setbattleflag("base_exp_rate"), 1400;        setbattleflag("job_exp_rate"), 1400;

Share this post


Link to post
Share on other sites
  • 0

 

Remove

  set .br,getbattleflag("base_exp_rate")*2;        set .jr,getbattleflag("job_exp_rate")*2;
Change

setbattleflag("base_exp_rate"), .br;        setbattleflag("job_exp_rate"), .jr;
To

setbattleflag("base_exp_rate"), 1400;        setbattleflag("job_exp_rate"), 1400;

@Dastgir I think It's now working but there is a problem in announcing

 

174pys.png

Share this post


Link to post
Share on other sites
  • 0

 announce "Weekend Exp Event(Base:"+.br/100+"x, Job:"+.jr/100+"x) is active!!",bc_all,0xFF6060;
 

to 

 

 announce "Weekend Exp Event(Base:14x, Job:14x) is active!!",bc_all,0xFF6060;

Share this post


Link to post
Share on other sites
  • 0

@@Nova.. I've got a problem It started by thursday, It should Start by Friday.

-	script	FloatingRates	-1,{OnInit:OnClock0001:	if(gettime(4)==4  || gettime(4)==5  || gettime(4)==6 ) {setbattleflag("base_exp_rate"), 1400;        setbattleflag("job_exp_rate"), 1400;		atcommand "@reloadmobdb";		end;	}	if(gettime(4) == 1) 	{		announce "Weekend Exp Event is finished",bc_all,0xFF6060;		atcommand "@reloadbattleconf";		atcommand "@reloadmobdb";	}	end;OnMinute02:	if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 )	{		announce "Weekend Exp Event(Base: 14x, Job: 14x) is active!!",bc_all,0xFF6060;	}	end;}

Share this post


Link to post
Share on other sites
  • 0

Remove the gettime(4)==4 in both sections.

 

if( gettime(4)==5 || gettime(4)==6 )

Edited by Nova

Share this post


Link to post
Share on other sites
  • 0
-	script	FloatingRates	-1,{OnInit:OnClock0001:	if(gettime(4)==5  || gettime(4)==6 ) {setbattleflag("base_exp_rate"), 1400;        setbattleflag("job_exp_rate"), 1400;		atcommand "@reloadmobdb";		end;	}	if(gettime(4) == 1) 	{		announce "Weekend Exp Event is finished",bc_all,0xFF6060;		atcommand "@reloadbattleconf";		atcommand "@reloadmobdb";	}	end;OnMinute02:	if( gettime(4)==5 || gettime(4)==6 )	{		announce "Weekend Exp Event(Base: 14x, Job: 14x) is active!!",bc_all,0xFF6060;	}	end;}

will this trigger on 00:01am friday? then end on sunday 11:59pm?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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