Adjusting Exp, SP, Adena rate on the fly

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Adjusting Exp, SP, Adena rate on the fly

Post by lishawj »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 3074:
L2JDP Revision 6133:

Hi everyone,

I am not even sure if this qualifies as a server support type question but it did not fit into any of the other forum categories. Until recently, I had never had the desire to change the server exp, sp, adena, etc rate in-game. I would typically change the rate in the rate.properties file and was very content with doing it that way. However, a player of mine had asked if it was possible to boost EXP, SP, and/or Adena on the fly in game and I remember seeing the Quickbox with the SET command. I attempted to adjust EXP, SP on the fly in-game but it didn't seem to take effect.

Prior to making this post, I searched this forum but could not find any related posts. My alternative option was to search the "Old Forum" but being a new member of the community I do not know the address of the "Old Forum". Can someone point me to the "Old Forum" or if you know whether or not "on the fly" adjustment of EXP, SP in game using the Quickbox and SET command is a "no go" then I will stop my curiosity right here.

Thank you for your time.


Updated: I found the old forum address with Google. Searching Old Forum now...
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: Adjusting Exp, SP, Adena rate on the fly

Post by wasabi2k »

there is a command for it lemme look it up 1 min..

update:

i think it is :
//set RateXp [new xp rate]
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

Where do I find a complete list of the commands to use to set the xp/sp/adena/drop/spoil rates while server is up and running?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Adjusting Exp, SP, Adena rate on the fly

Post by janiii »

Config.java method setParameterValue()

http://www.l2jserver.com/trac/browser/t ... java#L2120
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

Thanks!

That was a LOT! :)

However, if one changes the xp for instance, it doesn't show in the regionbbs. How can I make it show there, when changed?
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

Bada-BUMP! :)
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

In the RegionBBS file, you read and show Config.RATE_XP, but what variable should I instead put into this, to show the real and active rate?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Adjusting Exp, SP, Adena rate on the fly

Post by janiii »

regionbbs gets reloaded when a player disconnects, or enters the game, or a player gets jail/ban. so for normal server it gets refreshed fine.

if not, add to admin_set command in AdminAdmin the line for refreshing the regionbbs: RegionBBSManager.getInstance().changeCommunityBoard();
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

Thanks! I will check this out! :)
User avatar
Notorious
Posts: 501
Joined: Thu May 28, 2009 3:50 pm
Location: Sweden

Re: Adjusting Exp, SP, Adena rate on the fly

Post by Notorious »

Not tested, but looks to be good:

Code: Select all

Index: data/scripts/handlers/admincommandhandlers/AdminAdmin.java===================================================================--- data/scripts/handlers/admincommandhandlers/AdminAdmin.java	(revision 6538)+++ data/scripts/handlers/admincommandhandlers/AdminAdmin.java	(working copy)@@ -19,6 +19,7 @@ import net.sf.l2j.Config; import net.sf.l2j.gameserver.GmListTable; import net.sf.l2j.gameserver.cache.HtmCache;+import net.sf.l2j.gameserver.communitybbs.Manager.RegionBBSManager; import net.sf.l2j.gameserver.datatables.AccessLevels; import net.sf.l2j.gameserver.datatables.AdminCommandAccessRights; import net.sf.l2j.gameserver.datatables.ItemTable;@@ -284,7 +285,10 @@ 				String pName = parameter[0].trim(); 				String pValue = parameter[1].trim(); 				if (Config.setParameterValue(pName, pValue))+				{ 					activeChar.sendMessage("parameter " + pName + " succesfully set to " + pValue);+					RegionBBSManager.getInstance().changeCommunityBoard();+				} 				else 					activeChar.sendMessage("Invalid parameter!"); 			} 
Post Reply