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(); } }
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
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