Boy Posted November 21, 2012 Posted November 21, 2012 Hi rAthena I need your help how to make 1 script for drop 100%. For example we can set 1 day like friday and this script will run automaticly make 100% drop item for server and after 24 hour it will come back to normal. Thanks. Quote
Emistry Posted November 21, 2012 Posted November 21, 2012 try this http://pastebin.com/raw.php?i=wqXkQCKv Quote
Boy Posted November 21, 2012 Author Posted November 21, 2012 (edited) Hi Emistry, If i want change the day to sunday or tuesday how? Edited November 21, 2012 by Boy Quote
Emistry Posted November 21, 2012 Posted November 21, 2012 On<weekday><hour><minute>: Hours and minutes are given in military time. ('0105' will mean 01:05 AM). Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat. Quote
Boy Posted November 21, 2012 Author Posted November 21, 2012 (edited) One more thing. Can make a day random and only 24 hour. when the day come it will annoucement. For example "Drop Rate 100% is currently in affect with 24 hour from now.." "Drop Rate 100% has finished" Thanks. Edited November 21, 2012 by Boy Quote
Emistry Posted November 21, 2012 Posted November 21, 2012 announce "Drop Rate Started or Ended...",0; refer announce Quote
Boy Posted November 21, 2012 Author Posted November 21, 2012 (edited) Noted. and thanks for the announce. Hi Sir Just now the script run but the annoucement for finish not show but the script can run perfect. Here the script. - script Sample -1,{ OnWed1545: announce "Drop Rate Now Change to 100% is currently in affect with 24 hour from now.",0; setbattleflag "item_drop_common_min",10000; setbattleflag "item_drop_heal_min",10000; setbattleflag "item_drop_use_min",10000; setbattleflag "item_drop_equip_min",10000; setbattleflag "item_drop_card_min",10000; setbattleflag "item_drop_mvp_min",10000; setbattleflag "item_drop_add_min",10000; setbattleflag "item_drop_treasure_min",10000; atcommand "@reloadmobdb"; sleep ( 24 * 3600 ); announce "Drop Rate Now Change to Normal is currently in affect every Wednesday.",0; setbattleflag "item_drop_common_min",getbattleflag("item_drop_common_min"); setbattleflag "item_drop_heal_min",getbattleflag("item_drop_heal_min"); setbattleflag "item_drop_use_min",getbattleflag("item_drop_use_min"); setbattleflag "item_drop_equip_min",getbattleflag("item_drop_equip_min"); setbattleflag "item_drop_card_min",getbattleflag("item_drop_card_min"); setbattleflag "item_drop_add_min",getbattleflag("item_drop_add_min"); setbattleflag "item_drop_mvp_min",getbattleflag("item_drop_mvp_min"); setbattleflag "item_drop_treasure_min",getbattleflag("item_drop_treasure_min"); atcommand "@reloadmobdb"; end; } Edited November 21, 2012 by Boy Quote
Emistry Posted November 21, 2012 Posted November 21, 2012 OnWed1545: the script only start "work" when it's Wednesday 3.45PM ... refer your server time... Quote
Boy Posted November 21, 2012 Author Posted November 21, 2012 yes i know. but when the script start after that the script disable again. pls advise. Quote
Emistry Posted November 21, 2012 Posted November 21, 2012 owh...some mistake in time pause... change sleep ( 24 * 3600 ); to sleep ( 24 * 3600000 ); Quote
Boy Posted November 21, 2012 Author Posted November 21, 2012 so the command is correct? "atcommand @reloadmobdb" And if i want make 12 hour i must change sleep ( 24 * 3600000 ); to sleep ( 12 * 3600000 ); i'm i right sir? Quote
AnnieRuru Posted November 22, 2012 Posted November 22, 2012 wrong prontera,155,182,5 script djfhkshfks 100,{ announce "test 1: current rate "+ getbattleflag("item_drop_common_min") ,0; // original value setbattleflag "item_drop_common_min",10000; atcommand "@reloadmobdb"; announce "test 2: current rate "+ getbattleflag("item_drop_common_min") ,0; // correct sleep 3000; // after 3 seconds setbattleflag "item_drop_common_min", getbattleflag("item_drop_common_min"); atcommand "@reloadmobdb"; announce "test 3: current rate "+ getbattleflag("item_drop_common_min") ,0; // WRONG ! it doesn't set to original value atcommand "@reloadbattleconf"; atcommand "@reloadmobdb"; announce "test 4: current rate "+ getbattleflag("item_drop_common_min") ,0; // now this is original value end; } if you want to reset the value to original value, you have to do @reloadbattleconf + @reloadmobdb Quote
Emistry Posted November 22, 2012 Posted November 22, 2012 ya...noticed about it...and also provided him a solution too xD http://pastebin.com/raw.php?i=x34bBrU6 and it work with just @reloadmob. Quote
GmOcean Posted November 22, 2012 Posted November 22, 2012 I was about to say lol. Why were you guys setting it to 0. When the min is 1. But I see Emistry made the changes. Quote
Boy Posted November 26, 2012 Author Posted November 26, 2012 This problem already solved. Thanks Quote
Question
Boy
Hi rAthena
I need your help how to make 1 script for drop 100%.
For example we can set 1 day like friday and this script will run automaticly make 100% drop item for server and after 24 hour it will come back to normal.
Thanks.
14 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.