Jump to content
Limestone

Suggestion - @refinerate and @reloadrefinerate command

Recommended Posts

@refinerate

this command will show what is your current refine rate in your server.

@reloadrefinerate

this command will reload your db/re/refine_db.txt and db/pre-re/refine_db.txt.

i hope my suggestion will accepted.

Link to comment
Share on other sites

That's what I'm considering a 'custom content'. While @reloadrefinerate can be considered redundant because @reloadstatusdb does the same.

Link to comment
Share on other sites

isnt we got this...?

*getequippercentrefinery(<equipment slot>)

This function calculates and returns the percent value chance to successfully
refine the item found in the specified equipment slot of the invoking character
by +1. There is no actual formula, the success rate for a given weapon level of
a certain refine level is found in the db/refine_db.txt file. For a list of
equipment slots see 'getequipid'.

These values can be displayed for the player to see, or used to calculate the
random change of a refine succeeding or failing and then going through with it
(which is what the official NPC refinery scripts use it for)


or you can just simple create a simple npc that show the refine rate ....

and add a bindatcmd to trigger this message...

Link to comment
Share on other sites

Well, this was fun to make. :>

-	script	refinerate	-1,{
OnInit:
bindatcmd("refinerate",strnpcinfo(0)+"::OnCalc");
end;
OnCalc:
if (!getarraysize(.rate)) {
	set [email protected],2136; // An item the player won't have, and has no equip restrictions
	set [email protected],EQI_HAND_L; // Equip slot of [email protected]

	getitem [email protected],1;
	equip [email protected];
	for(set [email protected],0; [email protected]<20; set [email protected],[email protected]+1) {
		set .rate[[email protected]], getequippercentrefinery([email protected]);
		successrefitem [email protected];
	}
	delitem [email protected],1;
}
mes "[Refine Rates]";
for(set [email protected],0; [email protected]<20; set [email protected],[email protected]+1)
	mes "[ +"+([email protected]+1)+" ] "+.rate[[email protected]]+"%";
close;
}

That's extremely hackish, but you get the idea. xD

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.