Jump to content
  • 0

i need script Double EXP on Wekend


Question

Posted

i need a script if i can put double exp on wekend, if possible I would like to to choose the day and time event will happen, but if no1 have it can post for me just a script for double exp for all server just on Saturday and Sunday.

15 answers to this question

Recommended Posts

  • 0
Posted
On 1/14/2013 at 1:34 PM, Dastgir said:

Weekend Double Exp Event:

 


- script FloatingRates -1,{
OnInit:
OnClock0001:
if(gettime(4)==6  || gettime(4)==0 ) {
set .br,getbattleflag("base_exp_rate")*2;
set .jr,getbattleflag("job_exp_rate")*2;
setbattleflag("base_exp_rate"), .br;
setbattleflag("job_exp_rate"), .jr;
atcommand "@reloadmobdb";
end;
}
if(gettime(4) == 1)
{
announce "Weekend Exp Event is finished",bc_all,0xFF6060;
atcommand "@reloadbattleconf";
atcommand "@reloadmobdb";
}
end;
OnMinute02:
if(gettime(4)==6  || gettime(4)==0 )
{
announce "Weekend Exp Event(Base:"+.br/100+"x, Job:"+.jr/100+"x) is active!!",bc_all,0xFF6060;
}
end;
}
 

does this script works?

 

Posted

You can always try this. People told me it's working and there isn't problems with it yet. :>

my server rates is 5x who i can configure this script part:

set $@brate,rand(100,150); // Change the value here for your Base Experience

set $@jrate,rand(100,150); // Change the value here for your Job Experience

100 and 150 ?

I have to modify?

Posted

You can always try this. People told me it's working and there isn't problems with it yet. :>

my server rates is 5x who i can configure this script part:

set $@brate,rand(100,150); // Change the value here for your Base Experience

set $@jrate,rand(100,150); // Change the value here for your Job Experience

100 and 150 ?

I have to modify?

Check this thread to help you.

100 = 1x

150 = 1.5x

  • Upvote 1
Posted

You can always try this. People told me it's working and there isn't problems with it yet. :>

my server rates is 5x who i can configure this script part:

set $@brate,rand(100,150); // Change the value here for your Base Experience

set $@jrate,rand(100,150); // Change the value here for your Job Experience

100 and 150 ?

I have to modify?

Check this thread to help you.

100 = 1x

150 = 1.5x

My rate is 5x, so I must change: 100 per 500,150 per 1000 ? correct ?

Posted

Weekend Double Exp Event:

- script FloatingRates -1,{
OnInit:
OnClock0001:
if(gettime(4)==6  || gettime(4)==0 ) {
set .br,getbattleflag("base_exp_rate")*2;
set .jr,getbattleflag("job_exp_rate")*2;
setbattleflag("base_exp_rate"), .br;
setbattleflag("job_exp_rate"), .jr;
atcommand "@reloadmobdb";
end;
}
if(gettime(4) == 1)
{
announce "Weekend Exp Event is finished",bc_all,0xFF6060;
atcommand "@reloadbattleconf";
atcommand "@reloadmobdb";
}
end;
OnMinute02:
if(gettime(4)==6  || gettime(4)==0 )
{
announce "Weekend Exp Event(Base:"+.br/100+"x, Job:"+.jr/100+"x) is active!!",bc_all,0xFF6060;
}
end;
}

  • Upvote 1
Posted

My rate is 5x, so I must change: 100 per 500,150 per 1000 ? correct ?

500 = 5x

1000= 10x

is as it should be?

for a 5x server ?


//===== rAthena Script =======================================
//= Floating Rates
//===== Support ==============================================
//= Vist: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/script_commands.txt
//= to know how to change the time settings
//===== By: ================================================== 
//= Mysterious
//===== Current Version: =====================================
//= 1.5
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= EXP Doubles on Weekends
//===== Other Information: ===================================
// Every weekend, starting on Fridays, players will gain
// double EXP. The script will announce when Double EXP has
// begun so that players know.
//===== TODO: ================================================
// 1) Optimize script a little more
// 2) Make script more friendly
//===== Additional Comments: =================================
//= v1.0 - Intitial Re-release [Mysterious]
//= v1.1 - Made it so that it starts on Friday, ends on Sunday [Mysterious]
//= v1.2 - Optimized entire script [Mysterious]
//= v1.3 - Made it more friendly [Mysterious]
//= v1.4 - Optimized [Mysterious]
//= v1.5 - Adjusted a few things [Mysterious]
//============================================================
- script FloatingRates -1,{


OnInit:
//Note: You can always set a standard exp. rate or set it as a rand
set $@brate,rand(500,1000); // Change the value here for your Base Experience
set $@jrate,rand(500,1000); // Change the value here for your Job Experience
// =========================
OnClock0000:
if(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);
// Reload the database
atcommand "@reloadmobdb"; 
}
end;
}

// We will announce about the EXP rates every 01 Minute of every Hour so that player's know what's going on
- script FloatingAnn -1,{

OnMinute01:
if(gettime(4)==4 || gettime(4)==5 || gettime(4)==6 ) { // Friday, Saturday, Sunday
announce "Double EXP is currently in affect with 1."+($@brate-500)+"x/1."+($@jrate-500)+"x rates!",bc_all,0xFF6060;
}

end;
}

- script FloatingAnn#1 -1,{

OnClock1159:
if(gettime(4) == 0) { // On Sunday at 11:59pm server time, Double EXP event will end
announce "Weekend Double EXP has finished!",bc_all,0xFF6060;
setbattleflag("base_exp_rate", 500); // Set this rates back to your regular server's rates
setbattleflag("job_exp_rate", 500 ); // Set this rates back to your regular server's rates
atcommand "@reloadmobdb";
}

end;
}

Posted (edited)

// Rate at which exp. is given. (Note 2)

base_exp_rate: 100

// Rate at which job exp. is given. (Note 2)

job_exp_rate: 100

As you can see, there are 2 rates : base_exp_rate and job_exp_rate in your trunk/conf/battle/exp.txt

Check yours rates and you change this setting to double exp ~

set $@brate, base_exp_rate * 2; // Change the value here for your Base Experience
set $@jrate, job_exp_rate * 2; // Change the value here for your Job Experience

Edited by Capuche
Posted (edited)

My rate is 5x, so I must change: 100 per 500,150 per 1000 ? correct ?

500 = 5x

1000= 10x

i really dont understand this script, I tried to put this event over the weekend, but it didn't work, he could pass me already configured for a server 5x?

Edited by ZelosAvalon

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...