Jump to content
  • 0

Rate X2 for 2 week


Loki81

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/27/12
  • Last Seen:  

Hello

I would like a Npc that increases rates X2, exp, job and Drops for 2 weeks.

Thank You

I trying

OnInit:
//Note: You can always set a standard exp. rate or set it as a rand
set $@brate,(12000); // Change the value here for your Base Experience
set $@jrate,(12000); // Change the value here for your Job Experience
set $@drate;
// =========================
OnClock0001:
if(gettime(4)==0  || gettime(4)==1  || gettime(4)==2  || gettime(4)==3  || gettime(4)==4  || gettime(4)==5  || gettime(4)==6 ) { // Friday, Saturday, Sunday
 //Base Experience
 setbattleflag("base_exp_rate",$@brate);
 //Job Experience
 setbattleflag("job_exp_rate",$@jrate);
 setbattleflag("drop_exp_rate",$@drate);
 // Reload the database
 atcommand "@reloadmobdb";

Edited by Loki81
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Here you go:

-	script	double_exp_2weeks	-1,{
OnInit:
// original Base/Job Exp and Drop Rates
set .bexp_rate, 25;
set .jexp_rate, 25;
set .drop_rate, 25;

if (atoi(gettimestr("%Y%m%d",9)) < 20130203) {
	setbattleflag "base_exp_rate", .bexp_rate*100 * 2;
	setbattleflag "job_exp_rate", .jexp_rate*100 * 2;

	setbattleflag "item_rate_common", .drop_rate*100 * 2;
	setbattleflag "item_rate_heal", .drop_rate*100 * 2;
	setbattleflag "item_rate_use", .drop_rate*100 * 2;
	setbattleflag "item_rate_equip", .drop_rate*100 * 2;
	setbattleflag "item_rate_card", .drop_rate*100 * 2;

	atcommand "@reloadmobdb";
	announce "The Double Exp Event continues!", bc_all;
}
end;

OnDay0203: // Feb 3
setbattleflag "base_exp_rate", .bexp_rate*100;
setbattleflag "job_exp_rate", .jexp_rate*100;

setbattleflag "item_rate_common", .drop_rate*100;
setbattleflag "item_rate_heal", .drop_rate*100;
setbattleflag "item_rate_use", .drop_rate*100;
setbattleflag "item_rate_equip", .drop_rate*100;
setbattleflag "item_rate_card", .drop_rate*100;

atcommand "@reloadmobdb";
announce "The Double Exp Event has ended.", bc_all;
end;
}

Set your original base/job/drop rates in lines 4-6.

Set the date when the event will end on lines 8 and 23.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  79
  • Reputation:   0
  • Joined:  06/27/12
  • Last Seen:  

Thank you, everything works just order one thing I had to change the script a bit because I have customs drop and I use eAthena.

For others:

- script double_exp_2weeks -1,{
OnInit:
// original Base/Job Exp and Drop Rates
set .bexp_rate, 55;
set .jexp_rate, 55;
set .drop_rate, 10;

if (atoi(gettimestr("%Y%m%d",9)) < 20130203) {
setbattleflag "base_exp_rate", .bexp_rate*100 * 2;
setbattleflag "job_exp_rate", .jexp_rate*100 * 2;

setbattleflag "item_rate_common", .drop_rate*100 * 10;
setbattleflag "item_rate_common_boss", .drop_rate*100 * 8;
setbattleflag "item_rate_heal", .drop_rate*100 * 10;
setbattleflag "item_rate_heal_boss", .drop_rate*100 * 8;
setbattleflag "item_rate_use_boss", .drop_rate*100 * 8;
setbattleflag "item_rate_use", .drop_rate*100 * 11;
setbattleflag "item_rate_equip", .drop_rate*100 * 10;
setbattleflag "item_rate_equip_boss", .drop_rate*100 * 6;
setbattleflag "item_rate_card", .drop_rate*100 * 13;
setbattleflag "item_rate_card_boss", .drop_rate*100 * 6;
setbattleflag "item_rate_mvp", .drop_rate*100 * 8;
setbattleflag "item_rate_adddrop", .drop_rate*100 * 4;
setbattleflag "item_rate_treasure", .drop_rate*100 *4 ;
	  atcommand "@reloadmobdb";
	  announce "L'événement Double Exp continue!", bc_all;
}
end;
OnDay0203: // Feb 3
	  setbattleflag "base_exp_rate", .bexp_rate*100;
setbattleflag "job_exp_rate", .jexp_rate*100;

setbattleflag "item_rate_common", .drop_rate*100;
setbattleflag "item_rate_heal", .drop_rate*100;
setbattleflag "item_rate_use", .drop_rate*100;
setbattleflag "item_rate_equip", .drop_rate*100;
setbattleflag "item_rate_card", .drop_rate*100;
setbattleflag "item_rate_common_boss", .drop_rate*100;
setbattleflag "item_rate_heal_boss", .drop_rate*100;
setbattleflag "item_rate_use_boss", .drop_rate*100;
setbattleflag "item_rate_equip_boss", .drop_rate*100;
setbattleflag "item_rate_card_boss", .drop_rate*100;
setbattleflag "item_rate_mvp", .drop_rate*100;
setbattleflag "item_rate_adddrop", .drop_rate*100;
setbattleflag "item_rate_treasure", .drop_rate*100;

atcommand "@reloadmobdb"; announce "L'événement double Exp est terminée.", bc_all;
end;
}

You can close this Topic, thank you Brian.

Edited by Loki81
Link to comment
Share on other sites

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.

×
×
  • Create New...