Jump to content
  • 0

remove skills in olympiad


Assassina

Question

hello.

 

ive added a skill for more max mp and every player in my server has that skill (its passive). my problem is that it unbalances oly so is there a way to remove it when players enter to an oly match? just remove the skill and then add it again when the match is over. thats all. is there a way to do it please?

 

i would search for other "remove skills" shares and i would adapt them to oly but i couldnt find any thats why im asking for your help guys.

 

so i say again what i need: i just need when somebody enters to an oly match a certain passive skill he has to be removed. the skill id is 9999 if this helps u :P

 

aaaaa and thanks in advance xD

Link to comment
Share on other sites

Recommended Posts

  • 0
hello.

 

ive added a skill for more max mp and every player in my server has that skill (its passive). my problem is that it unbalances oly so is there a way to remove it when players enter to an oly match? just remove the skill and then add it again when the match is over. thats all. is there a way to do it please?

 

i would search for other "remove skills" shares and i would adapt them to oly but i couldnt find any thats why im asking for your help guys.

 

so i say again what i need: i just need when somebody enters to an oly match a certain passive skill he has to be removed. the skill id is 9999 if this helps u Tongue

 

aaaaa and thanks in advance xD

 

Maybe someone gave you this advice already, but I couldn't read whole thread, so my advice is:

 

Take a look how does remove Hero Skills during olympiad work.

Link to comment
Share on other sites

  • 0

L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

player.removeSkill(sk, false);

 

and

 

L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

player.addSkill(skill, false);

 

Link to comment
Share on other sites

  • 0

L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

player.removeSkill(sk, false);

 

and

 

L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

player.addSkill(skill, false);

 

maybe this would work but eclipse gives an error. could u please tell me in which part of the code in olympiad.java should i add it?

Link to comment
Share on other sites

  • 0

in OlympiadGames.java

protected void removals()
{
              ...
	for (L2PcInstance player : _players)
	{
		try
		{
			// Remove Buffs
			player.stopAllEffectsExceptThoseThatLastThroughDeath();

			// Remove Clan Skills
			if (player.getClan() != null)
			{
				for (L2Skill skill : player.getClan().getAllSkills())
					player.removeSkill(skill, false);
				if (player.getClan().getHasCastle() > 0)
					CastleManager.getInstance().getCastleByOwner(player.getClan()).removeResidentialSkills(player);
				if (player.getClan().getHasFort() > 0)
					FortManager.getInstance().getFortByOwner(player.getClan()).removeResidentialSkills(player);
			}
[color=red]                 L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);
                               player.removeSkill(sk, false);
[/color]
                               ...

 

and

 

protected void PlayersStatusBack()
{
            ...
			// Add Clan Skills
			if (player.getClan() != null)
			{
				for (L2Skill skill : player.getClan().getAllSkills())
				{
					if (skill.getMinPledgeClass() <= player.getPledgeClass())
						player.addSkill(skill, false);
				}
				if (player.getClan().getHasCastle() > 0)
					CastleManager.getInstance().getCastleByOwner(player.getClan()).giveResidentialSkills(player);
				if (player.getClan().getHasFort() > 0)
					FortManager.getInstance().getFortByOwner(player.getClan()).giveResidentialSkills(player);
			}
[color=red]
                               L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);
                               player.addSkill(skill, false);
[/color]

im using l2jinfinity pack (epilogue)

 

Link to comment
Share on other sites

  • 0

lol way toooooooooooo many errors in eclipse..... look:

 

   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1469: illegal start of expression
   [javac] 	                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac] 	                                                                ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1469: illegal start of expression
   [javac] 	                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac] 	                                                                 ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1469: ')' expected
   [javac] 	                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac] 	                                                                      ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1703: illegal start of expression
   [javac]                                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac]                                                                                ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1703: illegal start of expression
   [javac]                                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac]                                                                                 ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1703: unclosed comment
   [javac]                                 L2Skill sk  = SkillTable.getInstance().getInfo(*/9900/*, /*1 /*);
   [javac]                                                                                      ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:2020: reached end of file while parsing
   [javac] } THERE IS ONE MORE ERROR IN HERE BUT THE FORUM CANT RECOGNIZE IT

   [javac]  ^
   [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\Olympiad.java:1688: 'try' without 'catch' or 'finally'
   [javac]     		  try {
   [javac]     		  ^
   [javac] 8 errors

BUILD FAILED

Link to comment
Share on other sites

  • 0

yes i deleted all the /* */ and i changed something else as well look:

 

in the remove u use this:

 

L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

                                player.removeSkill(sk, false);

 

but in the add skills u use this:

 

                                L2Skill sk  = SkillTable.getInstance().getInfo(*/skill id/*, /*skill lvl /*);

                                player.addSkill(skill, false);

 

i had an error in eclipse because of that but when i changed "skill" to "sk" there was no error. lets just hope it will work in game....... but really really really thank u anyway :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • Dear friends, September 24 at 19:00 (UTC +3) will be available access for our test server. UTC+3 - exact time now - Time.is During beta test will be available OBT Manager (NPC Eva) in Giran with all necessary items for test. We run 7signs in 1h cycle and Oly 24/7 Server setup on Beta same, like will be on server start On Beta will be restrictions for skill enchant lvl: 15 max for 2nd profession, 7 for 3rd profession Talent Tree avaible only Tier 1 (Same like will be on first Olympiad cycle on live server) We strongly recommend visiting beta. Check the concept of the server before it start. View the NPC Buffer, Shop, Services. We will be shutting down the public test server on September 23! So as not to mislead new players on Dex, whitch one is beta for seasonal server. After the season server opens, the Public Test Server will be available again. - Olympiad EVENT ON BETA TEST   GiveAway on Beta! On Beta launch day, we make 7 giveaways From 19:00 till 02:00. Each hour, new giveaway with 5 winer places. Each hour you need make new registartion if you want participate. To participate on Giveaway you need speak with NPC Ahuron in Giran Town and make registartion. On 20:00, 21:00, 22:00, 23:00, 00:00, 01:00 and 02:00 Ahuron will announce Winers! And palyers recive special item. If you will be offline on this momment, you will not get prize! Winers will recive on same account (on first character) scrolls for 7days Premium status on server start! You can activate this scroll on any time, its will give you 7 days Premium, or if you already have Premium it will add 7 days to it. Also, all who visit Beta and will be online at less 1 hour, will get small gift on server start. Pack with useful potions that for sure help you on start. We need this, to be sure you prepear you game client and ready to start    How to Connect on Beta! For participation in our Open Beta you can use your old Master Accounts(web account). But you need to create new Game Account fore NEW Interlude x25 server on your Control Panel. If you don't play in our project before - register new Master Account Download links: Updater Full Game Client (torrent) Full Game Client (direct link)   If you download Full Game Client - just unzip it, run updater choose NEW server, click on Full Check, than after update - click Start. if you already have our game client - Run updater choose NEW server and click Update. /data/attachments/4/4520-75a004e5c687b6c439c89513218f4743.jpg Join in our Discord Chanel - Join the Lineage2Dex Support Discord Server! Here you can find all important news, guides, communicate with other players and admins. Don't forget, Open Beta test is TEST server, so please make maximum test before opening, check classes that u plan to play, check shops, mobs etc. Don't just stay in the Towns enchanting weapons  Have a fun!  
    • Nice coincidence that since these links were posted, that forum getting ddosed.
  • Topics

×
×
  • Create New...