Jump to content
  • 0

[Help] Gracia Final olympiad and hero problem.


Question

Posted

Hello again, i use l2jserver and i use last rev of gf. My olympiad confing looks like this:

 

# ---------------------------------------------------------------------------
# Olympiad Settings
# ---------------------------------------------------------------------------
# The defaults are set to be retail-like. If you modify any of these settings your server will deviate from being retail-like.
# Warning:
# Please take extreme caution when changing anything. Also please understand what you are changing before you do so on a live server.
# ---------------------------------------------------------------------------
# Default: 1
CurrentCycle = 1

# Default: 0
Period = 0

# Default: 0
OlympiadEnd = 1267437600250

# Default: 0
ValidationEnd = 0

# Default: 0
NextWeeklyChange = 1266347137250

 

Also i searched some and found that i dont have net/sf/l2j/gameserver/olympiad java file.

 

The second thing i would like to do is for the players who have subclass, when they are in their sub they cant use hero skills. How can i fix this?

 

Thanks in advance.

13 answers to this question

Recommended Posts

  • 0
Posted

Ok found it on net.sf.l2j.gameserver.model.olympiad.olympiad.java.

How to change the number of needed players to start olympiad?

Edit: Should i post the code from olympiad.java here?

  • 0
Posted

If you've found it then start reading it.

Trust me,you'll find the min number of required players in no time. Just be patient ^^

  • 0
Posted

Ummm i read it 100% but didnt find anything like minimum required players . . . maybe its called with another words. Can you find it please?

 

The code is too big :S get the file here : http://rapidshare.com/files/361037482/Olympiad.java

 

Thanks in advance .

 

  • 0
Posted

Required number of participants config its not in Olympiad.java.If you use recompiled or compiled or whatever must be a General.properties and a config about Olympiad..Something like this

# ---------------------------------------------------------------------------

# Olympiad

# ---------------------------------------------------------------------------

# Olympiad Start Time in Military hours Default 6pm (18)

# Default: 18

AltOlyStartTime = 18

 

# Olympiad Start Time for Min's, Default 00 so at the start of the hour.

# Default: 00

AltOlyMin = 00

 

# Olympiad Competition Period, Default 6 hours.

# (If set different, should be increment by 10mins)

# Default: 21600000

AltOlyCPeriod = 21600000

 

# Olympiad Battle Period, Default 6 minutes.

# Default: 360000

AltOlyBattle = 360000

 

# Olympiad Weekly Period, Default 1 week

# Default: 604800000

AltOlyWPeriod = 604800000

 

# Olympiad Validation Period, Default 24 Hours.

# Default: 86400000

AltOlyVPeriod = 86400000

 

# Required number of participants for Classed and Non-Classed matches, Default 5 & 9

# Default: 5

AltOlyClassedParticipants = 5

 

# Default: 9

AltOlyNonClassedParticipants = 5

 

# Number used for displaying amount of registered participants, messages "Fewer than ..." or "More than ...".

# 0 for displaying digits instead of text phrase (old style).

# Default: 100

AltOlyRegistrationDisplayNumber = 100

 

# Olympiad battle winner reward for class and non-class games.

# Default: 13722

AltOlyBattleRewItem = 13722

 

# Default: 50

AltOlyClassedRewItemCount = 50

 

# Default: 30

AltOlyNonClassedRewItemCount = 30

 

# ItemId for this reward.

# Default: 13722

AltOlyCompRewItem = 13722

 

# Rate to exchange points to reward item.

# Default: 1000

AltOlyGPPerPoint = 1000

 

# Noblesse points awarded to Heros.

# Default: 180

AltOlyHeroPoints = 180

 

# Noblesse points awarded to Rank 1 members.

# Default: 120

AltOlyRank1Points = 120

 

# Noblesse points awarded to Rank 2 members.

# Default: 80

AltOlyRank2Points = 80

 

# Noblesse points awarded to Rank 3 members.

# Default: 55

AltOlyRank3Points = 55

 

# Noblesse points awarded to Rank 4 members.

# Default: 35

AltOlyRank4Points = 35

 

# Noblesse points awarded to Rank 5 members.

# Default: 20

AltOlyRank5Points = 20

 

# Maximum points that player can gain/lose on a match.

# Default: 10

AltOlyMaxPoints = 10

 

# Hero tables show last month's winners or current status.

# Default: True

AltOlyShowMonthlyWinners = True

 

# Olympiad Managers announce each start of fight.

# Default: True

AltOlyAnnounceGames = True

 

# Restrict specified items in Olympiad. ItemID's need to be separated with a comma (ex. 1,200,350)

# Default: 0

AltOlyRestrictedItems = 0

 

# Enchant limit for items during Olympiad battles. Disabled = -1.

# Default: -1

AltOlyEnchantLimit = -1

 

# Log all Olympiad fights and outcome to olympiad.csv file.

# Default: False

AlyOlyLogFights = False

  • 0
Posted

Yea i founded it before check your post :S its in Character.properties.

 

Ok and what about the hero skills with subclass? How can i make subclass characters to be able to cast hero skills?

  • 0
Posted

Try

 

