Jump to content
  • 0

Script Drop 100%.


Question

Posted

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

Posted (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 by Boy
Posted (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 by Boy
Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...