Jump to content
  • 0

help @floating rate


blakbord

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

how to edit this script? I want the script to start on Friday x2 EXP and DROP rate for the whole day until Sunday.. thanks in advanced..

 

-    script    FloatingRates    -1,{

OnInit:
    // original Base/Job Exp and Drop Rates
    set .bexp_rate, 100; //Put you rate...
    set .jexp_rate, 100; //put you rate...
    set .ir_common, 50;
    set .ir_common_boss, 1;
    set .ir_heal, 50;
    set .ir_heal_boss, 1;
    set .ir_use, 50;
    set .ir_use_boss, 1;
    set .ir_eq, 50;
    set .ir_eq_boss, 1;
    set .ir_card, 100;
    set .ir_card_boss, 1;

OnHour12:
    if( !gettime(4) || ( gettime(4) == 6 && gettime(3) >= 12 ) || ( gettime(4) == 1 && gettime(3) < 12 ) ) {
        announce "Good News we're having x2 Drop Rate today until Sunday!",bc_all,0xFF6060;
        callsub L_ratio, 2;
    }
    else if( gettime(4) == 1 && gettime(3) == 12 ) {
        announce "x2 Drop Rate is finished!",bc_all,0xFF6060;
        callsub L_ratio, 1;
    }
    else
        callsub L_ratio, 1;
    end;

L_ratio:
    setbattleflag "base_exp_rate", .bexp_rate * 100 * getarg( 0 );
    setbattleflag "job_exp_rate", .jexp_rate * 100 * getarg( 0 );
    setbattleflag "item_rate_common", .ir_common * 100 * getarg( 0 );
    setbattleflag "item_rate_common_boss", .ir_common_boss * 100 * getarg( 0 );
    setbattleflag "item_rate_heal", .ir_heal * 100 * getarg( 0 );
    setbattleflag "item_rate_heal_boss", .ir_heal_boss * 100 * getarg( 0 );
    setbattleflag "item_rate_use", .ir_use * 100 * getarg( 0 );
    setbattleflag "item_rate_use_boss", .ir_use_boss * 100 * getarg( 0 );
    setbattleflag "item_rate_equip", .ir_eq * 100 * getarg( 0 );
    setbattleflag "item_rate_equip_boss", .ir_eq_boss * 100 * getarg( 0 );
    setbattleflag "item_rate_card", .ir_card * 100 * getarg( 0 );
    setbattleflag "item_rate_card_boss", .ir_card_boss * 100 * getarg( 0 );
    atcommand "@reloadmobdb";
    end;
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

change

OnHour12:
    if( !gettime(4) || ( gettime(4) == 6 && gettime(3) >= 12 ) || ( gettime(4) == 1 && gettime(3) < 12 ) ) {

into this

OnHour00:
    if( gettime(4) == 0 || gettime(4) == 5 || gettime(4) == 6 ) {
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

thank you sir Emistry..

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