Jump to content

Olympiad Restriction Also Max Lvl 91


Recommended Posts

first here is a max lvl 91 with normal xp bars

	<experience level="80" tolevel="4200000000" />
	<experience level="81" tolevel="6300000000" />
	<experience level="82" tolevel="10500000000" />
	<experience level="83" tolevel="16800000000" />
	<experience level="84" tolevel="27300000000" />
	<experience level="85" tolevel="44100000000" />
	<experience level="86" tolevel="71400000000" />
	<experience level="87" tolevel="115500000000" />
	<experience level="88" tolevel="186900000000" />
	<experience level="89" tolevel="302400000000" />
	<experience level="90" tolevel="489300000000" />
	<experience level="91" tolevel="791700000000" />

now model/entity/olympiad/olympiad.java

find this

		if (!noble.isNoble())
		{
			sm = new SystemMessage(SystemMessageId.ONLY_NOBLESS_CAN_PARTICIPATE_IN_THE_OLYMPIAD);
			noble.sendPacket(sm);
			return false;
		}

below add this

		if (noble.getLevel() < Config.ALT_OLY_LEVEL_NEED && Config.ALT_OLY_LEVEL_JOIN)
		{
			noble.sendMessage("You can't participate to Olympiad. You must be at least " + Config.ALT_OLY_LEVEL_NEED + " Level!");
			return false;
		}
		
		if (noble.getPvpKills() < Config.ALT_OLY_PVP_NEED && Config.ALT_OLY_PVP_JOIN)
		{
			noble.sendMessage("You can't participate to Olympiad. You must have at least " + Config.ALT_OLY_PVP_NEED + " Pvp!");
			return false;
		}

now in olympiad/OlympiadGame.java

find this

			else if (player.getInventoryLimit()*0.8 <= player.getInventory().getSize())
			{
				sm = new SystemMessage(SystemMessageId.SINCE_80_PERCENT_OR_MORE_OF_YOUR_INVENTORY_SLOTS_ARE_FULL_YOU_CANNOT_PARTICIPATE_IN_THE_OLYMPIAD);
				defaulted = true;
			}

below add this

			else if (player.getLevel() < Config.ALT_OLY_LEVEL_NEED && Config.ALT_OLY_LEVEL_JOIN)
			{
				defaulted = true;
			}
			else if (player.getPvpKills() < Config.ALT_OLY_PVP_NEED && Config.ALT_OLY_PVP_JOIN)
			{
				defaulted = true;
			}

now in configs

find this

public static boolean ALT_OLY_RECHARGE_SKILLS;

below add

	public static boolean ALT_OLY_LEVEL_JOIN;
	public static int ALT_OLY_LEVEL_NEED;
	public static boolean ALT_OLY_PVP_JOIN;
	public static int ALT_OLY_PVP_NEED;

now find

ALT_OLY_RECHARGE_SKILLS = Boolean.parseBoolean(OLYMPSetting.getProperty("AltOlyRechargeSkills", "False"));

below add

			ALT_OLY_LEVEL_JOIN = Boolean.parseBoolean(OLYMPSetting.getProperty("AltOlyLevelJoin", "False"));
			ALT_OLY_LEVEL_NEED = Integer.parseInt(OLYMPSetting.getProperty("LevelToJoin", "18"));
			ALT_OLY_PVP_JOIN = Boolean.parseBoolean(OLYMPSetting.getProperty("AltOlyPvpJoin", "False"));
			ALT_OLY_PVP_NEED = Integer.parseInt(OLYMPSetting.getProperty("PvpsToJoin", "18"));

now in olympiad setting 

# Join in oly with an specific level [True enable || False disable]
AltOlyLevelJoin = True
# If LevelToJoin = 85 only players 85++ level can join
LevelToJoin = 85

# Join in oly with an specific pvp amount [True enable || False disable]
# If PvpsToJoin = 250 only players with 250++ pvps can join
AltOlyPvpJoin = True
PvpsToJoin = 250
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...

how can i add skill for the lvl 91 for examble or books that give u skill if ur lvl 90 eg plz tell me ok

Go to data\xml\classes.
Choose the race you want, then find the skill with its id and change minLvl.
<skillTrees>
<!-- Wisdom -->
<skill id="328" lvl="1" sp="12500000" minLvl="76" />
Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

The only problem here is that when you are 90 level if i remember correct is that the buffer does not make you any buff . I don't know if only i encounter this problem but if not then can you please tell us a way to fix this ? thank you in advance ! 

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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