L2PcInstance.java

 

public void setHero(boolean hero)

 

after

		if (hero && _baseClass == _activeClass)
	{
		for (L2Skill s : HeroSkillTable.GetHeroSkills())
			addSkill(s, false); //Dont Save Hero skills to database
	}

 

add

		else if (isSubClassActive())
	{
		for (L2Skill s : HeroSkillTable.GetHeroSkills())
			addSkill(s, false);
	}

 

Dunno if it will work. It's just an idea.

  • 0
Posted

If you were a decent person you'd share it so that other people with the same problem would know how to fix it.

We've helped you and now you'll help someone else.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • afto to post tha mporouse na einai kai i apopira apo kapio neo idos LLM pou thelei na kanei self training
    • Μάγκες καλησπέρα,   Παίζω Lineage 2 εδώ και χρόνια και πήρα απόφαση ότι θέλω επιτέλους να μάθω πώς δουλεύουν τα πράγματα πίσω από τις κάμερες. Δεν ψάχνομαι ούτε να ανοίξω τον επόμενο μεγάλο x5000 server ούτε να βγάλω λεφτά. Καθαρά από περιέργεια και για μένα θέλω να μάθω πώς στήνεται ένας server από το απόλυτο μηδέν. Το θέμα είναι ότι από development πλευρά είμαι τελείως άσχετος. Ξέρω τη βασική ιδέα, αλλά όταν βλέπω όλα αυτά που πρέπει να μάθω, ψιλοπελαγώνω. Από αυτά που έχω καταλάβει μέχρι στιγμής, πρέπει να μάθω πώς να στήνω το local περιβάλλον στο PC μου με Java, MySQL και κάποιο πρόγραμμα τύπου Navicat για να κουμαντάρω τη βάση δεδομένων. Μετά είναι το κομμάτι του compilation (με IntelliJ ή Eclipse), ή έστω το πώς να δουλεύω με έτοιμα datapacks και gameservers χωρίς να τα διαλύω όλα.   Εκτός από το server-side κομμάτι δηλαδή να αλλάζω stats σε items, να πειράζω spawns από NPCs, formulas για skills και custom μαγαζιά, πρέπει να μάθω και το client-side. Πράγματα όπως το να πειράζω τα .dat αρχεία με το L2FileEdit για να επικοινωνεί σωστά ο server με το παιχνίδι. Και για να είμαι ειλικρινής, το πιο ζόρικο κομμάτι θα είναι να μάθω να διαβάζω εκείνα τα τεράστια error logs όταν κρασάρει ο server, αντί να τα κοιτάω σαν χαζός. Ψάχνω λοιπόν κάποιον που να έχει μια εμπειρία και να γουστάρει να με καθοδηγήσει λίγο σαν μέντορας, ή ακόμα και κάποιον άλλον αρχάριο που θέλει να φάμε τα μούτρα μας παρέα μέχρι να το βρούμε.   Φράγκα δεν παίζουν μιας και το βλέπω καθαρά σαν χόμπι, αλλά έχω άπειρη υπομονή, δεν περιμένω από τον άλλον να κάνει τη δουλειά για μένα και είμαι διατεθειμένος να φάω ώρες για να μάθω. Απλά χρειάζομαι έναν άνθρωπο να ρωτάω μια γνώμη όταν αναπόφευκτα σκαλώνω σε κάποιο config αρχείο.   Αν βαριέστε και θέλετε να βοηθήσετε έναν παλιό παίκτη να μάθει τα βασικά, αφήστε ένα reply ή στείλτε μου PM με το Discord σας. Να 'στε καλά προκαταβολικά για οποιαδήποτε βοήθεια!
    • Hey guys 😃   I’ve been playing Lineage 2 for years, and I’ve finally decided I want to learn how the magic actually happens behind the scenes. I’m not trying to launch the next big x5000 server or make money. I literally just want to learn how to build one from absolute scratch for my own fun and curiosity. The issue is, I’m a total newbie when it comes to the dev side of things. I know the basic idea, but looking at everything I need to learn is getting pretty overwhelming. From what I've gathered so far, I need to figure out how to set up a local environment on my PC using Java, MySQL, and a tool like Navicat just to get the database running. Then there's compiling source code with IntelliJ or Eclipse, or at least figuring out how to work with a pre-compiled data pack and game server without breaking everything.   On top of the server side ike modifying item stats, editing NPC spawns, tweaking skill formulas, and setting up custom shops—I also need to learn the client-side stuff. Things like editing .dat files with L2FileEdit to make sure the server and client actually talk to each other correctly. And honestly, the scariest part is just learning how to read those massive error logs when the server crashes instead of just staring at them blankly.   I'm looking for someone who has some experience and wouldn't mind mentoring me a bit, or even another beginner who wants to team up so we can figure it out together. I can't pay anything since this is just a hobby project, but I’m super patient, I don't expect you to do the work for me, and I’m down to put in the hours to learn. I just need someone I can bounce questions off of when I inevitably mess up a config file.   If you’re bored and want to help a passionate player learn the ropes, drop a reply or shoot me a PM with your Discord. Appreciate any help I can get! ❤️
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..