Jump to content

[Share]Underground Coliseum


Wolfy

Recommended Posts

Hello,

 

I made Underground Coliseum for L2JFree and thought to share it here to because it will be shared here sooner or later.

 

You can download it here

 

There you go link for the share.

Link to comment
Share on other sites

thx for share i will test it on l2j ...

 

others.java  WTF ?! it is not patch ...

====================================================
L2Party.java
====================================================
import com.l2jfree.gameserver.model.entity.underground_coliseum.UCWaiting;
import com.l2jfree.gameserver.model.entity.underground_coliseum.UCPoint;
import com.l2jfree.gameserver.model.entity.underground_coliseum.UCTeam;
####################################################
private Object _ucState = null;
####################################################

		if (isLeader && getPartyMembers().size() > 1)
			broadcastToPartyMembersNewLeader();

+			if(getUCState() != null)
+			{
+				if(getUCState() instanceof UCWaiting)
+				{
+					UCWaiting waiting = (UCWaiting)getUCState();
+					if(_members == null || _members.size() < Config.UC_PARTY_LIMIT)
+					{
+						waiting.setParty(null);
+						waiting.clean();
+					}
+				}
+				else if(getUCState() instanceof UCTeam)
+				{
+					UCTeam team = (UCTeam)getUCState();
+					UCTeam otherTeam = team.getOtherTeam();
+
+					if(_members == null || _members.size() < Config.UC_PARTY_LIMIT)
+					{
+						UCPoint[] points = team.getBaseArena().getPoints();
+
+						for (UCPoint point : points)
+							point.actionDoors(false);
+
+						team.setParty(null);
+                       team.clean(true);
+
+						otherTeam.setStatus(UCTeam.WIN);
+					}
+
+					if(player.isDead())
+						UCTeam.resPlayer(player);
+
+					player.setTeam(0);
+					player.cleanUCStats();
+					player.teleToLocation(team.getBaseArena().getReturnPoint(), true);
+				}
+			}

		L2PartyRoom room = getPartyRoom();
		if (getPartyMembers().size() == 1)
####################################################
public Object getUCState()
{
	return _ucState;
}

public void setUCState(Object uc)
{
	_ucState = uc;
}

====================================================
L2PcInstance.java
====================================================
import com.l2jfree.gameserver.model.entity.underground_coliseum.UCTeam;
####################################################
private int UCKills = 0;
private int UCDeaths = 0;
private static final int UC_STATE_NONE = 0;
private static final int UC_STATE_POINT = 1;
private static final int UC_STATE_ARENA = 2;
private int UCState = 0;
####################################################
@doDie method
	if (isInParty() && getParty().isInDimensionalRift())
		getParty().getDimensionalRift().memberDead(this);

+		if (getAgathionId() != 0)
+			setAgathionId(0);
+
+		if(killer != null && getParty() != null && getParty().getUCState() instanceof UCTeam)
+			((UCTeam)getParty().getUCState()).onKill(this, killer.getActingPlayer());

	// Calculate death penalty buff
	calculateDeathPenaltyBuffLevel(killer);
####################################################
public int getUCKills()
{
	return UCKills;
}

public void increaseKillCountUC()
{
	UCKills++;
}

public int getUCDeaths()
{
	return UCDeaths;
}

public void increaseDeathCountUC()
{
	UCDeaths++;
}

public void cleanUCStats()
{
	UCDeaths = 0;
	UCKills = 0;
}

public void setUCState(int state)
{
	UCState = state; 
}

public int getUCState()
{
	return UCState;
}
====================================================
L2GameServer.java
====================================================
import com.l2jfree.gameserver.instancemanager.games.UndergroundColiseumManager;
####################################################
UndergroundColiseumManager.getInstance();
====================================================
SystemMessageId.java
====================================================
 */
STARSTONE_COLLECTION_FAILED(2424),

+	/**
+	 * ID: 2427<br>
+	 * Message: The Red Team is victorious.
+	 */
+	THE_RED_TEAM_IS_VICTORIOUS(2427),
+
+	/**
+	 * ID: 2428<br>
+	 * Message: The Blue Team is victorious.
+	 */
+	THE_BLUE_TEAM_IS_VICTORIOUS(2428),

/**
 * ID: 2449<br> //*/
====================================================
Config.java
====================================================
public static boolean 				ALLOW_NAIA_MULTY_PARTY_INVASION;
public static int 					ALT_NAIA_ROOM_DURATION;

