Jump to content

Recommended Posts

Posted

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.

Posted

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';

Posted

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

Posted

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.

Posted

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 ;)

Posted

:)) 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.

Guest
This topic is now closed to further replies.


  • Posts

    • https://prnt.sc/Bkkc0ShGXv9m https://prnt.sc/-JFLvZXsn27A
    • Hello guys want to sell adena in L2 Reborn Signature x1  Stock =14kk good price 
    • Hi guys, I have the following problem, I want to set up two servers on the same dedicated server and I can't.   L2jacis 409 Linux Server. The first gameserver has the following configuration: # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 190.25.103.103 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7777 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 1 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server1 Login = server1 Password = server1 I configured the second gameserver like this:   # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 0.0.0.0 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7788 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 2 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server2 Login = server2 Password = server2 apart from having tested 0.0.0.0 on the second gameserver I also tried 127.0.0.1 In both cases I see the two servers in the login when I log in, but I try to enter the one with the lowest ping and it kicks me out. The other server always appears with ping 9999 and I try to enter but it doesn't do anything and it freezes the login so I have to log in again. The hexids are in their respective folders. For server 1, it has its hexid inside the gameserver config folder, and I checked that the hexid id is the same id, for example id 1 in the gameserver is also id1 for server 1, and hexid 2 has its hexid 2 for server 2. The server ports are open and listening when I turn on both gameservers. I really don't know what could be wrong. If you could give me some help I would appreciate it. Excuse my English.
    • We have both old channels from 2006-2009 with the 3rd verification function enabled, and new ones.   For availability, please contact us below: Link - Telegram Link - Facebook WhatsApp - Click here to go to WhatsApp chat
    • You can contact me on skype: niedziolek50
  • Topics

×
×
  • Create New...