Jump to content
  • 0

[Help] Gracia Final olympiad and hero problem.


JustLikeMe

Question

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.

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

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?

Link to comment
Share on other sites

  • 0

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 .

 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

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.



×
×
  • Create New...