Jump to content
  • 0

Floating Droprates.


cross10hunter

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

Hi I am using this Floating drop rate script. but when I type @mobinfo of a boss the boss cards and TCG and everything did not increase the drop rate. I just wanted it to be every Weekend it will increase droprate automatically. I am doing it manually everytime it gets to weekends. here is the script: 

// Author: _Okuz_
// Version: 1.0.2 - 20:40 14/10/2016
-	script	Weekend Floating Exp	-1,{

OnInit:
	// Setup the rates you want to double here...
	setarray .server_conf$[0], "base_exp_rate", getbattleflag("base_exp_rate"), 
				   "job_exp_rate", getbattleflag("job_exp_rate"), 
				   "item_rate_common", getbattleflag("item_rate_common"),
				   "item_rate_heal", getbattleflag("item_rate_heal"), 
				   "item_rate_use", getbattleflag("item_rate_use"), 
				   "item_rate_equip", getbattleflag("item_rate_equip"), 
				   "item_rate_card", getbattleflag("item_rate_card"),
 				   "item_rate_mvp", getbattleflag("item_rate_mvp"), 
				   "item_rate_adddrop", getbattleflag("item_rate_adddrop"), 
				   "item_rate_treasure", getbattleflag("item_rate_treasure");

	// To force the event to run even if you have to shutdown your server for some reason...
	if (gettime(4) != 5 && gettime(4) != 6 && gettime(4) != 0) end;

OnFri0000:
	// start double rates on Friday 00:00
	if (!.active)
		callsub(S_changeRates, 2);
	end;

OnMon0000:
	// stop double rates on Monday 00:00
	callsub(S_changeRates, 1); end;

// Arg(0): mult
S_changeRates:
	set .@size, getarraysize(.server_conf$);
	for (set .@i, 0; .@i < .@size; set .@i, .@i + 2) {
		setbattleflag .server_conf$[.@i], atoi(.server_conf$[.@i + 1]) * getarg(0);
	}
	set .active, !.active;
	atcommand "@reloadmobdb";
	announce "[Event] : Rates " + (.active ? "increased" : "restored") + "!",bc_all,0xFF6060;
	return;
}

BTW, i want it to be x3 instead of x2 on the script. or if you have a better working script pls link it to me thanks!. 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

On 9.12.2017 at 8:07 AM, cross10hunter said:

Hi I am using this Floating drop rate script. but when I type @mobinfo of a boss the boss cards and TCG and everything did not increase the drop rate. I just wanted it to be every Weekend it will increase droprate automatically. I am doing it manually everytime it gets to weekends. here is the script: 


// Author: _Okuz_
// Version: 1.0.2 - 20:40 14/10/2016
-	script	Weekend Floating Exp	-1,{

OnInit:
	// Setup the rates you want to double here...
	setarray .server_conf$[0], "base_exp_rate", getbattleflag("base_exp_rate"), 
				   "job_exp_rate", getbattleflag("job_exp_rate"), 
				   "item_rate_common", getbattleflag("item_rate_common"),
				   "item_rate_heal", getbattleflag("item_rate_heal"), 
				   "item_rate_use", getbattleflag("item_rate_use"), 
				   "item_rate_equip", getbattleflag("item_rate_equip"), 
				   "item_rate_card", getbattleflag("item_rate_card"),
 				   "item_rate_mvp", getbattleflag("item_rate_mvp"), 
				   "item_rate_adddrop", getbattleflag("item_rate_adddrop"), 
				   "item_rate_treasure", getbattleflag("item_rate_treasure");

	// To force the event to run even if you have to shutdown your server for some reason...
	if (gettime(4) != 5 && gettime(4) != 6 && gettime(4) != 0) end;

OnFri0000:
	// start double rates on Friday 00:00
	if (!.active)
		callsub(S_changeRates, 2);
	end;

OnMon0000:
	// stop double rates on Monday 00:00
	callsub(S_changeRates, 1); end;

// Arg(0): mult
S_changeRates:
	set .@size, getarraysize(.server_conf$);
	for (set .@i, 0; .@i < .@size; set .@i, .@i + 2) {
		setbattleflag .server_conf$[.@i], atoi(.server_conf$[.@i + 1]) * getarg(0);
	}
	set .active, !.active;
	atcommand "@reloadmobdb";
	announce "[Event] : Rates " + (.active ? "increased" : "restored") + "!",bc_all,0xFF6060;
	return;
}

BTW, i want it to be x3 instead of x2 on the script. or if you have a better working script pls link it to me thanks!. 

As for the x3, exchange 

callsub(S_changeRates, 2);

With

callsub(S_changeRates, 3);

Not sure about the other error yet.
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...