norightinfo
-
Content Count
12 -
Joined
-
Last visited
Posts posted by norightinfo
-
-
4 hours ago, Kuya Jeo said:I think, they removed this function in hercules. i dont know why.. but old hercules has this kind of function...ο»Ώ
Oh, I see. that's too bad, I really love Hercules performance and script designed compared to rAthena (my opinion), is this how the Hercules be going forward? or are there any plans on adding it back?, I can't seems to find articles about it here. Is there a plugins that's similar to adding drop rate bonus to the item?
-
Hi Herc's,
I was just wondering if you have any workaround on the giving an item bonus droprate like the one in rAthena:
bonus2 bDropAddRace,r,x; Adds x% to player's drop rate when killing a monster with race r. bonus2 bDropAddClass,c,x; Adds x% to player's drop rate when killing a monster with class c.
I already check some of the post regarding this function, but to no avail. The only solution I found is used the field manual and bubble gum item script, however it is showing a status icon when equipping the item.
ΒOnEquipScript: <"sc_start SC_CASH_PLUSEXP,-1,10; sc_start SC_CASH_RECEIVEITEM,-1,10;"> OnUnequipScript: <" sc_end SC_CASH_PLUSEXP; sc_end SC_CASH_RECEIVEITEM;">
any workaround on this? like not showing the status icon and not affecting the original field manual and bubblegum item effect?
-
Hi so I have been testing the floating rates, and tried the gettimetick(); function, however it seems that it goes straight to else and I can't seem to figure out the logic issue
Here's my code:
Β- script FloatingRatesStart FAKE_NPC,{ OnInit: //add HOURS for starting OnClock0300: OnClock0900: OnClock1500: OnClock2100: //------------------- if((gettimetick(GETTIME_HOUR) >= 15 && gettimetick(GETTIME_HOUR) < 18) || (gettimetick(GETTIME_HOUR) >= 21 && gettimetick(GETTIME_HOUR) < 24) || (gettimetick(GETTIME_HOUR) >= 3 && gettimetick(GETTIME_HOUR) < 6)) { set $@brate,1000; set $@jrate,1000; set $@drate,500; //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 "The floatings rates has started, rates are: 10x 10x 5x",bc_all,0xFF6060; end; } else { set $@brate,500; set $@jrate,500; set $@drate,300; //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 "The floating rates has ended, rates are back to normal!",bc_all,0xFF6060; end; } }
Β
-
Hi~
Okay so the script works and I have been checking on this for awhile, However I notice something.
Everytime I close the emulator and re-run it again, the floating rates resets back to the server exp setup.
Example:
at 3PM, the floating rates starts with the adjusted experience set, however at around 3PM and 4minutes (3:04pm) I closed the emulator to like apply some other npc.
when I restarted the emulator, and check the rates it adjusted back to the original server experience., How do I improved on this? I tried checking the gettimetick function but can't seem to make it work.
I tried to apply something like:
if(gettimetick(GETTIME_HOUR) >= 15Β && gettimetick(GETTIME_HOUR) < 18)
as I understand 15 = 3PM / 18 = 6pm so like 17 would be 5pm (since I want it to work from 3PM to 5PM)
But I don't know if I am on the correct path. -
40 minutes ago, Kuya Jeo said:Oh yeah..Β sorry about that..Β π but did you already test the script if it will reset?, you can change the time so that you can test it over and over..Β I never tried to run that script thou. haha
Hi @Kuya Jeo yes, I adjusted the time, and it appears to be working.
-
1 hour ago, Kuya Jeo said:You can try this one..
Try it, i just made the script without testing it. hahaΒ ππΒ
prontera,90,110,4 script Daily Supply 4_M_MAYOR,{ if(#DailySupply){ message strcharinfo(0), "Supply already claimed."; end; } else if(!#DailySupply){ getitem 505,1; getitem 506,1; getitem 507,1; getitem 508,1; set #DailySupply,1; end; } } - script DailySupplyReseter FAKE_NPC,{ OnClock1159: announce "[ Daily Supply ] : "You can now claim your Daily Supply Now. Thank You!",bc_all | bc_blue; while(1){ query_sql("SELECT `account_id` from `char` WHERE `online` = 1",.@GetAccID); attachrid(.@GetAccID); set #DailySupply,0; detachrid; break; } end; }
prontera,90,110,4 script Daily Supply 4_M_MAYOR,{ if(#DailySupply){ message strcharinfo(0), "Supply already claimed."; end; } else if(!#DailySupply){ getitem 505,1; getitem 506,1; getitem 507,1; getitem 508,1; set #DailySupply,1; end; } } - script DailySupplyReseter FAKE_NPC,{ OnClock1159: announce "[ Daily Supply ] : "You can now claim your Daily Supply Now. Thank You!",bc_all | bc_blue; while(1){ query_sql("SELECT `account_id` from `char` WHERE `online` = 1",.@GetAccID); attachrid(.@GetAccID); set #DailySupply,0; detachrid; break; } end; }
Β
Hi @Kuya Jeo, thank you for this, There was an issue with "unexpected new line string..", however I was able to figure it out.Β
It was on this lineΒ -
Hi~
I have been trying to analyze and modifying this script by @AnnieRuruΒ
https://github.com/AnnieRuru/Release/blob/master/scripts/Utility/daily supply/daily_supply_0.3.txt
However nothing seems working as it was too complicated for me.
Basically what I wanted is simple Daily Supply NPC script
+ Give 4 items (different items that I can set)
+ Once per account only (not per character)
+ No confirmation Dialog, it just gives the item upon clicking the NPC
+ If the user already claim the supply, an message bubble will show on top of NPC informing that they already claim the supply (ex. You already claim your reward today)+ Although it is daily it will just reset every 12AM
Β
-
Hi @Kuya JeoΒ and @Neffletics, thank you so much for this it is working now, thank you also @DaraenΒ for providing me this link, I really appreciate the response everyone thank you.
-
Hi @NeffleticsΒ ok I did try your code, however the script starts directly. Even if it wasn't the desired time yet.
Β
Β
Here's the script:
- script FloatingRatesStart FAKE_NPC,{ OnInit: //add HOURS for starting OnHour03: OnHour09: OnHour15: OnHour21: //------------------- set $@brate,1000; set $@jrate,1000; set $@drate,500; //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 "The Floating rates has started, rates are: 10x 10x 5x",bc_all,0xFF6060; end; } - script FloatingRatesEnd FAKE_NPC,{ OnInit: //add HOUR for ending OnHour05: OnHour12: OnHour17: OnHour23: //------------------- set $@brate,500; set $@jrate,500; set $@drate,300; //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 "The Floating rates has ended, rates are back to normal!",bc_all,0xFF6060; end; }
Β
-
HiΒ @NeffleticsΒ thank you so much for this, Also @DaraenΒ do you have any reference on this method? so that I can study on this in the future.
-
Hi,
Β
I just started using Hercules and understand how it works. currently, I am trying to modify the included floating_rates script.
- script FloatingRates FAKE_NPC,{ OnInit: //add any other HOURS OnHour03: OnHour05: OnHour12: OnHour18: //------------------- set $@brate,rand(100,150); set $@jrate,rand(100,150); set $@drate,rand(100,150); //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; }
So basically, I just want it to activate everyday,
let's say a certain time during the day:
example:
- start at 1AMΒ
- ends at 3AM
then start again at 9AM ends at 11AM, however between those times it will return to the server experience rate
example: server rate is 5x/5x/3x (base/job/drops)
then during floating rate hours it will be go a total of 10x/10x/4x
in addition, once it starts it announce, once it ends it also announce.
I tried looking up to different floating_rates request, however I am unable to understand much.
I really appreciate if anyone can enlighten me on this.
Β
[Workaround] adding item Droprate
in Script Support
Posted
Hi do you happen to know where I can find this plugin?