Hello Maxcheaters! so before some minutes i put the CTF Event on my server from FFs's CTF Event...!
so when i tested it on Freya those problems didn't exists... but on last revision of H5 i got errors... check this out!
CTF.java
// Remove Summon's buffs if (player.getPet() != null) { L2Summon summon = player.getPet(); for (L2Effect e : summon.getAllEffects()) { if (e != null) { e.exit(); } }
if (summon instanceof L2PetInstance) { summon.unSummon(player); } } }
if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS) { for (L2Effect e : player.getAllEffects()) { if (e != null) { e.exit(); } } }
// Remove player from his party if (player.getParty() != null) { L2Party party = player.getParty(); party.removePartyMember(player, null); }
player.teleToLocation(_teamsBaseX.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseY.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseZ.get(_teams.indexOf(player._teamNameCTF))); } } ThreadPoolManager.getInstance().scheduleGeneral(new BaseTeleportTask(true), 20000); } else { AnnounceToPlayers(true, "CTF Event: Teleporting to team spot in 15 seconds!");
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { spawnAllFlags();
for (L2PcInstance player : _players) { if (player != null) { if (Config.CTF_ON_START_UNSUMMON_PET) { // Remove Summon's buffs if (player.getPet() != null) { L2Summon summon = player.getPet(); for (L2Effect e : summon.getAllEffects()) { if (e != null) { e.exit(); } }
if (summon instanceof L2PetInstance) { summon.unSummon(player); } } }
if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS) { for (L2Effect e : player.getAllEffects()) { if (e != null) { e.exit(); } } }
// Remove player from his party if (player.getParty() != null) { L2Party party = player.getParty(); party.removePartyMember(player, null); }
public static boolean teleportAutoStart() { if (!_joining || _started || _teleport) { return false; }
if (Config.CTF_EVENT_TEAMS.equals("SHUFFLE") && checkMinPlayers(_playersShuffle.size())) { removeOfflinePlayers(); shuffleTeams(); } else if (Config.CTF_EVENT_TEAMS.equals("SHUFFLE") && !checkMinPlayers(_playersShuffle.size())) { AnnounceToPlayers(true, "CTF Event: Not enough players registered."); return false; }
_joining = false; setUserData();
if (Config.CTF_BASE_TELEPORT_FIRST) { AnnounceToPlayers(true, "CTF Event: Teleporting to team base. The fight will being in 20 seconds!");
for (L2PcInstance player : _players) { if (player != null) { if (Config.CTF_ON_START_UNSUMMON_PET) { // Remove Summon's buffs if (player.getPet() != null) { L2Summon summon = player.getPet(); for (L2Effect e : summon.getAllEffects()) { if (e != null) { e.exit(); } }
if (summon instanceof L2PetInstance) { summon.unSummon(player); } } }
if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS) { for (L2Effect e : player.getAllEffects()) { if (e != null) { e.exit(); } } }
// Remove player from his party if (player.getParty() != null) { L2Party party = player.getParty(); party.removePartyMember(player, null); }
player.teleToLocation(_teamsBaseX.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseY.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseZ.get(_teams.indexOf(player._teamNameCTF))); } } ThreadPoolManager.getInstance().scheduleGeneral(new BaseTeleportTask(true), 30000); } else { AnnounceToPlayers(false, "CTF Event: Teleporting to team spot in 15 seconds!");
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable() { @Override public void run() { spawnAllFlags();
for (L2PcInstance player : _players) { if (player != null) { if (Config.CTF_ON_START_UNSUMMON_PET) { // Remove Summon's buffs if (player.getPet() != null) { L2Summon summon = player.getPet(); for (L2Effect e : summon.getAllEffects()) { if (e != null) { e.exit(); } }
People really like my server. But whenever someone mentions L2Mid, the haters show up and start throwing shits 🙂 I can't really say much about the 50–100 online players. I’m thinking of giving L2Mid a try later this yearif anyone’s interested, let’s keep it positive.
LF a skilled (& affordable 😆 ) developer to help me create some stuff for a project.
Message me your discord or type it as a response here and I'll be adding you if you're providing services.
Im writing for someone that share my vision a good L2 gold style server that won't just randomly shut like L2 Gold.in and will help me maybe build the server for the comunity
Question
xXObanXx
Hello Maxcheaters! so before some minutes i put the CTF Event on my server from FFs's CTF Event...!
so when i tested it on Freya those problems didn't exists... but on last revision of H5 i got errors...
check this out!
CTF.java
anyone knows the fix?!
thank's!
3 answers to this question
Recommended Posts