Jump to content
  • 0

Floating Rates Problem


Titan

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   4
  • Joined:  11/23/12
  • Last Seen:  

I'm using this script in my server but i think it is not triggering the end part. I configure it to start and stop every 3hrs. i mean 3hrs double rates and 3hrs normal rates.

 

Can you check if it is working fine with you or I do something wrong to make it not working right?

 

 

//===== rAthena Script =======================================

//= Floating Rates
//===== Support ==============================================
//= to know how to change the time settings
//===== By: ================================================== 
//= Mysterious
//===== Current Version: =====================================
//= 1.5
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= EXP Doubles on Weekends
//===== Other Information: ===================================
// Every weekend, starting on Fridays, players will gain
// double EXP. The script will announce when Double EXP has
// begun so that players know.
//===== TODO: ================================================
// 1) Optimize script a little more
// 2) Make script more friendly
//===== Additional Comments: =================================
//= v1.0 - Intitial Re-release [Mysterious]
//= v1.1 - Made it so that it starts on Friday, ends on Sunday [Mysterious]
//= v1.2 - Optimized entire script [Mysterious]
//= v1.3 - Made it more friendly [Mysterious]
//= v1.4 - Optimized [Mysterious]
//= v1.5 - Adjusted a few things [Mysterious]
//============================================================
- script FloatingRates -1,{
 
 
OnInit:
//Note: You can always set a standard exp. rate or set it as a rand
set $@brate, 30000; // Change the value here for your Base Experience
set $@jrate, 30000; // Change the value here for your Job Experience
set $@drate, 12000;
// =========================
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
if( gettime(4)== 0 ) { //Saturday
//Base Experience
setbattleflag("base_exp_rate",$@brate);
//Job Experience
setbattleflag("job_exp_rate",$@jrate);
//Drops
setbattleflag("item_rate_common",$@drate);
setbattleflag("item_rate_heal",$@drate);
setbattleflag("item_rate_use",$@drate);
setbattleflag("item_rate_equip",$@drate);
// Reload the database
atcommand "@reloadmobdb";
 
announce "Rate Manager: X2 EXP and DROP rates has been implemented! Enjoy!",bc_all,0xFF6060;
}
end;
}
 
 
- script FloatingAnn#1 -1,{
 
OnClock0300:
OnClock0900:
OnClock1500:
OnClock2100:
if(gettime(4) == 0) { // On Saturday at 11:59pm server time, Double EXP event will end
announce "Rate Manager: Normal EXP and DROP rates has been implemented!",bc_all,0xFF6060;
setbattleflag("base_exp_rate", 15000 ); // Set this rates back to your regular server's rates
setbattleflag("job_exp_rate", 15000 ); // Set this rates back to your regular server's rates
//Drops
setbattleflag("item_rate_common", 6000 );
setbattleflag("item_rate_heal", 6000 );
setbattleflag("item_rate_use", 6000 );
setbattleflag("item_rate_equip", 6000 );
atcommand "@reloadmobdb";
}
 
end;
}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if( gettime(4)== 0 ) { //Saturday

remove this checking if you want it to work everyday.

by the way....  Saturday = 6 .. not 0 (sunday)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

Can someone help me w/ this one?

 

I never got this one right since the first time i tried to use it...

 

It starts on thursday and end on sat instead friday to sunday...

 

My rates are 7/7 BUT bosses are 5/5 so set a fixed rates will mess it up...

 

Can it work friday to sunday 14/14 - 10/10 then back to 7/7 - 5/5?

 

 
- script FloatingRates -1,{
 
 
OnInit:
//Note: You can always set a standard exp. rate or set it as a rand
set $@brate,1400; // Change the value here for your Base Experience
set $@jrate,1400; // Change the value here for your Job Experience
// =========================
OnClock0000:
if(gettime(4)==4  || gettime(4)==5  || gettime(4)==6 ) { // Friday, Saturday, Sunday 
//Base Experience
setbattleflag("base_exp_rate",$@brate);
//Job Experience
setbattleflag("job_exp_rate",$@jrate);
// Reload the database
atcommand "@reloadmobdb";
}
end;
}
 
// We will announce about the EXP rates every 01 Minute of every Hour so that player's know what's going on
- script FloatingAnn -1,{
 
//OnMinute01:
// if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) { // Friday, Saturday, Sunday
// announce "Double EXP is currently in affect with 1."+($@brate-100)+"x/1."+($@jrate-100)+"x rates!",bc_all,0xFF6060;
// }
//
//end;
//}
OnMinute01:
if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) { // Friday, Saturday, Sunday
announce "Double EXP is currently in affect!",bc_all,0xFF6060;
}
 
end;
}
 
- script FloatingAnn#1 -1,{
 
OnClock1159:
if(gettime(4) == 0) { // On Sunday at 11:59pm server time, Double EXP event will end
announce "Weekend Double EXP has finished!",bc_all,0xFF6060;
setbattleflag("base_exp_rate", 700 ); // Set this rates back to your regular server's rates
setbattleflag("job_exp_rate", 700 ); // Set this rates back to your regular server's rates
atcommand "@reloadmobdb";
}
 
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...