+	public static ArrayList<Integer> UC_WARDAYS = new ArrayList<Integer>(7);
+	public static int UC_START_HOUR;
+	public static int UC_END_HOUR;
+	public static int UC_ROUND_TIME;
+	public static int UC_PARTY_LIMIT;
####################################################
		ALLOW_NAIA_MULTY_PARTY_INVASION = Boolean.parseBoolean(altSettings.getProperty("AllowNaiaMultiPartyInvasion", "false"));
		ALT_NAIA_ROOM_DURATION = Integer.parseInt(altSettings.getProperty("AltNaiaRoomDuration", "5"));

+			String[] UCWardeys = altSettings.getProperty("UCWarDay", "5,6,1").split(",");
+
+			for (String warday : UCWardeys)
+				UC_WARDAYS.add(Integer.parseInt(warday));
+
+			UC_START_HOUR = Integer.parseInt(altSettings.getProperty("UCStartHour", "21"));
+			UC_END_HOUR = Integer.parseInt(altSettings.getProperty("UCEndHour", "23"));
+			UC_ROUND_TIME = Integer.parseInt(altSettings.getProperty("UCRoundTime", "10"));
+			UC_PARTY_LIMIT = Integer.parseInt(altSettings.getProperty("UCPartyLimit", "7"));
	}
}

====================================================
npc.sql
====================================================
UPDATE `npc` SET `level`='70',`type`='L2UndergroundColiseumManager' WHERE `id`='32377';
UPDATE `npc` SET `level`='45', `hp`='38120', `mp`='678', `patk`='1538', `pdef`='381', `matk`='713', `mdef`='464', `type`='L2UndergroundColiseumTower' WHERE `id`='18539';
UPDATE `npc` SET `level`='55', `hp`='73028', `mp`='988', `patk`='3799', `pdef`='515', `matk`='1767', `mdef`='628', `type`='L2UndergroundColiseumTower' WHERE `id`='18540';
UPDATE `npc` SET `level`='65', `hp`='102244', `mp`='1320', `patk`='8234', `pdef`='670', `matk`='3825', `mdef`='816', `type`='L2UndergroundColiseumTower' WHERE `id`='18541';
UPDATE `npc` SET `level`='75', `hp`='117407', `mp`='1674', `patk`='12467', `pdef`='838', `matk`='5792', `mdef`='1021', `type`='L2UndergroundColiseumTower' WHERE `id`='18542';
UPDATE `npc` SET `level`='80', `hp`='178902', `mp`='1859', `patk`='18111', `pdef`='923', `matk`='8416', `mdef`='1125', `type`='L2UndergroundColiseumTower' WHERE `id`='18543';

Link to comment
Share on other sites

Sorry i didn't made a patch...you have to add it manually, but i think i was clear enough in that file. Anyway...you need basic knowledge to add it... so leaches and noobs shouldn't bother.

 

What is whit that thread ? This is not leached or bought or anything ... it is coded by me for l2jfree.

 

That script from l2jeurope is not retail like and i saw a few bugs just from a quick scan. Still it can be used. And my version can be used on epilogue/ final / etc too.

 

P.S. I only added good coords for no level limit arena. ... For the other 4 arenas you need to add good coords(can take it from l2jeurope script).

Link to comment
Share on other sites

Hello,

 

I made Underground Coliseum for L2JFree and thought to share it here to because it will be shared here sooner or later.

...

No, you just edited the code (removed russian comments) in payed Russian L2J pack (ihgap), it's source codes can be found here on forums. The original author of this event is VISTALL.

Link to comment
Share on other sites

No, you just edited (removed Russian comments) the code in payed Russian L2J pack (ihgap), it's source codes can be found here on forums. The original author of this event is VISTALL.

:)) Make me laugh more ... Compare the code and see if it is the same code...It is true i used a few methods from them but most of the code is changed... Their code is bugged, not finished and not retail like ;)

Link to comment
Share on other sites

:)) Make me laugh more ... Compare the code and see if it is the same code...It is true i used a few methods from them but most of the code is changed... Their code is bugged, not finished and not retail like ;)

I don't care about if their code is working or not. If you used anything from their code, you should note it in your credits. You should respect original author of this code.

 

Anyway, you're right, I didn't check all that classes (didn't have time to do so, I was at work) and some of them, for example Underground Tower were just C/P, but the rest seems different. I can't check it more, because I have an old version of their sources, where UC is not finished, so... well never mind. Good work.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...