Jump to content
  • 0

H>Floating Rates


Sallycantdance

Question


  • Group:  Members
  • Topic Count:  231
  • Topics Per Day:  0.14
  • Content Count:  810
  • Reputation:   12
  • Joined:  12/04/20
  • Last Seen:  

hello i would like to ask how to adjust this script everytime i reloadscripts the the announcer of the floating rates also appear even the time of it has not started yet also the rates already changes how can i fix this this is the script

 

Quote

//ADD DATE/TIME
-    script FloatingRates    -1,{
OnInit:
OnClock0540:
OnClock0545:
    $@brate = 600;    // new base rate
    $@jrate = 600;    // new job rate
//    $@mrate = 150;  // new mob rate
//    $@drate = 100;    // new drob rate

    //Base exp
    setbattleflag("base_exp_rate", $@brate);

    //Job exp
    setbattleflag("job_exp_rate", $@jrate);

    // Mob Rate
//    setbattleflag("mob_spawn_delay", $@mrate);

    //Drops
//    setbattleflag("item_rate_common", $@drate);
//    setbattleflag("item_rate_heal", $@drate);
//    setbattleflag("item_rate_use", $@drate);
//    setbattleflag("item_rate_equip", $@drate);
    //we don't change card drops rate, because these values won't change them anyway
    atcommand "@reloadmobdb";
    initnpctimer();    // start the timer
    announce "Floating rates started!",bc_all,0xFFFF00;
    announce "Current rates: Base Rate 4.0x | Job Rate 4.0x",bc_all,0xFFFF00; //| Mob Rate 1.5x
    end;
// ===================================================== //
//OnTimer3600000:        // once timer reaches 3600000 milliseconds (1 hour)
//OnTimer60000:        // once timer reaches 3600000 milliseconds (1 hour) orig
OnTimer30000:        // once timer reaches 3600000 milliseconds (1 hour)
    $@brate = 500;    //reset the rates
    $@jrate = 500;
//    $@mrate = 100;
//    $@drate = 300;

    //Base exp
    setbattleflag("base_exp_rate", $@brate);

    //Job exp
    setbattleflag("job_exp_rate", $@jrate);

    // Mob Rate
//    setbattleflag("mob_spawn_delay", $@mrate);

    //Drops
//    setbattleflag("item_rate_common", $@drate);
//    setbattleflag("item_rate_heal", $@drate);
//    setbattleflag("item_rate_use", $@drate);
//    setbattleflag("item_rate_equip", $@drate);
    
    //we don't change card drops rate, because these values won't change them anyway
//    atcommand "@reloadmobdb";
    atcommand "@reloadbattleconf";
    stopnpctimer();    // stop the timer
    announce "Floating rates ended, Rates are back to normal.",bc_all,0xFFFF00;
    end;
}
// ===================================================== //

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/19/15
  • Last Seen:  

-    script FloatingRates    -1,{
OnInit:

Change location of OnInit or coment (//)

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