Jump to content

EdenEternal

Banned
  • Posts

    2,090
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by EdenEternal

  1. First of all hello. My new share includes disablers for Coliseum Area. With this patch you can disable Skill Resurrection, Scroll of Resurrection and Potions in zone of coliseum. Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (revision 948) +++ config/functions/l2jfrozen.properties (working copy) @@ -280,4 +280,15 @@ ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message -ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! \ No newline at end of file +ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +#----------------------------------------------- +# Coliseum Settings By Lekino +#----------------------------------------------- +#Allow using skill of resurrection and scroll of ressurection in coliseum? +#Default: True +AllowResColiseum = True + +#Allow using potions use in coliseum? +#Default: True +AllowPotionsColiseum = True \ No newline at end of file Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 948) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2378,6 +2378,8 @@ public static String FARM2_CUSTOM_MESSAGE; public static String PVP1_CUSTOM_MESSAGE; public static String PVP2_CUSTOM_MESSAGE; + public static boolean ALLOW_COLISEUM_RES; + public static boolean ALLOW_COLISEUM_POT; //============================================================ public static void loadL2JFrozenConfig() @@ -2497,6 +2499,8 @@ FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!"); PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!"); PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!"); + ALLOW_COLISEUM_RES = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowResColiseum", "True")); + ALLOW_COLISEUM_POT = Boolean.parseBoolean(L2JFrozenSettings.getProperty("AllowPotionsColiseum", "True")); } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java =================================================================== --- head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java (working copy) @@ -50,6 +50,7 @@ import com.l2jfrozen.gameserver.model.zone.type.L2CastleTeleportZone; import com.l2jfrozen.gameserver.model.zone.type.L2CastleZone; import com.l2jfrozen.gameserver.model.zone.type.L2ClanHallZone; +import com.l2jfrozen.gameserver.model.zone.type.L2ColiseumZone; import com.l2jfrozen.gameserver.model.zone.type.L2CustomZone; import com.l2jfrozen.gameserver.model.zone.type.L2DamageZone; import com.l2jfrozen.gameserver.model.zone.type.L2DerbyTrackZone; @@ -240,6 +241,10 @@ { temp = new L2NoHqZone(zoneId); } + else if(zoneType.equals("ColiseumArea")) + { + temp = new L2ColiseumZone(zoneId); + } else if(zoneType.equals("BossZone")) { int boss_id = -1; Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Potions.java =================================================================== --- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Potions.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/Potions.java (working copy) @@ -28,6 +28,7 @@ import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.datatables.SkillTable; import com.l2jfrozen.gameserver.handler.IItemHandler; +import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2Effect; import com.l2jfrozen.gameserver.model.L2Effect.EffectType; import com.l2jfrozen.gameserver.model.L2Skill; @@ -241,6 +242,13 @@ return; } + //Check if Character is in coliseum + if(activeChar.isInsideZone(L2Character.ZONE_COLISEUM) && !Config.ALLOW_COLISEUM_POT) + { + activeChar.sendPacket(ActionFailed.STATIC_PACKET); + return; + } + //if(activeChar._inEventCTF && CTF._started && !Config.CTF_ALLOW_POTIONS) if(activeChar._inEventCTF && CTF.is_started() && !Config.CTF_ALLOW_POTIONS) { Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/ScrollOfResurrection.java =================================================================== --- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/ScrollOfResurrection.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/ScrollOfResurrection.java (working copy) @@ -18,6 +18,7 @@ */ package com.l2jfrozen.gameserver.handler.itemhandlers; +import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.datatables.SkillTable; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.managers.CastleManager; @@ -66,7 +67,12 @@ { activeChar.sendMessage("This Item Cannot Be Used On Olympiad Games."); } - + + if(activeChar.isInsideZone(L2Character.ZONE_COLISEUM) && !Config.ALLOW_COLISEUM_RES) + { + activeChar.sendMessage("This item cannot be used on Coliseum"); + } + if(activeChar.isMovementDisabled()) return; Index: head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Resurrect.java =================================================================== --- head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Resurrect.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Resurrect.java (working copy) @@ -22,6 +22,7 @@ import javolution.util.FastList; +import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.ISkillHandler; import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2Object; @@ -56,6 +57,12 @@ L2Character target = null; L2PcInstance targetPlayer; List<L2Character> targetToRes = new FastList<L2Character>(); + + if(activeChar.isInsideZone(L2Character.ZONE_COLISEUM) && !Config.ALLOW_COLISEUM_RES) + { + activeChar.sendPacket(SystemMessage.sendString("You can't use resurrect skill in coliseum!")); + return; + } for(L2Object target2 : targets) { Index: head-src/com/l2jfrozen/gameserver/model/L2Character.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/L2Character.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/model/L2Character.java (working copy) @@ -339,6 +339,9 @@ /** The Constant ZONE_DANGERAREA. */ public static final int ZONE_DANGERAREA = 16384; + + /** The Constant ZONE_COLISEUM. */ + public static final int ZONE_COLISEUM = 16385; /** The _current zones. */ private int _currentZones = 0; Index: head-src/com/l2jfrozen/gameserver/model/zone/type/L2ColiseumZone.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/zone/type/L2ColiseumZone.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/model/zone/type/L2ColiseumZone.java (revision 0) @@ -0,0 +1,69 @@ +/* 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.model.zone.type; + +import com.l2jfrozen.gameserver.datatables.csv.MapRegionTable; +import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.zone.L2ZoneType; +import com.l2jfrozen.gameserver.network.SystemMessageId; +import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; +/** + * + * @author Leki + */ +public class L2ColiseumZone extends L2ZoneType +{ + public L2ColiseumZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + character.setInsideZone(L2Character.ZONE_PVP, true); + character.setInsideZone(L2Character.ZONE_COLISEUM, true); + if(character instanceof L2PcInstance) + { + ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.ENTERED_COMBAT_ZONE)); + } + } + + @Override + protected void onExit(L2Character character) + { + character.setInsideZone(L2Character.ZONE_PVP, false); + character.setInsideZone(L2Character.ZONE_COLISEUM, false); + + if(character instanceof L2PcInstance) + { + + ((L2PcInstance) character).sendPacket(new SystemMessage(SystemMessageId.LEFT_COMBAT_ZONE)); + } + } + + @Override + public void onDieInside(L2Character character) + {} + + @Override + public void onReviveInside(L2Character character) + {} +} DP Index: zone.xml =================================================================== --- zone.xml (revision 948) +++ zone.xml (working copy) @@ -17,7 +17,7 @@ <stat name='spawnY' val='142402'/> <stat name='spawnZ' val='-3643'/> </zone> - <zone id='11012' type='Arena' shape='NPoly' minZ='-3500' maxZ='-3300'> + <zone id='11012' type='ColiseumArea' shape='NPoly' minZ='-3500' maxZ='-3300'> <stat name='name' val='Coliseum'/> <stat name='spawnX' val='147451'/> <stat name='spawnY' val='46728'/> If you want to disable something else in coliseum, just add this Credits to me. If I did something wrong please feedback.
  2. if he goes inside with armor/weapon enchanted more than 3, he will be teleported to nearest town
  3. Hello, Today i'll share a new zone called "Newbie Zone". You can restrict players to enter if they wear items enchant more then 3 Index: head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java =================================================================== --- head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/datatables/xml/ZoneData.java (working copy) @@ -58,6 +58,7 @@ import com.l2jfrozen.gameserver.model.zone.type.L2FortZone; import com.l2jfrozen.gameserver.model.zone.type.L2JailZone; import com.l2jfrozen.gameserver.model.zone.type.L2MotherTreeZone; +import com.l2jfrozen.gameserver.model.zone.type.L2NewbieZone; import com.l2jfrozen.gameserver.model.zone.type.L2NoHqZone; import com.l2jfrozen.gameserver.model.zone.type.L2NoLandingZone; import com.l2jfrozen.gameserver.model.zone.type.L2OlympiadStadiumZone; @@ -240,6 +241,10 @@ { temp = new L2NoHqZone(zoneId); } + else if(zoneType.equals("Newbie")) + { + temp = new L2NewbieZone(zoneId); + } else if(zoneType.equals("BossZone")) { int boss_id = -1; Index: head-src/com/l2jfrozen/gameserver/model/L2Character.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/L2Character.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/model/L2Character.java (working copy) @@ -340,6 +340,9 @@ /** The Constant ZONE_DANGERAREA. */ public static final int ZONE_DANGERAREA = 16384; + /** The Constant ZONE_NEWBIE. */ + public static final int ZONE_NEWBIE = 16385; + /** The _current zones. */ private int _currentZones = 0; Index: head-src/com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/model/zone/type/L2NewbieZone.java (revision 0) @@ -0,0 +1,83 @@ +/* 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 2, 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.model.zone.type; + +import com.l2jfrozen.gameserver.datatables.csv.MapRegionTable; +import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; +import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.zone.L2ZoneType; + +/** + * + * @author Leki + */ +public class L2NewbieZone extends L2ZoneType +{ + public L2NewbieZone(int id) + { + super(id); + } + + @Override + protected void onEnter(L2Character character) + { + if(character instanceof L2PcInstance) + { + L2PcInstance player = (L2PcInstance) character; + for (L2ItemInstance i : player.getInventory().getItems()) + { + if (!player.isGM()) + { + if (i.isEquipable()) + { + if (i.getEnchantLevel() > 3) + { + player.sendMessage("You can enter to this zone if your items aren't enchant more than 3"); + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + } + } + } + if(!player.isGM() && player.isFlying()) + { + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + character.setInsideZone(L2Character.ZONE_NEWBIE, true); + } + } + + @Override + protected void onExit(L2Character character) + { + if(character instanceof L2PcInstance) + { + character.setInsideZone(L2Character.ZONE_NEWBIE, false); + } + } + + @Override + public void onDieInside(L2Character character) + {} + + @Override + public void onReviveInside(L2Character character) + {} +} Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java =================================================================== --- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java (working copy) @@ -21,6 +21,7 @@ import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.model.Inventory; +import com.l2jfrozen.gameserver.model.L2Character; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; @@ -135,7 +136,13 @@ activeChar.setActiveEnchantItem(null); return; } + if(activeChar.isInsideZone(L2Character.ZONE_NEWBIE)) + { + activeChar.sendMessage("You can't enchant in newbie zone!"); + return; + } /* if(!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_ENCHANT)) { DP Index: zone.xml =================================================================== --- zone.xml (revision 946) +++ zone.xml (working copy) @@ -881,7 +881,6 @@ <zone id='13004' type='PeaceZone' shape='Cuboid' minZ='-2850' maxZ='-1300' /> <!-- Ivory Tower Top Floors --> <zone id='13005' type='PeaceZone' shape='NPoly' minZ='-3700' maxZ='-3500' /> <!-- Gludin Arena Entrance --> <zone id='13006' type='PeaceZone' shape='NPoly' minZ='-3800' maxZ='-3600' /> <!-- Giran Arena Entrance --> - <zone id='13007' type='PeaceZone' shape='NPoly' minZ='-3200' maxZ='-2200' /> <!-- Cedric's Training Hall --> <zone id='13008' type='PeaceZone' shape='NPoly' minZ='-3650' maxZ='-2650' /> <!-- Einhovant's School of Magic --> <zone id='13009' type='PeaceZone' shape='NPoly' minZ='-4300' maxZ='-2300' /> <!-- The Shilen Temple --> <zone id='13010' type='PeaceZone' shape='Cuboid' minZ='-1000' maxZ='500' /> <!-- The Pa'agrio Temple --> @@ -4489,4 +4488,8 @@ <node X="-85870" Y="-46233" /> <node X="-86090" Y="-46061" /> </zone> -</list> \ No newline at end of file + <zone id='13007' type='Newbie' shape='NPoly' minZ='-3200' maxZ='-2200' /> <!-- Cedric's Training Hall --> + <stat name='name' val='NewbieZone'/> + </zone> +</list> \ No newline at end of file Thanks for idea to vampir! Credits to me
  4. First of all check configs, there should be configs for rb respawn. Second, Check AI scripts, Third, Go to Navicat and open raidboss_spawnlist.sql and set min and max respawn of your chose
  5. The authors patch is created under l2jfrozen project so please check....
  6. l2jfrozen has setDonator method
  7. when you use activeChar.setDonator(true);; it includes database part and you don't need to write it in itemhandler.. i did not wrote registering because you wrote it in first post, this is not patch this is only itemhandler
  8. My Code 100times easier //Donator Custom item by Leki package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.serverpackets.SocialAction; public class DonateCustomItem implements IItemHandler { public DonateCustomItem() { //null } @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("This item can not be used on olympiad"); } if(activeChar.isDonator()) { activeChar.sendMessage("You are already the donator member"); } else { activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setDonator(true);; activeChar.sendMessage("You are donator member now!"); activeChar.broadcastUserInfo(); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } @Override public int[] getItemIds() { return ITEM_IDS; } private static final int ITEM_IDS[] = { 6673 }; }
  9. can't get it.... it is just scheme buffer?
  10. looks nice. it's good that you added multisell for dyes buy. thanks for share!
  11. It can only add sqls? it can't modify them?
  12. My opinion compile source without ecplise(with ant) http://www.maxcheaters.com/forum/index.php?topic=158793.0
  13. I don't understand..... you can send the item which is in your inventory or what?
  14. nah custom server beter ( :
  15. It is in armorgroup.dat check correctly.
  16. any idea? Pack: l2jfrozen
  17. i just want to disable it
  18. translate.google.com RuleZzzzz :D Hope it has english html btw this is good pack
  19. from where can be edited this command? /target?
  20. give me a pirce.
  21. report it hmm to report section with proofs.
  22. Soo... If we just replace PcBang Points with Online players will not it be better not to create ExOnlineInfo and just do this: Index: net/sf/l2j/gameserver/network/serverpackets/ExPCCafePointInfo.java package com.l2jfrozen.gameserver.network.serverpackets; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; +import com.l2jfrozen.gameserver.model.L2World; @ writeC(0xFE); writeH(0x31); - writeD(_character.getPcBangScore()); + writeD(L2World.getInstance().getAllPlayers().size()); writeD(m_AddPoint); writeC(m_PeriodType); writeD(RemainTime); writeC(PointType);
  23. I see many thing which are extra It can't be done without them?
  24. Looks prety nice, most of servers(as i know) don't use PCBang so... it already is useless and can be replaced with online players. Waiting for codes :P
×
×
  • 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