Jump to content

davidBm

Members
  • Posts

    197
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by davidBm

  1. Thx Ventic for suport.!! Close this topic i fixed it.!!!! Thx Again
  2. Ventic if i give you the source can you add it for me plz? :) just if you have time plz man
  3. Make it for freya plz:D
  4. Hi all i install Phoenix event engine and i build him and i get this error some 1 know how to fix plz http://postimg.org/image/lu5k29ka9/
  5. Thx for help:P
  6. and where i must change that.:)plz :P tell me:D thx
  7. http://subversion.assembla.com/svn/GUP_Source/Freya/GUP_Games/
  8. no error. just he say all time when you reach 10 vote you whill get reward and i go i vote and still 10 votes and is one free source la2phandora
  9. Hi all i have one lod vote reward. and he do't worck in tops i use freya pack and i don't know wha't i mush change to worck. in hopzone/topzone some help what they change
  10. Error on: ServerFreya\gameserver\data\scripts\custom\Enchant\Enchant.java.error.log Line: -1 - Column: -1 compilation failed That say. Can you help ?
  11. Can make it for Freya?. thx
  12. Hi all. I will Share.Custom Tatto http://www.4shared.com/rar/BCgwFGsl/Tattoo.html
  13. Hi all, i use freya client. and when player have the fight olympiad ranking doesn't work some help plz. thx Olympiad Start Time in Military hours Default 6pm (18) # Default: 18 AltOlyStartTime = 18 # Olympiad Start Time for Min's, Default 00 so at the start of the hour. # Default: 00 AltOlyMin = 22 # Olympiad End Period Date - day(s) of month # (e.g. 1 would mean oly period ends every 1st day of month) # (e.g. 1,15 would mean oly period ends every 1st and 15th day of month) # CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here! # Default: 1 #AltOlyEndDate = 1,8,15,22 AltOlyEndDate = 1,15 # Olympiad End Period Time - in format hh:mm:ss (24 hours format) # Default: 12:00:00 AltOlyEndHour = 12:00:00 # Olympiad Competition Period, Default 6 hours. # (If set different, should be increment by 10mins) # Default: 21600000 #AltOlyCPeriod = 21600000 AltOlyCPeriod = 21600000 # Olympiad Battle Period, Default 6 minutes. # Default: 300000 AltOlyBattle = 300000 # Olympiad Weekly Period, Default 1 week # Used for adding points to nobles # Default: 604800000 AltOlyWPeriod = 604800000 # Olympiad Validation Period, Default 24 Hours. # Default: 86400000 AltOlyVPeriod = 86400000 # Points for reaching Noblesse for the first time # Default: 18 AltOlyStartPoints = 18 # Points every week # Default: 3 AltOlyWeeklyPoints = 3 # Required number of participants for the class based games # Default: 5 AltOlyClassedParticipants = 2 # Required number of participants for the non-class based games # Default: 9 AltOlyNonClassedParticipants = 2 # Required number of participants for the 3x3 teams games # Default: 9 AltOlyTeamsParticipants = 6 # Number used for displaying amount of registered participants, messages "Fewer than ..." or "More than ...". # 0 for displaying digits instead of text phrase (old style). # Default: 100 AltOlyRegistrationDisplayNumber = 100 # Reward for the class based games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,50 AltOlyClassedReward = 13722,50 # Reward for the non-class based games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,40 AltOlyNonClassedReward = 13722,40 # Reward for the 3x3 teams games # Format: itemId1,itemNum1;itemId2,itemNum2... # Default: 13722,85 AltOlyTeamReward = 13722,85 # ItemId used for exchanging to the points. # Default: 13722 AltOlyCompRewItem = 13722 # The minimal matches you need to participate to receive point rewards # Default: 9 AltOlyMinMatchesForPoints = 9 # Rate to exchange points to reward item. # Default: 1000 AltOlyGPPerPoint = 1000 # Noblesse points awarded to Heros. # Default: 180 AltOlyHeroPoints = 180 # Noblesse points awarded to Rank 1 members. # Default: 120 AltOlyRank1Points = 120 # Noblesse points awarded to Rank 2 members. # Default: 80 AltOlyRank2Points = 80 # Noblesse points awarded to Rank 3 members. # Default: 55 AltOlyRank3Points = 55 # Noblesse points awarded to Rank 4 members. # Default: 35 AltOlyRank4Points = 35 # Noblesse points awarded to Rank 5 members. # Default: 20 AltOlyRank5Points = 20 # Maximum points that player can gain/lose on a match. # Default: 10 AltOlyMaxPoints = 10 # Hero tables show last month's winners or current status. # Default: True AltOlyShowMonthlyWinners = True # Olympiad Managers announce each start of fight. # Default: True AltOlyAnnounceGames = True # Restrict specified items in Olympiad. ItemID's need to be separated with a comma (ex. 1,200,350) # Equipped items will be moved to inventory during port. # Default: 6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,9388,9389,9390,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,20759,20775,20776,20777,20778,14774 AltOlyRestrictedItems = 6611,6612,6613,6614,6615,6616,6617,6618,6619,6620,6621,9388,9389,9390,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,20759,20775,20776,20777,20778,14774 # Enchant limit for items during Olympiad battles. Disabled = -1. # Default: -1 AltOlyEnchantLimit = 8 # Log all Olympiad fights and outcome to olympiad.csv file. # Default: False AltOlyLogFights = False # Time to wait before teleported to arena. # Default: 120 AltOlyWaitTime = 60
  14. Hi all. I whan't to make one XML. From where to buy Skills. And i don't know to make it some 1 help me.
  15. ok,,, SOME 1 have link for stable SVN, (hi5) PLZ:D i chan't find him. or one but to be god.
  16. https://subversion.assembla.com/svn/l2j-high-five
  17. [javac] C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\java\com\l2jserver\gameserver\model\zone\L2ZoneType.java:405: error: incompatible types [javac] return _characterList; [javac] ^ [javac] required: FastMap<Integer,L2Character> [javac] found: L2TIntObjectHashMap<L2Character> [javac] 1 error BUILD FAILED
  18. /* * 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.l2jserver.gameserver.model.zone; import gnu.trove.TObjectProcedure; import java.util.Map; import java.util.logging.Logger; import javolution.util.FastList; import javolution.util.FastMap; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.L2Object.InstanceType; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket; import com.l2jserver.gameserver.util.L2TIntObjectHashMap; /** * Abstract base class for any zone type * Handles basic operations * * @author durgus */ public abstract class L2ZoneType { protected static final Logger _log = Logger.getLogger(L2ZoneType.class.getName()); private final int _id; protected L2ZoneForm _zone; protected L2TIntObjectHashMap<L2Character> _characterList; /** Parameters to affect specific characters */ private boolean _checkAffected = false; private String _name = null; private int _minLvl; private int _maxLvl; private int[] _race; private int[] _class; private char _classType; private Map<Quest.QuestEventType, FastList<Quest>> _questEvents; private InstanceType _target = InstanceType.L2Character; // default all chars protected L2ZoneType(int id) { _id = id; _characterList = new L2TIntObjectHashMap<L2Character>(); _minLvl = 0; _maxLvl = 0xFF; _classType = 0; _race = null; _class = null; } /** * @return Returns the id. */ public int getId() { return _id; } /** * Setup new parameters for this zone * @param type * @param value */ public void setParameter(String name, String value) { _checkAffected = true; // Zone name if (name.equals("name")) { _name = value; } // Minimum level else if (name.equals("affectedLvlMin")) { _minLvl = Integer.parseInt(value); } // Maximum level else if (name.equals("affectedLvlMax")) { _maxLvl = Integer.parseInt(value); } // Affected Races else if (name.equals("affectedRace")) { // Create a new array holding the affected race if (_race == null) { _race = new int[1]; _race[0] = Integer.parseInt(value); } else { int[] temp = new int[_race.length + 1]; int i = 0; for (; i < _race.length; i++) temp = _race; temp = Integer.parseInt(value); _race = temp; } } // Affected classes else if (name.equals("affectedClassId")) { // Create a new array holding the affected classIds if (_class == null) { _class = new int[1]; _class[0] = Integer.parseInt(value); } else { int[] temp = new int[_class.length + 1]; int i = 0; for (; i < _class.length; i++) temp = _class; temp = Integer.parseInt(value); _class = temp; } } // Affected class type else if (name.equals("affectedClassType")) { if (value.equals("Fighter")) { _classType = 1; } else { _classType = 2; } } else if (name.equals("targetClass")) { _target = Enum.valueOf(InstanceType.class, value); } else _log.info(getClass().getSimpleName()+": Unknown parameter - "+name+" in zone: "+getId()); } /** * Checks if the given character is affected by this zone * @param character * @return */ private boolean isAffected(L2Character character) { // Check lvl if (character.getLevel() < _minLvl || character.getLevel() > _maxLvl) return false; // check obj class if (!character.isInstanceType(_target)) return false; if (character instanceof L2PcInstance) { // Check class type if (_classType != 0) { if (((L2PcInstance) character).isMageClass()) { if (_classType == 1) return false; } else if (_classType == 2) return false; } // Check race if (_race != null) { boolean ok = false; for (int i = 0; i < _race.length; i++) { if (((L2PcInstance) character).getRace().ordinal() == _race) { ok = true; break; } } if (!ok) return false; } // Check class if (_class != null) { boolean ok = false; for (int i = 0; i < _class.length; i++) { if (((L2PcInstance) character).getClassId().ordinal() == _class) { ok = true; break; } } if (!ok) return false; } } return true; } /** * Set the zone for this L2ZoneType Instance * @param zone */ public void setZone(L2ZoneForm zone) { if (_zone != null) throw new IllegalStateException("Zone already set"); _zone = zone; } /** * Returns this zones zone form * @param zone * @return */ public L2ZoneForm getZone() { return _zone; } /** * Set the zone name. * @param name */ public void setName(String name) { _name = name; } /** * Returns zone name * @return */ public String getName() { return _name; } /** * Checks if the given coordinates are within zone's plane * @param x * @param y */ public boolean isInsideZone(int x, int y) { return _zone.isInsideZone(x, y, _zone.getHighZ()); } /** * Checks if the given coordinates are within the zone * @param x * @param y * @param z */ public boolean isInsideZone(int x, int y, int z) { return _zone.isInsideZone(x, y, z); } /** * Checks if the given object is inside the zone. * * @param object */ public boolean isInsideZone(L2Object object) { return isInsideZone(object.getX(), object.getY(), object.getZ()); } public double getDistanceToZone(int x, int y) { return getZone().getDistanceToZone(x, y); } public double getDistanceToZone(L2Object object) { return getZone().getDistanceToZone(object.getX(), object.getY()); } public void revalidateInZone(L2Character character) { // If the character can't be affected by this zone return if (_checkAffected) { if (!isAffected(character)) return; } // If the object is inside the zone... if (isInsideZone(character.getX(), character.getY(), character.getZ())) { // Was the character not yet inside this zone? if (!_characterList.containsKey(character.getObjectId())) { FastList<Quest> quests = this.getQuestByEvent(Quest.QuestEventType.ON_ENTER_ZONE); if (quests != null) { for (Quest quest : quests) { quest.notifyEnterZone(character, this); } } _characterList.put(character.getObjectId(), character); onEnter(character); } } else { // Was the character inside this zone? if (_characterList.containsKey(character.getObjectId())) { FastList<Quest> quests = this.getQuestByEvent(Quest.QuestEventType.ON_EXIT_ZONE); if (quests != null) { for (Quest quest : quests) { quest.notifyExitZone(character, this); } } _characterList.remove(character.getObjectId()); onExit(character); } } } /** * Force fully removes a character from the zone * Should use during teleport / logoff * @param character */ public void removeCharacter(L2Character character) { if (_characterList.containsKey(character.getObjectId())) { FastList<Quest> quests = this.getQuestByEvent(Quest.QuestEventType.ON_EXIT_ZONE); if (quests != null) { for (Quest quest : quests) { quest.notifyExitZone(character, this); } } _characterList.remove(character.getObjectId()); onExit(character); } } /** * Will scan the zones char list for the character * @param character * @return */ public boolean isCharacterInZone(L2Character character) { return _characterList.containsKey(character.getObjectId()); } protected abstract void onEnter(L2Character character); protected abstract void onExit(L2Character character); public abstract void onDieInside(L2Character character); public abstract void onReviveInside(L2Character character); public L2TIntObjectHashMap<L2Character> getCharactersInside() { return _characterList; } public L2Character[] getCharactersInsideArray() { return _characterList.getValues(new L2Character[_characterList.size()]); } public void addQuestEvent(Quest.QuestEventType EventType, Quest q) { if (_questEvents == null) _questEvents = new FastMap<Quest.QuestEventType, FastList<Quest>>(); FastList<Quest> questByEvents = _questEvents.get(EventType); if (questByEvents == null) questByEvents = new FastList<Quest>(); if (!questByEvents.contains(q)) questByEvents.add(q); _questEvents.put(EventType, questByEvents); } public FastList<Quest> getQuestByEvent(Quest.QuestEventType EventType) { if (_questEvents == null) return null; return _questEvents.get(EventType); } /** * Broadcasts packet to all players inside the zone */ public void broadcastPacket(L2GameServerPacket packet) { if (_characterList.isEmpty()) return; _characterList.forEachValue(new BroadcastPacket(packet)); } private final class BroadcastPacket implements TObjectProcedure<L2Character> { final L2GameServerPacket _packet; private BroadcastPacket(L2GameServerPacket packet) { _packet = packet; } @Override public final boolean execute(final L2Character character) { if (character != null && character instanceof L2PcInstance) character.sendPacket(_packet); return true; } } public InstanceType getTargetType() { return _target; } public void setTargetType(InstanceType type) { _target = type; _checkAffected = true; } @Override public String toString() { return getClass().getSimpleName()+"["+ _id + "]"; } public void visualizeZone(int z) { getZone().visualizeZone(z); } public FastMap<Integer, L2Character> getCharactersInside() { return _characterList; } }
  19. javac] Compiling 1629 source files to C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\build\classes [javac] C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\java\com\l2jserver\gameserver\model\zone\L2ZoneType.java:485: error: reached end of file while parsing [javac] } [javac] ^ [javac] 1 error BUILD FAILED C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\build.xml:59: Compile failed; see the compiler error output for details. If i put like this >> public FastMap<Integer, L2Character> getCharactersInside() { return _characterList; } } He give me the error [javac] Compiling 1629 source files to C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\build\classes [javac] C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\java\com\l2jserver\gameserver\model\zone\L2ZoneType.java:482: error: method getCharactersInside() is already defined in class L2ZoneType [javac] public FastMap<Integer, L2Character> getCharactersInside() [javac] ^ [javac] C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\java\com\l2jserver\gameserver\model\zone\L2ZoneType.java:484: error: incompatible types [javac] return _characterList; [javac] ^ [javac] required: FastMap<Integer,L2Character> [javac] found: L2TIntObjectHashMap<L2Character> [javac] 2 errors BUILD FAILED C:\Documents and Settings\Administrator\Desktop\WorckSpace\l2j-high-five\trunk\L2J_Server_High_Five\build.xml:59: Compile failed; see the compiler error output for details.
  20. Thx.:D so if some 1 know to help me plz write here
  21. Lock how i add the line. public void visualizeZone(int z) { getZone().visualizeZone(z); } { public FastMap<Integer, L2Character> getCharactersInside() { return _characterList; } }
×
×
  • 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