Jump to content
  • 0

[HELP]Olympiad


Question

Posted

Well I would like to ask how can I disallow from a character when joining olympiad not to use some skills.

Example when a titan is in olympiad to cannot use Frenzy ? Do you know anything about how can I fix it pls ? Or if you know anything in general or if there's a code like that in here ? If it's possible and if you know reply you would do me a favor.

TY

11 answers to this question

Recommended Posts

  • 0
Posted

Well I didn't say that I want to prevent the frenzy's exploit but I just gave as an example Frenzy , if I want to dissalow from a character to use custom skills or forgoten scroll skills then how can I do ? This is what I ask thnx

  • 0
Posted

where put the code :

Index: /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java
===================================================================
--- /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (revision 11)
+++ /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (revision 111)
@@ -216,4 +216,9 @@
				}

+				// Avoid prefrenzy(and others) exploit
+				player.stopSkillEffects(176);
+				player.stopSkillEffects(139);
+				player.stopSkillEffects(406);
+				player.stopSkillEffects(420);
+				
				// Heal Player fully
				player.setCurrentCp(player.getMaxCp());

 

in freya ? dont see // Heal Player fully ?? thanks for help

  • 0
Posted

Anybody knows ? What's this lol I didn't ask something like this I was speaking in general and I gave example if I want to dissallow from someone to use certain skills not only frenzy but example hmm .. seven arrow (which is a dark elf's forgoten book-skill) This is what Iam trying to find sorry if I was unclear and thanks again.

  • 0
Posted

you may check the skill conditions that your server support (<cond msgId=...> etc..</cond>

if not, you can create a class which stores a list of skill ids that are not allowed in olympiad.

When player request to use a skill, check if he is in olympad and that skill is contained in the forbidden list

  • 0
Posted

just put this code into Olympiadgame.java :D really works

 

what are u talking about? wich code?

 

and "<player olympiad="false"/>" should be in skills .xml

  • 0
Posted

where put the code :

Index: /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java
===================================================================
--- /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (revision 11)
+++ /trunk/L2_Gameserver/java/net/sf/l2j/gameserver/model/olympiad/OlympiadGame.java (revision 111)
@@ -216,4 +216,9 @@
				}

+				// Avoid prefrenzy(and others) exploit
+				player.stopSkillEffects(176);
+				player.stopSkillEffects(139);
+				player.stopSkillEffects(406);
+				player.stopSkillEffects(420);
+				
				// Heal Player fully
				player.setCurrentCp(player.getMaxCp());

 

in freya ? dont see // Heal Player fully ?? thanks for help

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
Answer this question...

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



  • Posts

    • whats password from the archivie ?
    • All that shit are false positives of the vanganth cliext, sources are well and who sell it is a big scammer
    • Information Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription. Includes Git support and access to compiled or full source code. Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.   General Project Specifications: JDK Version: 23 -> 24 Chronicle: HighFive Structure: Core & Datapack merged into a single project Database: MariaDB Database Driver: HicariCP GIT Website: gitlab.com   Features include (but are not limited to):   1. Tournament Single & Party (Check Youtube Video) 2. Faction (Check Youtube Video) 3. Event Engine (Check Youtube Video) 4. Sell Buff System (Check Youtube Video) 5. Start UP System (Check Youtube Video) 6. User Panel 7. Visual - Dress me System 8. Donate Store 9. Automatic Farm System (Check Youtube Video) 10. Captcha (Anti-BOT) (Check Youtube Video) 11. Auction (Check Youtube Video) 12. Vote (API) 13. Admin Real Time Balance (Check Youtube Video) 14. Achievements (Check Youtube Video) 15. Daily Mission (Check Youtube Video) 16. A.I. Bot (Check Youtube Video) 17. Rebirth 18. Daily Reward  19. Skill Tree - Ability System 20. Craft System 21. Twitch Automatic Reward (Check Youtube Video) 22. Quiz Game (Check Youtube Video) 23. Automatic Item Enchant (Check Youtube Video) 24. Secondary Auth Using Google Authenticator (Check Youtube Video) 25. Gm Shop - Gatekeeper - Scheme Buffer   How to get Access (Payment Subscription): To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.  Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.   Price per Month (Source) in GIT: 250 Eur Price per Month (Compiled) in GIT: 100 Eur   Contact: To get Access or ask further information join discord  https://discord.gg/gKAsAhJNuq      
    • We're officially closing the current season today. While we focus on refining the Essence project, our resources will temporarily shift toward supporting the Classic server.
  • Topics

×
×
  • Create New...