Jump to content
  • 0

how to edit this floating rates?


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

hello, first of all advanced thank you and god bless...

 

ok... here it is..

 

i want a floating rates every 12pm to 6pm = x3 rates

and 9pm to 12am = x2 rates

and 2am to 6am = x3 rates

my normal rates is base 60x / equip 50x / item,misc 30x and card is 10%

 

can you please fix or edit this. thank you..

 

//===== rAthena Script =======================================
//= Floating Server Rates
//===== By: ==================================================
//= Lupus
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: =========================================
//= It's a simply example of setbattleflag
//= This script will change your server rates from 1x to 1.5x every 6 hours
//= Note: It doesn't affect Card granted drops, MVP & Treasure Chests drops ^_-
//=       It also doesn't affect CARD drops, because they are just 0.01%
//===== Additional Comments: =================================
//= You can make incredible scripts with 'setbattleflag'!
//============================================================
 
//- script FloatingRates -1,{
OnInit:
//add any other HOURS
OnHour12:
OnHour18:
OnHour21:
OnHour24:
//-------------------
set $@brate,rand(24000,30000);
set $@jrate,rand(24000,30000);
set $@drate,rand(24000,30000);
//Base exp
setbattleflag("base_exp_rate",$@brate);
//Job exp
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);
//we don't change card drops rate, because these values won't change them anyway
atcommand "@reloadmobdb";
 
announce "Current Rune-Midgard rates are: 1."+($@brate-100)+"x 1."+($@jrate-100)+"x 1."+($@drate-100)+"x",bc_all,0xFF6060;
end;
}

please help, up for this thread. hehe


help help help.. please

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

well well you already have a sample in this script.. since it's script support here well what advise could I give you.. try something? and I will help you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i think there's something wrong.

 

coz 24hrs working.. script not follow my time into 12pm-6pm then 9pm - 12am.. script not follow that time,. 24hrs same rates again.. after that time, floating rates is not disable or i mean rates is not return into my orig. rates x60..

 

sorry for my bad english. hope u understand

thanks


and i dont know how to put 12pm - 6pm x3 rates only then 6am - 9am x5 rates

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script FloatingRates -1,{

OnInit:

// save original values

.mydroprate =

.exprate =

.jobrate =

if ( gettime(3) > 2 && gettime(3) < 6 )// check if event hour x3 ?

goto OnHour02;

else if ...

goto ...

else {// set original value

setbattleflag( "base_exp_rate",.exprate );

etc..

}

end;

OnHour02:

// event x3

setbattleflag( "base_exp_rate",(.exprate * 3) );

etc..

end;

OnHour06:

// end of x3 --> original values

setbattleflag( "base_exp_rate",.exprate );

etc..

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

-	script	FloatingRates	-1,{
OnInit:
// save original values
	.mydroprate = 
	.exprate = 
	.jobrate = 
	
	if ( gettime(3) > 2 && gettime(3) < 6 )// check if event hour x3 ?
		goto OnHour02;
	else if ...
		goto ...
	else {// set original value
		setbattleflag( "base_exp_rate",.exprate );
		etc..
	}
	end;

OnHour02:
// event x3
	setbattleflag( "base_exp_rate",(.exprate * 3) );
	etc..
	end;
OnHour06:
// end of x3 --> original values
	setbattleflag( "base_exp_rate",.exprate );
	etc..
	end;
}

so how to edit this sir? i can't unhderstand... sorry...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

-	script	FloatingRates	-1,{
OnInit:
// save original values
	.mydroprate = 
	.exprate = 
	.jobrate = 
	
	if ( gettime(3) > 2 && gettime(3) < 6 )// check if event hour x3 ?
		goto OnHour02;
	else if ...
		goto ...
	else {// set original value
		setbattleflag( "base_exp_rate",.exprate );
		etc..
	}
	end;

OnHour02:
// event x3
	setbattleflag( "base_exp_rate",(.exprate * 3) );
	etc..
	end;
OnHour06:
// end of x3 --> original values
	setbattleflag( "base_exp_rate",.exprate );
	etc..
	end;
}

how to edit? please thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   1
  • Joined:  12/17/11
  • Last Seen:  

You can edit the rates at
 

set $@brate,rand(24000,30000);
set $@jrate,rand(24000,30000);
set $@drate,rand(24000,30000);

and change the 24000 to your desired minimum rates, 30000 to your desired maximum rates.

brate = base exp rate, jrate = job and drate = drop.

Check your configuration, the minimum should be higher than your default rate. (Else it is not a bonus if you get lower rate than the default, right?)

 

Anyway, Sir Capuche giving you the custom script as you requested but you still need to add some more codes because it's incomplete.

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