Jump to content

ThelwHelpRePaidia

Members
  • Posts

    269
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by ThelwHelpRePaidia

  1. exw vali oti geodata uparxei mou exei spasei ta neura kai kapios mou eipe oti 8elei edit apo emena alla den exw asxolithi pote me geodata kai den kserw..
  2. Kalhspera paidia 8a h8ela kapion na me voithisi me to geodata pou logika ayto 8a ftaiei exw katevasei geoeditor alla den mporw na to doulepso an mporei kapios na me voithisi den thelw kati trelo gia 2 farm zones isa isa na mhn kolane ta terata ston toixo giati den tous varane ta terata otan pane pisw apo toixo..
  3. Hello i wanna know what files have vitality inside the client gracia side thanks
  4. Hello how can i make buffer not to heal combat players?
  5. Kalhspera paidia pws mporw na kanw tin buffer na mhn kanei heal se combat kai flag players l2jfrozen
  6. Kalhspera thelw na agoraso Abnormal Effect vitality gia interlude afou den uparxei shared.opios endiaferete as steilei mhnhma euxarstw gia ton xrono sas.
  7. ωραιος ρε φιλε χαχαχα ειμαι τυφλος :)
  8. Καλησπερα παιδια επειδη ψαχνω εδω και καιρο μηπως εχει καπιος κανα event Team vs Team και CTF για Frozen interlude ? κανα Shared δεν θελω κατι το τρελο ενα απλο event ευχαριστω.
  9. public boolean doDie(L2Character killer) { // Kill the L2PcInstance if (KILL_STEAK>0) { if (KILL_STEAK>=5&&KILL_STEAK<10) Announcements.getInstance().announceToAll(killer.getName()+" has stopped "+getName()+"'s killing spree of "+KILL_STEAK+" kills!!"); else if (KILL_STEAK<20) { sendMessage(killer.getName()+" has stopped "+getName()+"'s killing spree of "+KILL_STEAK+" kills!!"); if (!hadHero) setHero(false); } else if (KILL_STEAK<60) { sendMessage(killer.getName()+" has ended "+getName()+"'s rampage of "+KILL_STEAK+" strait kills!"); stopAbnormalEffect(AbnormalEffect.STEALTH); if (!hadHero) setHero(false); } else if (KILL_STEAK>60) { sendMessage(killer.getName()+" has given an end to "+getName()+"'s reign of terror of "+KILL_STEAK+" strait kills!!!"); stopAbnormalEffect(AbnormalEffect.STEALTH); if (!hadHero) setHero(false); } KILL_STEAK=0; } if (!super.doDie(killer)) return false; } private int KILL_STEAK=0; final boolean hadHero=Hero.getInstance().isHero(getObjectId()); i get red line at that "isHero" some one can find what is happenning? l2jfrozen i use here final boolean hadHero=Hero.getInstance().isHero(getObjectId());
  10. Ok found it thanks @icathialord
  11. Damn. ok i will search it thanks.
  12. i found only that :/ sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000));
  13. raf it's not there tessa where can i find that at eclipse? klay where can i find that at eclipse? sweets it's no there i searched
  14. Hello guys where can i find this "Welcome bla bla bla" this with the black circle i want to change it http://postimg.org/image/gufxhu4lp/
  15. What should i remove? :D first time i see this /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jfrozen.gameserver.model.entity.siege; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Calendar; import java.util.List; import java.util.logging.Logger; import javolution.util.FastList; import com.l2jfrozen.gameserver.datatables.csv.DoorTable; import com.l2jfrozen.gameserver.datatables.sql.ClanTable; import com.l2jfrozen.gameserver.model.L2Clan; import com.l2jfrozen.gameserver.model.L2Object; import com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.entity.Announcements; import com.l2jfrozen.gameserver.model.entity.sevensigns.SevenSigns; import com.l2jfrozen.gameserver.model.zone.type.L2FortZone; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; import com.l2jfrozen.gameserver.network.serverpackets.PledgeShowInfoUpdate; import com.l2jfrozen.gameserver.thread.ThreadPoolManager; import com.l2jfrozen.util.CloseUtil; import com.l2jfrozen.util.database.L2DatabaseFactory; /** * @author programmos */ public class Fort { protected static final Logger _log = Logger.getLogger(Fort.class.getName()); // ========================================================= // Data Field private int _fortId = 0; private List<L2DoorInstance> _doors = new FastList<L2DoorInstance>(); private List<String> _doorDefault = new FastList<String>(); private String _name = ""; private int _ownerId = 0; private L2Clan _fortOwner = null; private FortSiege _siege = null; private Calendar _siegeDate; private int _siegeDayOfWeek = 7; // Default to saturday private int _siegeHourOfDay = 20; // Default to 8 pm server time private L2FortZone _zone; private L2Clan _formerOwner = null; // ========================================================= // Constructor public Fort(int fortId) { _fortId = fortId; load(); loadDoor(); } // ========================================================= // Method - Public public void EndOfSiege(L2Clan clan) { ThreadPoolManager.getInstance().scheduleGeneral(new endFortressSiege(this, clan), 1000); } public void Engrave(L2Clan clan, int objId) { getSiege().announceToPlayer("Clan " + clan.getName() + " has finished to raise the flag.", true); setOwner(clan); } // This method add to the treasury /** * Add amount to fort instance's treasury (warehouse). * @param amount */ public void addToTreasury(int amount) { // TODO: Implement? } /** * Add amount to fort instance's treasury (warehouse), no tax paying. * @param amount * @return */ public boolean addToTreasuryNoTax(int amount) { return true; } /** * Move non clan members off fort area and to nearest town.<BR> * <BR> */ public void banishForeigners() { _zone.banishForeigners(getOwnerId()); } /** * @param x * @param y * @param z * @return true if object is inside the zone */ public boolean checkIfInZone(int x, int y, int z) { return _zone.isInsideZone(x, y, z); } /** * Sets this forts zone * * @param zone */ public void setZone(L2FortZone zone) { _zone = zone; } public L2FortZone getZone() { return _zone; } /** * Get the objects distance to this fort * * @param obj * @return */ public double getDistance(L2Object obj) { return _zone.getDistanceToZone(obj); } public void closeDoor(L2PcInstance activeChar, int doorId) { openCloseDoor(activeChar, doorId, false); } public void openDoor(L2PcInstance activeChar, int doorId) { openCloseDoor(activeChar, doorId, true); } public void openCloseDoor(L2PcInstance activeChar, int doorId, boolean open) { if(activeChar.getClanId() != getOwnerId()) return; L2DoorInstance door = getDoor(doorId); if(door != null) { if(open) { door.openMe(); } else { door.closeMe(); } } door = null; } // This method is used to begin removing all fort upgrades public void removeUpgrade() { removeDoorUpgrade(); } // This method updates the fort tax rate public void setOwner(L2Clan clan) { // Remove old owner if(getOwnerId() > 0 && (clan == null || clan.getClanId() != getOwnerId())) { // Try to find clan instance L2Clan oldOwner = ClanTable.getInstance().getClan(getOwnerId()); if(oldOwner != null) { if(_formerOwner == null) { _formerOwner = oldOwner; } // Unset has fort flag for old owner oldOwner.setHasFort(0); Announcements.getInstance().announceToAll(oldOwner.getName() + " has lost " + getName() + " fortress!"); } oldOwner = null; } updateOwnerInDB(clan); // Update in database if(getSiege().getIsInProgress()) { getSiege().midVictory(); // Mid victory phase of siege } updateClansReputation(); _fortOwner = clan; } public void removeOwner(L2Clan clan) { if(clan != null) { _formerOwner = clan; clan.setHasFort(0); Announcements.getInstance().announceToAll(clan.getName() + " has lost " + getName() + " fort"); clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan)); } updateOwnerInDB(null); if(getSiege().getIsInProgress()) { getSiege().midVictory(); } updateClansReputation(); _fortOwner = null; } // This method updates the fort tax rate public void setTaxPercent(L2PcInstance activeChar, int taxPercent) { int maxTax; switch(SevenSigns.getInstance().getSealOwner(SevenSigns.SEAL_STRIFE)) { case SevenSigns.CABAL_DAWN: maxTax = 25; break; case SevenSigns.CABAL_DUSK: maxTax = 5; break; default: // no owner maxTax = 15; } if(taxPercent < 0 || taxPercent > maxTax) { activeChar.sendMessage("Tax value must be between 0 and " + maxTax + "."); return; } activeChar.sendMessage(getName() + " fort tax changed to " + taxPercent + "%."); } /** * Respawn all doors on fort grounds<BR> * <BR> */ public void spawnDoor() { spawnDoor(false); } /** * Respawn all doors on fort grounds * @param isDoorWeak */ public void spawnDoor(boolean isDoorWeak) { for(int i = 0; i < getDoors().size(); i++) { L2DoorInstance door = getDoors().get(i); if(door.getCurrentHp() >= 0) { door.decayMe(); // Kill current if not killed already door = DoorTable.parseList(_doorDefault.get(i)); if(isDoorWeak) { door.setCurrentHp(door.getMaxHp() / 2); } else { door.setCurrentHp(door.getMaxHp()); } door.spawnMe(door.getX(), door.getY(), door.getZ()); getDoors().set(i, door); } else if(!door.getOpen()) { door.closeMe(); } door = null; } loadDoorUpgrade(); // Check for any upgrade the doors may have } // This method upgrade door public void upgradeDoor(int doorId, int hp, int pDef, int mDef) { L2DoorInstance door = getDoor(doorId); if(door == null) return; if(door.getDoorId() == doorId) { door.setCurrentHp(door.getMaxHp() + hp); saveDoorUpgrade(doorId, hp, pDef, mDef); return; } } // ========================================================= // Method - Private // This method loads fort private void load() { Connection con = null; try { PreparedStatement statement; ResultSet rs; con = L2DatabaseFactory.getInstance().getConnection(false); statement = con.prepareStatement("Select * from fort where id = ?"); statement.setInt(1, getFortId()); rs = statement.executeQuery(); while(rs.next()) { _name = rs.getString("name"); _siegeDate = Calendar.getInstance(); _siegeDate.setTimeInMillis(rs.getLong("siegeDate")); _siegeDayOfWeek = rs.getInt("siegeDayOfWeek"); if(_siegeDayOfWeek < 1 || _siegeDayOfWeek > 7) { _siegeDayOfWeek = 7; } _siegeHourOfDay = rs.getInt("siegeHourOfDay"); if(_siegeHourOfDay < 0 || _siegeHourOfDay > 23) { _siegeHourOfDay = 20; } _ownerId = rs.getInt("owner"); } rs.close(); statement.close(); statement = null; rs = null; if(getOwnerId() > 0) { L2Clan clan = ClanTable.getInstance().getClan(getOwnerId()); // Try to find clan instance //ThreadPoolManager.getInstance().scheduleGeneral(new FortUpdater(clan, 1), 3600000); // Schedule owner tasks to start running if(clan!=null) { clan.setHasFort(getFortId()); _fortOwner = clan; } clan = null; } else { _fortOwner = null; } } catch(Exception e) { _log.warning("Exception: loadFortData(): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } // This method loads fort door data from database private void loadDoor() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = con.prepareStatement("Select * from fort_door where fortId = ?"); statement.setInt(1, getFortId()); ResultSet rs = statement.executeQuery(); while(rs.next()) { // Create list of the door default for use when respawning dead doors _doorDefault.add(rs.getString("name") + ";" + rs.getInt("id") + ";" + rs.getInt("x") + ";" + rs.getInt("y") + ";" + rs.getInt("z") + ";" + rs.getInt("range_xmin") + ";" + rs.getInt("range_ymin") + ";" + rs.getInt("range_zmin") + ";" + rs.getInt("range_xmax") + ";" + rs.getInt("range_ymax") + ";" + rs.getInt("range_zmax") + ";" + rs.getInt("hp") + ";" + rs.getInt("pDef") + ";" + rs.getInt("mDef")); L2DoorInstance door = DoorTable.parseList(_doorDefault.get(_doorDefault.size() - 1)); door.spawnMe(door.getX(), door.getY(), door.getZ()); _doors.add(door); DoorTable.getInstance().putDoor(door); door = null; } rs.close(); statement.close(); statement = null; rs = null; } catch(Exception e) { _log.warning("Exception: loadFortDoor(): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } // This method loads fort door upgrade data from database private void loadDoorUpgrade() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = con.prepareStatement("Select * from fort_doorupgrade where doorId in (Select Id from fort_door where fortId = ?)"); statement.setInt(1, getFortId()); ResultSet rs = statement.executeQuery(); while(rs.next()) { upgradeDoor(rs.getInt("id"), rs.getInt("hp"), rs.getInt("pDef"), rs.getInt("mDef")); } rs.close(); statement.close(); statement = null; rs = null; } catch(Exception e) { _log.warning("Exception: loadFortDoorUpgrade(): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } private void removeDoorUpgrade() { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = con.prepareStatement("delete from fort_doorupgrade where doorId in (select id from fort_door where fortId=?)"); statement.setInt(1, getFortId()); statement.execute(); statement.close(); statement = null; } catch(Exception e) { _log.warning("Exception: removeDoorUpgrade(): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } private void saveDoorUpgrade(int doorId, int hp, int pDef, int mDef) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = con.prepareStatement("INSERT INTO fort_doorupgrade (doorId, hp, pDef, mDef) values (?,?,?,?)"); statement.setInt(1, doorId); statement.setInt(2, hp); statement.setInt(3, pDef); statement.setInt(4, mDef); statement.execute(); statement.close(); statement = null; } catch(Exception e) { _log.warning("Exception: saveDoorUpgrade(int doorId, int hp, int pDef, int mDef): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } private void updateOwnerInDB(L2Clan clan) { if(clan != null) { _ownerId = clan.getClanId(); // Update owner id property } else { _ownerId = 0; // Remove owner } Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement; statement = con.prepareStatement("UPDATE fort SET owner=? where id = ?"); statement.setInt(1, getOwnerId()); statement.setInt(2, getFortId()); statement.execute(); statement.close(); statement = null; // ============================================================================ // Announce to clan memebers if(clan != null) { clan.setHasFort(getFortId()); // Set has fort flag for new owner Announcements.getInstance().announceToAll(clan.getName() + " has taken " + getName() + " fort!"); clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan)); clan.broadcastToOnlineMembers(new PlaySound(1, "Siege_Victory", 0, 0, 0, 0, 0)); //ThreadPoolManager.getInstance().scheduleGeneral(new FortUpdater(clan, 1), 3600000); // Schedule owner tasks to start running } } catch(Exception e) { _log.warning("Exception: updateOwnerInDB(L2Clan clan): " + e.getMessage()); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } } // ========================================================= // Property public final int getFortId() { return _fortId; } public final L2Clan getOwnerClan() { return _fortOwner; } public final int getOwnerId() { return _ownerId; } public final L2DoorInstance getDoor(int doorId) { if(doorId <= 0) return null; for(int i = 0; i < getDoors().size(); i++) { L2DoorInstance door = getDoors().get(i); if(door.getDoorId() == doorId) return door; door = null; } return null; } public final List<L2DoorInstance> getDoors() { return _doors; } public final FortSiege getSiege() { if(_siege == null) { _siege = new FortSiege(new Fort[] { this }); } return _siege; } public final Calendar getSiegeDate() { return _siegeDate; } public final void setSiegeDate(Calendar siegeDate) { _siegeDate = siegeDate; } public final int getSiegeDayOfWeek() { return _siegeDayOfWeek; } public final int getSiegeHourOfDay() { return _siegeHourOfDay; } public final String getName() { return _name; } public void updateClansReputation() { if(_formerOwner != null) { if(_formerOwner != ClanTable.getInstance().getClan(getOwnerId())) { int maxreward = Math.max(0, _formerOwner.getReputationScore()); L2Clan owner = ClanTable.getInstance().getClan(getOwnerId()); if(owner != null) { owner.setReputationScore(owner.getReputationScore() + Math.min(500, maxreward), true); owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner)); } owner = null; } else { _formerOwner.setReputationScore(_formerOwner.getReputationScore() + 250, true); } _formerOwner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(_formerOwner)); } else { L2Clan owner = ClanTable.getInstance().getClan(getOwnerId()); if(owner != null) { owner.setReputationScore(owner.getReputationScore() + 500, true); owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner)); } owner = null; } } private class endFortressSiege implements Runnable { private Fort _f; private L2Clan _clan; public endFortressSiege(Fort f, L2Clan clan) { _f = f; _clan = clan; } @Override public void run() { _f.Engrave(_clan, 0); } } }
  16. Hello i have this problem when some is dying to a town http://postimg.org/image/4rypri4yd/ here is the gameserver error at com.l2jfrozen.gameserver.model.entity.siege.Fort.checkIfInZone(Fort.j at com.l2jfrozen.gameserver.managers.FortManager.getFort(FortManager.jav at com.l2jfrozen.gameserver.managers.FortManager.getFort(FortManager.jav at com.l2jfrozen.gameserver.network.serverpackets.Die.writeImpl(Die.java at com.l2jfrozen.gameserver.network.serverpackets.L2GameServerPacket.wri eServerPacket.java:42) at com.l2jfrozen.netcore.SelectorThread.putPacketIntoWriteBuffer(Selecto java:627) at com.l2jfrozen.netcore.SelectorThread.prepareWriteBuffer(SelectorThrea 99) at com.l2jfrozen.netcore.SelectorThread.writePacket(SelectorThread.java: at com.l2jfrozen.netcore.SelectorThread.run(SelectorThread.java:182) g.NullPointerException at com.l2jfrozen.gameserver.model.entity.siege.Fort.checkIfInZone(Fort.j at com.l2jfrozen.gameserver.managers.FortManager.getFort(FortManager.jav at com.l2jfrozen.gameserver.managers.FortManager.getFort(FortManager.jav at com.l2jfrozen.gameserver.datatables.csv.MapRegionTable.getTeleToLocat egionTable.java:456) at com.l2jfrozen.gameserver.network.clientpackets.RequestRestartPoint$De run(RequestRestartPoint.java:208) at com.l2jfrozen.gameserver.network.clientpackets.RequestRestartPoint.ru questRestartPoint.java:257) at com.l2jfrozen.gameserver.network.clientpackets.L2GameClientPacket.run lientPacket.java:75) at com.l2jfrozen.gameserver.network.L2GameClient.run(L2GameClient.java:1 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
  17. I found it ok it was here private static void Message(L2PcInstance activeChar) { String name = activeChar.getName(); activeChar.sendPacket(new CreatureSay(activeChar.getObjectId(), Say2.PARTY, name, "Welcome to L2Elysium!")); activeChar.sendPacket(new CreatureSay(0, Say2.PARTY, name, "Have Fun and Nice Stay on!")); activeChar.sendPacket(new CreatureSay(0, Say2.PARTY, name, "Vote for us every 24h!")); } thanks :)
  18. if (Config.PM_MESSAGE_ON_START) { activeChar.sendPacket(new CreatureSay(2, Say2.HERO_VOICE,Config.PM_TEXT1,Config.PM_SERVER_NAME)); activeChar.sendPacket(new CreatureSay(15, Say2.PARTYROOM_COMMANDER,activeChar.getName(),Config.PM_TEXT2)); } if (Config.SERVER_TIME_ON_START) activeChar.sendMessage("SVR time is " + fmt.format(new Date(System.currentTimeMillis()))); }
  19. yeah i have changed them config\frozen # Show Welcome PM on start PMWelcomeShow = True PMServerName = L2Test PMText1 = Have Fun and Nice Stay on PMText2 = Vote for us every 12h and the config\functions # Server Name Enabled: Displays a message on char login # with the server name you have set below. ServerNameEnabled = True # Here you should type your server's name. ServerName = L2Test but still only the green letters dont change
  20. Hello guys i have this problem with the green letters http://postimg.org/image/dypsa7uqd/ and make the Welcome to l2elysium to other but i cant find it if you can help me.. sry for my bad english
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock