Limestone Posted November 24, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted November 24, 2012 @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 More sharing options...
clydelion Posted November 24, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted November 24, 2012 @reloadstatusdb reloads refine_db.txt this suggestion is more likely a custom content for me. Link to comment Share on other sites More sharing options...
Limestone Posted November 24, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted November 24, 2012 hmm how about the @refinerate? Link to comment Share on other sites More sharing options...
clydelion Posted November 24, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted November 24, 2012 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 More sharing options...
Limestone Posted November 24, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted November 24, 2012 so it is not accepted to implement in our svn? Link to comment Share on other sites More sharing options...
Emistry Posted November 25, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 25, 2012 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 More sharing options...
Limestone Posted November 25, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted November 25, 2012 Thanks for replying Emistry, but idk how to make that kind of script. Link to comment Share on other sites More sharing options...
Euphy Posted November 25, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted November 25, 2012 Well, this was fun to make. :> - script refinerate -1,{ OnInit: bindatcmd("refinerate",strnpcinfo(0)+"::OnCalc"); end; OnCalc: if (!getarraysize(.rate)) { set .@id,2136; // An item the player won't have, and has no equip restrictions set .@slot,EQI_HAND_L; // Equip slot of .@id getitem .@id,1; equip .@id; for(set .@i,0; .@i<20; set .@i,.@i+1) { set .rate[.@i], getequippercentrefinery(.@slot); successrefitem .@slot; } delitem .@id,1; } mes "[Refine Rates]"; for(set .@i,0; .@i<20; set .@i,.@i+1) mes "[ +"+(.@i+1)+" ] "+.rate[.@i]+"%"; close; } That's extremely hackish, but you get the idea. xD Link to comment Share on other sites More sharing options...
Limestone Posted November 25, 2012 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted November 25, 2012 oh my.. thank you euphy.. HAHA btw how to add more slots? Link to comment Share on other sites More sharing options...
Recommended Posts