lionellex Posted September 17, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Share Posted September 17, 2016 Guys, I would like to ask how do I edit this floating rates script from Stolao ? //===== EinherjarRO Scripts ================================== //= Floating Rates //===== By: ================================================== //= Stolao //===== Current Version: ===================================== //= 1.07 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Floating Rates //===== Uses: ================================================ //= Exp and Item Rates Change Dynaimcally based on Online //= Player count and a configurable variables //===== Comments: ============================================ //= [Stolao] //= Optimize] //= In Game Menu / @Command? //===== Additional Comments: ================================= //= 1.00 Origional Make //= 1.01 Removed Unessisary Line //= 1.02 Added Config //= 1.03 Made auto collect base rates //= 1.04 Fixed a bug where would keep increasing every hour //= 1.05 Made Multipliers into an array //= 1.06 Fixed typos //= 1.07 Fixed Set -> setarray //===== Contact Ifo: ========================================= //= [Stolao] //= Email: [email protected] //============================================================ - script floating_rate -1,{ OnMinute30: set .@i, getusers(1); set .@r, rand(.Random[0],.Random[1]); setbattleflag( "base_exp_rate", .R[0] + (.@r + .@i) * .ExpMulti[0]); setbattleflag( "job_exp_rate", .R[1] + (.@r + .@i) * .ExpMulti[1]); setbattleflag( "item_rate_common", .R[2] + (.@r + .@i) * .ItemMulti[0]); setbattleflag( "item_rate_heal", .R[3] + (.@r + .@i) * .ItemMulti[1]); setbattleflag( "item_rate_use", .R[4] + (.@r + .@i) * .ItemMulti[2]); setbattleflag( "item_rate_equip", .R[5] + (.@r + .@i) * .ItemMulti[3]); atcommand "@reloadmobdb"; Announce "[Server]: Rates are now "+getbattleflag("base_exp_rate")/100+""+((getbattleflag("base_exp_rate")%100)?"."+getbattleflag("base_exp_rate")%100:"")+"/"+getbattleflag("job_exp_rate")/100+""+((getbattleflag("job_exp_rate")%100)?"."+getbattleflag("job_exp_rate")%100:"")+"/"+getbattleflag("item_rate_common")/100+""+((getbattleflag("item_rate_common")%100)?"."+getbattleflag("item_rate_common")%100:"")+" !",8; end; OnInit: // Multiplier Per Player and .Random // Each point is .01x Increase in exp rates // [0] = Base Exp // [1] = Job Exp // eg: rand = 75 , getuser = 100, Multi = 3 // rates will be increase by 5.25x setarray .ExpMulti ,3,3; // Multiplier Per Player and .Random // Each point is .01x Increase in exp rates // [0] = Common Items // [1] = Healing Items // [2] = Useable Items // [3] = Equipment Items // eg: rand = 75 , getuser = 100, Multi = 1 // rates will be increase by 1.75x setarray .ItemMulti,1,1,1,1; // The Random Variable Min and Max // [0] = Min // [1] = Max setarray .Random,0,100; end; OnInterIfInitOnce: // Dont Touch // Used to collect the base rates setarray .R, getbattleflag("base_exp_rate"), getbattleflag("job_exp_rate"), getbattleflag("item_rate_common"), getbattleflag("item_rate_heal"), getbattleflag("item_rate_use"), getbattleflag("item_rate_equip"); end; } My server's default rates are 2/2/1, I want this script to run every 4 hours in a day, but in that 4 hours only 2 hours of floating rates. Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted September 18, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Yesterday at 04:48 PM Share Posted September 18, 2016 This will be a better base to start with them mine, minesnnotba standard floating rates as one of those is in the emulator already https://github.com/rathena/rathena/blob/master/npc/custom/etc/floating_rates.txt Quote Link to comment Share on other sites More sharing options...
0 lionellex Posted September 18, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Author Share Posted September 18, 2016 (edited) This will be a better base to start with them mine, minesnnotba standard floating rates as one of those is in the emulator already https://github.com/rathena/rathena/blob/master/npc/custom/etc/floating_rates.txt Thanks sir, but I'm not sure if this is correct. set $@brate,rand(200,350); set $@jrate,rand(200,350); set $@drate,rand(100,150); ^ But the announcement is 151/136/23 [Nvm, SOLVED it.] But, can I set it on Tuesday, Friday, Saturday & Sunday only? Lasts whole day for this 4 days. Edited September 18, 2016 by lionellex Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted September 18, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Yesterday at 04:48 PM Share Posted September 18, 2016 I know your new so I'm going to give you a bit of advice try doing yourself a bit and showing when you tried if it failed in a request, showing your trying to learn to do yourself really goes a long way in getting help and improving yourself as well. This is the most useful thing you will get for learning yourself https://github.com/rathena/rathena/blob/master/doc/script_commands.txt A few of us hate spoon feeding and will ignore a message. Quote Link to comment Share on other sites More sharing options...
0 lionellex Posted September 20, 2016 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 09/10/16 Last Seen: October 9, 2016 Author Share Posted September 20, 2016 I know your new so I'm going to give you a bit of advice try doing yourself a bit and showing when you tried if it failed in a request, showing your trying to learn to do yourself really goes a long way in getting help and improving yourself as well. This is the most useful thing you will get for learning yourself https://github.com/rathena/rathena/blob/master/doc/script_commands.txt A few of us hate spoon feeding and will ignore a message. Okay, so I tried something here. http://pastebin.com/2HfgKsbf I basically, combine some floating script that I found in rathena, and also looked at the WOE script in server. Can you give me some advice, where I can improve it to match my needs? Quote Link to comment Share on other sites More sharing options...
Question
lionellex
Guys, I would like to ask how do I edit this floating rates script from Stolao ?
My server's default rates are 2/2/1, I want this script to run every 4 hours in a day, but in that 4 hours only 2 hours of floating rates.
Link to comment
Share on other sites
4 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.