bobzih
-
Posts
165 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by bobzih
-
-
Good Morning, Good Afternoon and Good Night
I came here to bring you something that I created
What did he do?
It inhibits the Skill selected by a configuration does not work until the Olympiad Starts up completely, and in the end it is usually returned.
doubt:
Plus it does not leave the skill works during the fight?
Not only it inhibits 60 seconds and when you give the 20 or 5 seconds depending on your Rev it is released for use
Tested on L2Jfrozen, and L2JDream L2Jbrasil and working perfectly!
Index: java/com/it/br/Config.java ============================================= --- java/com/it/br/Config.java (revision 306) +++ java/com/it/br/Config.java (revision 307) public static boolean ALLOW_SKILL_AUGMENTS_IN_OLYM; + public static boolean OLY_SKILL_PROTECT; + public static List<Integer> OLY_SKILL_LIST = new FastList<Integer>(); ALLOW_SKILL_AUGMENTS_IN_OLYM = Boolean.parseBoolean(Olym.getProperty("AllowSkillAugmentInOlym", "True")); + OLY_SKILL_PROTECT = Boolean.parseBoolean(Olym.getProperty("OlySkillProtect", "True")); + for (String id : Olym.getProperty("OllySkillId","0").split(",")) + { + OLY_SKILL_LIST.add(Integer.parseInt(id)); + } Index: java/com/it/br/gameserver/model/OlympiadGame; ============================================================== --- java/com/it/br/gameserver/model/OlympiadGame; (revision 306) +++ java/com/it/br/gameserver/model/OlympiadGame; (revision 307) protected void removals() { if(_aborted) return; for(L2PcInstance player : _players) { try { + if (Config.OLY_SKILL_PROTECT) + { + for(L2Skill skill : player.getAllSkills()) + { + if (Config.OLY_SKILL_LIST.contains(skill.getId())) + player.disableSkill(skill.getId()); + player.sendPacket(new ExShowScreenMessage ("This skill can not be used", 4000)); + } + } protected void PlayersStatusBack() { for(L2PcInstance player : _players) { try { player.setCurrentCp(player.getMaxCp()); player.setCurrentHp(player.getMaxHp()); player.setCurrentMp(player.getMaxMp()); + if (Config.OLY_SKILL_PROTECT) + { + for(L2Skill skill : player.getAllSkills()) + { + if (Config.OLY_SKILL_LIST.contains(skill.getId())) + player.enableSkill(skill.getId()); + player.updateEffectIcons(); + player.sendPacket(new ExShowScreenMessage ("His skill can be used normally", 5000)); + } + } protected void additions() { for(L2PcInstance player : _players) { try { + if (Config.OLY_SKILL_PROTECT) + { + for(L2Skill skill : player.getAllSkills()) + { + if (Config.OLY_SKILL_LIST.contains(skill.getId())) + player.enableSkill(skill.getId()); + player.updateEffectIcons(); + player.sendPacket(new ExShowScreenMessage ("You can use your skill", 3000)); + } + } protected boolean makeCompetitionStart() { if(_aborted) return false; try { for(L2PcInstance player : _players) { player.setIsOlympiadStart(true); + if (Config.OLY_SKILL_PROTECT) + { + for(L2Skill skill : player.getAllSkills()) + { + if (Config.OLY_SKILL_LIST.contains(skill.getId())) + player.enableSkill(skill.getId()); + player.updateEffectIcons(); + } + }
-
I liked the Caveirão bro, thanks for sharing
-
this is very good man, so we can know what to use for each class
-
yes I would like to play one of these server
-
Interlude is scheduled for release to give us?
-
Cod is very good its nice thanks.
-
Our good brother, you could put a Config picture and where we choose to teach where to look.
-
very nice ^^ this new event is already enjoyed in my Bag
-
Works but friend, if der is a problem only in reports
-
Very good this command will use the same
-
It was very good this NPC Buffer required
-
Someone has tested? Some Bug? What is the problem found?
I need answers not only
Thank you and share ...
-
Put your mistakes so we can help ..
Prints
-
Yes, it can also be done from a system of checking online at the same ... How many site has no connection with Mysql thus avoiding the Save the Date, but in view of giving Bank to view the site.
-
When you can ... you share?
-
I do not understand how someone can explain to me what He does? How does he do?
-
Releases to look at all there, just not funny
-
heeeeee he had been offline thankfully returned
-
These guys are fucking brother, they even ask for money to stop DDoS attack arrange more in DC than for Cisco Firewall
-
I liked this guia, I knew I could not Soutar 2 maigas the same time .... Thank you so
-
Tested! Running on L2JBrasil ...
-
Could you please give me the list of errors that contain the code?
-
is working perfectly, tested by me
-
I want, when will it available?
DressMe for aCis
in Server Shares & Files [L2J]
Posted
I thought I liked very cool