Jump to content
  • 0
chadness

H>Floating Rates Days

Question

Hello i would like to ask how to set this floating rate every day and every 1pm-2pm and every 7pm to 8pm

-    script    FloatingRates    -1,{
OnInit:
//add any other HOURS
OnClock0000:
       if((gettime(4) == 6 || gettime(4) == 7)) { // Saturday, Sunday
//-------------------
    atcommand "@reloadbattleconf";
    //Base exp
    setbattleflag("base_exp_rate",1200);
    //Job exp
    setbattleflag("job_exp_rate",1200);
    //Drops
    setbattleflag("item_rate_common",600);
    setbattleflag("item_rate_heal",600);
    setbattleflag("item_rate_use",600);
    setbattleflag("item_rate_equip",600);
    //setbattleflag("item_rate_card",400);
    //setbattleflag("item_rate_common_boss",1);
    //setbattleflag("item_rate_heal_boss",1);
    //setbattleflag("item_rate_use_boss",1);
    //setbattleflag("item_rate_equip_boss",1);
    //setbattleflag("item_rate_card_boss",1);
    //setbattleflag("item_rate_common_mvp",1);
    //setbattleflag("item_rate_heal_mvp",1);
    //setbattleflag("item_rate_use_mvp",1);
    //setbattleflag("item_rate_equip_mvp",1);
    //setbattleflag("item_rate_card_mvp",1);
    //setbattleflag("item_rate_mvp",1);
    //setbattleflag("item_rate_adddrop",1);
    //setbattleflag("item_rate_treasure",1);
    //setbattleflag("item_rate_equip",1); // Apply new rates to configs set above
    //we don't change card drops rate, because these values won't change them anyway
    
    announce "Floating Rates every Saturday & Sunday Enjoy!",bc_all,0xFFFF00;
    announce "Increased Base and Job EXP by 200%.",bc_all,0xFFFF00;
    announce "Increased Normal Drops by 100%.",bc_all,0xFFFF00;
    announce "Card rates are fixed in 0.04%.",bc_all,0xFFFF00;
    end;

OnClock0001:
//OnMon:
    if((gettime(4) == 1)) { // Monday
    announce "Double Experience & Drop rates already finish!",bc_blue|bc_all;
    atcommand "@reloadbattleconf";
    end;
        }
    }
}

 

Edited by Mael
Use codebox
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
-	script	FloatingRates	-1,{
OnInit:
//add any other HOURS
OnClock0100:
OnClock1900:
//-------------------
    atcommand "@reloadbattleconf";
    //Base exp
    setbattleflag("base_exp_rate",1200);
    //Job exp
    setbattleflag("job_exp_rate",1200);
    //Drops
    setbattleflag("item_rate_common",600);
    setbattleflag("item_rate_heal",600);
    setbattleflag("item_rate_use",600);
    setbattleflag("item_rate_equip",600);
    //setbattleflag("item_rate_card",400);
    //setbattleflag("item_rate_common_boss",1);
    //setbattleflag("item_rate_heal_boss",1);
    //setbattleflag("item_rate_use_boss",1);
    //setbattleflag("item_rate_equip_boss",1);
    //setbattleflag("item_rate_card_boss",1);
    //setbattleflag("item_rate_common_mvp",1);
    //setbattleflag("item_rate_heal_mvp",1);
    //setbattleflag("item_rate_use_mvp",1);
    //setbattleflag("item_rate_equip_mvp",1);
    //setbattleflag("item_rate_card_mvp",1);
    //setbattleflag("item_rate_mvp",1);
    //setbattleflag("item_rate_adddrop",1);
    //setbattleflag("item_rate_treasure",1);
    //setbattleflag("item_rate_equip",1); // Apply new rates to configs set above
    //we don't change card drops rate, because these values won't change them anyway
    
    announce "Floating Rates every Saturday & Sunday Enjoy!",bc_all,0xFFFF00;
    announce "Increased Base and Job EXP by 200%.",bc_all,0xFFFF00;
    announce "Increased Normal Drops by 100%.",bc_all,0xFFFF00;
    announce "Card rates are fixed in 0.04%.",bc_all,0xFFFF00;
    end;

OnClock0200:
OnClock2000:
    announce "Double Experience & Drop rates already finish!",bc_blue|bc_all;
    atcommand "@reloadbattleconf";
    end;
}

 

  • Upvote 1
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...

Important Information

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