Jump to content
  • 0

double exp mod help


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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;
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Easiest way to do so without editing the script too much should be just adding another

 

atcommand "@reloadbattleconf";

 

line here:

    if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) {
        atcommand "@reloadbattleconf";
        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;
    }

Or you could make it even simpler and just

 if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) {
    setbattleflag("base_exp_rate",1400);
    setbattleflag("job_exp_rate",1400);
    atcommand "@reloadmobdb";
    end;
  }
Edited by Nova
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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