madarismenos Posted January 8, 2016 Posted January 8, 2016 (edited) Hello Member I Create One Not Use Augment Skills in Olympiad...Thanks Mate :-* :-* :-* :-* :-* :-* :-* Base:Acis Index: java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java =================================================================== --- java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java (revision 26) +++ java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java (working copy) @@ -71,6 +71,14 @@ // If Alternate rule Karma punishment is set to true, forbid skill Return to player with Karma if (skill.getSkillType() == L2SkillType.RECALL && !Config.KARMA_PLAYER_CAN_TELEPORT && activeChar.getKarma() > 0) return; + if(activeChar.isInOlympiadMode()) + { + if (skill.getId() >= 3124 && skill.getId() <= 3259) + { + activeChar.sendMessage("Can't not Use "+skill.getName()+" in Olympiad!"); + return; + } + } // players mounted on pets cannot use any toggle skills if (skill.isToggle() && activeChar.isMounted()) Edited January 8, 2016 by madarismenos Quote
Reborn12 Posted February 25, 2016 Posted February 25, 2016 On 1/8/2016 at 7:25 AM, madarismenos said: Hello Member I Create One Not Use Augment Skills in Olympiad...Thanks Mate :-* :-* :-* :-* :-* :-* :-* Base:Acis Index: java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java =================================================================== --- java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java (revision 26) +++ java/com/l2jfresh/gameserver/network/clientpackets/RequestMagicSkillUse.java (working copy) @@ -71,6 +71,14 @@ // If Alternate rule Karma punishment is set to true, forbid skill Return to player with Karma if (skill.getSkillType() == L2SkillType.RECALL && !Config.KARMA_PLAYER_CAN_TELEPORT && activeChar.getKarma() > 0) return; + if(activeChar.isInOlympiadMode()) + { + if (skill.getId() >= 3124 && skill.getId() <= 3259) + { + activeChar.sendMessage("Can't not Use "+skill.getName()+" in Olympiad!"); + return; + } + } // players mounted on pets cannot use any toggle skills if (skill.isToggle() && activeChar.isMounted()) And what about pp and cardinals and this classes which fights with augment skills..is this included at this id's? Quote
Kelrzher Posted February 25, 2016 Posted February 25, 2016 On 2/25/2016 at 9:08 PM, Reborn12 said: And what about pp and cardinals and this classes which fights with augment skills..is this included at this id's? make an exception on those class ids using a check Quote
Reborn12 Posted February 25, 2016 Posted February 25, 2016 On 2/25/2016 at 9:13 PM, Kelrzher said: make an exception on those class ids using a check I dont need this just i say my opinion to update this code better than this one.. Quote
Cronia Posted September 3, 2016 Posted September 3, 2016 On 2/25/2016 at 9:08 PM, Reborn12 said: And what about pp and cardinals and this classes which fights with augment skills..is this included at this id's? I think Is better with out augment is more retail...How play oly cardinals in c4/c5..I mean cardinals and others have curse for empty mp and more to play in oly.. with augment i bealieve Prophets is OP with a lot of buffs in oly and skill? :/ and a lot of curse. I think you can win with cardinal if play clever and keep your mp.. Anyway :) Quote
ganjaradio Posted September 4, 2016 Posted September 4, 2016 On 9/4/2016 at 4:28 PM, Gam3Master said: does if work if skill is passive? You could remove the skills on enter and give them again after the match, bht if its not done properly it will be buggy Quote
Tessa Posted September 5, 2016 Posted September 5, 2016 On 9/4/2016 at 7:25 PM, ganjaradio said: You could remove the skills on enter and give them again after the match, bht if its not done properly it will be buggy I really want to see how you doing it properly... :lol: Quote
ganjaradio Posted September 5, 2016 Posted September 5, 2016 im not sure if its possible but on enter to make the skills invisible from the panel. Or add some custom skills with no effects and on enter check if the character has the skills you dont want to have an remove them and add the custom and on exit check if the character has the custom and remove them and add the banned skills Quote
Reborn12 Posted September 5, 2016 Posted September 5, 2016 On 9/5/2016 at 10:20 AM, ganjaradio said: im not sure if its possible but on enter to make the skills invisible from the panel. Or add some custom skills with no effects and on enter check if the character has the skills you dont want to have an remove them and add the custom and on exit check if the character has the custom and remove them and add the banned skills All is impossible but this will and why to remove skills and add custom skills?just dont do nothink.. Quote
Recommended Posts
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.