Jump to content
  • 0

i need script Double EXP on Wekend


ZelosAvalon

Question


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you can adjust this script..

trunk/npc/custom/etc/floating_rates.txt

//add any other HOURS
OnHour00:
OnHour06:
OnHour12:
OnHour18:
//-------------------
set $@brate,rand(100,150);
set $@jrate,rand(100,150);
set $@drate,rand(100,150);

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   9
  • Joined:  03/07/13
  • Last Seen:  

On 21-1-2013 at 8:56 AM, Dastgir said:

Use This, Nothing to Configure, On Weekend it just double the base/job exp rate and announces.

EXP.txt

Is this Friday Saturday and Sunday or starts at Saturday?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

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?

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

better you use ROTD.

:)

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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

500 = 5x

1000= 10x

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

// 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

Use This, Nothing to Configure, On Weekend it just double the base/job exp rate and announces.

EXP.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.01
  • Content Count:  185
  • Reputation:   20
  • Joined:  01/06/13
  • Last Seen:  

is this script right?

 

i was thinking it was fix in 2x but looks like it keeps increasing the exp every certain amount of time during the day

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