Jump to content
  • 0

Floating Rates Question


Question

Posted

-    script    FloatingRates    -1,{
OnPCLoginEvent:
OnPCLogoutEvent:
if (getusers(1) >= 5) {
if (getbattleflag("base_exp_rate")==10000 && getbattleflag("job_exp_rate")==10000) {
set $@brate,rand(15000,30000);
set $@jrate,rand(15000,30000);
set $@drate,2000;
setbattleflag "base_exp_rate", $@brate;
setbattleflag "job_exp_rate", $@jrate;
atcommand "@reloadmobdb";
announce "Current floating rates are: "+($@brate/100)+"x"+($@jrate/100)+"x"+($@drate/100)+"x",bc_blue|bc_all;
}
} else if (getusers(1) < 4) {
if (getbattleflag("base_exp_rate")>10000 || getbattleflag("job_exp_rate")>10000) {
set $@brate,10000;
set $@jrate,10000;
set $@drate,2000;
setbattleflag "base_exp_rate", $@brate;
setbattleflag "job_exp_rate", $@jrate;
atcommand "@reloadmobdb";
announce "Current normal rates are: "+($@brate/100)+"x"+($@jrate/100)+"x"+($@drate/100)+"x",bc_blue|bc_all;
}
}
end;
}

how do i add a dialog npc that shows the status of this script? and why is it that only base and job battleflags are set? thanks

2 answers to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...