Jump to content

HARDECORE

Members
  • Posts

    100
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by HARDECORE

  1. I don't know where to add the code you sent. I need help with this
  2. The point is, I don't know where to go. can you please help me?
  3. How do I add this restriction? can you help me? I am not yet a java programmer. I am starting the first semester in ADS. It is and my FlagZone /* * 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 l2r.gameserver.model.zone.type; import l2r.gameserver.ThreadPoolManager; import l2r.gameserver.data.xml.impl.SkillData; import l2r.gameserver.enums.MessageType; import l2r.gameserver.enums.ZoneIdType; import l2r.gameserver.model.actor.L2Character; import l2r.gameserver.model.actor.instance.L2PcInstance; import l2r.gameserver.model.zone.L2ZoneType; import l2r.gameserver.network.serverpackets.MagicSkillUse; import l2r.util.Rnd; import gr.sr.configsEngine.configs.impl.FlagZoneConfigs; /** * @author -=GodFather=- */ public class L2FlagZone extends L2ZoneType { public L2FlagZone(int id) { super(id); } @Override protected void onEnter(L2Character character) { if (FlagZoneConfigs.ENABLE_FLAG_ZONE && character.isPlayer()) { L2PcInstance activeChar = character.getActingPlayer(); activeChar.setInsideZone(ZoneIdType.FLAG, true); activeChar.setInsideZone(ZoneIdType.NO_SUMMON_FRIEND, true); activeChar.setInsideZone(ZoneIdType.NO_STORE, true); activeChar.setInsideZone(ZoneIdType.NO_BOOKMARK, true); activeChar.setInsideZone(ZoneIdType.NO_ITEM_DROP, true); SkillData.getInstance().getInfo(1323, 1).getEffects(activeChar, activeChar); if (FlagZoneConfigs.AUTO_FLAG_ON_ENTER) { activeChar.setPvpFlag(1); } if (FlagZoneConfigs.ENABLE_ANTIFEED_PROTECTION) { activeChar.startAntifeedProtection(true); } activeChar.broadcastUserInfo(); if (activeChar.getParty() != null) { activeChar.getParty().removePartyMember(activeChar, MessageType.None); } } } @Override protected void onExit(final L2Character character) { if (FlagZoneConfigs.ENABLE_FLAG_ZONE && character.isPlayer()) { L2PcInstance activeChar = character.getActingPlayer(); activeChar.setInsideZone(ZoneIdType.FLAG, false); activeChar.setInsideZone(ZoneIdType.NO_SUMMON_FRIEND, false); activeChar.setInsideZone(ZoneIdType.NO_STORE, false); activeChar.setInsideZone(ZoneIdType.NO_BOOKMARK, false); activeChar.setInsideZone(ZoneIdType.NO_ITEM_DROP, false); if (FlagZoneConfigs.AUTO_FLAG_ON_ENTER) { activeChar.setPvpFlag(0); } if (FlagZoneConfigs.ENABLE_ANTIFEED_PROTECTION) { activeChar.startAntifeedProtection(false); } activeChar.broadcastUserInfo(); } } @Override public void onDieInside(final L2Character character) { if (FlagZoneConfigs.ENABLE_FLAG_ZONE && FlagZoneConfigs.ENABLE_FLAG_ZONE_AUTO_REVIVE && character.isPlayer()) { final L2PcInstance activeChar = character.getActingPlayer(); if (FlagZoneConfigs.SHOW_DIE_ANIMATION) { final MagicSkillUse msu = new MagicSkillUse(activeChar, activeChar, 23096, 1, 1, 1); activeChar.broadcastPacket(msu); } if (FlagZoneConfigs.ENABLE_FLAG_ZONE_AUTO_REVIVE) { activeChar.sendMessage("Get ready! You will be revived in " + FlagZoneConfigs.FLAG_ZONE_REVIVE_DELAY + " seconds!"); ThreadPoolManager.getInstance().scheduleGeneral(() -> { if (activeChar.isDead()) { activeChar.doRevive(); int r = Rnd.get(FlagZoneConfigs.FLAG_ZONE_AUTO_RES_LOCS_COUNT); activeChar.teleToLocation(FlagZoneConfigs.xCoords[r], FlagZoneConfigs.yCoords[r], FlagZoneConfigs.zCoords[r]); } }, FlagZoneConfigs.FLAG_ZONE_REVIVE_DELAY * 1000); } } } @Override public void onReviveInside(L2Character character) { if (FlagZoneConfigs.ENABLE_FLAG_ZONE && character.isPlayer()) { L2PcInstance activeChar = character.getActingPlayer(); SkillData.getInstance().getInfo(1323, 1).getEffects(activeChar, activeChar); activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp()); activeChar.setCurrentCp(activeChar.getMaxCp()); } } }
  4. Ready. thank you all so much for helping me out! hug guys. you are top! By the way. moderators, can close the topic please!
  5. Hello everyone! I have a FlagZone on my L2JSunrise server. and I would like to block some skils in there. For example: I already blocked not to form party there. but one player goes bishop, enters and heals another individual player. I don't think it's fair to ban the cardinal class from entering, because there are other skil classes to heal. so I wanted to create a rule not to use certain skils inside FlagZone. it's possible? for example, a config that I put the id of skils that can't be used in there.
  6. I added and compiled it. no mistake! but when I test in game the ad does not appear and this error occurs in gameserver
  7. very little. I am not a programmer. starting to study in the area
  8. What's wrong?
  9. Excuse me, sorry to disturb your chat, but can someone help me?
  10. Hello everyone! can someone help me modify my code so that my pvp and pk ad show in which region the battle took place? Here an example: /* * Copyright (C) 2004-2015 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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. * * L2J DataPack 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 handlers.custom; import l2r.Config; import l2r.gameserver.model.actor.instance.L2PcInstance; import l2r.gameserver.model.events.Containers; import l2r.gameserver.model.events.EventType; import l2r.gameserver.model.events.impl.character.player.OnPlayerPvPKill; import l2r.gameserver.model.events.listeners.ConsumerEventListener; import l2r.gameserver.network.SystemMessageId; import l2r.gameserver.network.serverpackets.SystemMessage; import l2r.gameserver.util.Broadcast; public class CustomAnnouncePkPvP { public CustomAnnouncePkPvP() { if (Config.ANNOUNCE_PK_PVP) { Containers.Players().addListener(new ConsumerEventListener(Containers.Players(), EventType.ON_PLAYER_PVP_KILL, (OnPlayerPvPKill event) -> OnPlayerPvPKill(event), this)); } } /** * @param event * @return */ private Object OnPlayerPvPKill(OnPlayerPvPKill event) { L2PcInstance pk = event.getActiveChar(); if (pk.isGM()) { return null; } L2PcInstance player = event.getTarget(); String msg = Config.ANNOUNCE_PVP_MSG; if (player.getPvpFlag() == 0) { msg = Config.ANNOUNCE_PK_MSG; } msg = msg.replace("$killer", pk.getName()).replace("$target", player.getName()); if (Config.ANNOUNCE_PK_PVP_NORMAL_MESSAGE) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1); sm.addString(msg); Broadcast.toAllOnlinePlayers(sm); } else { Broadcast.toAllOnlinePlayers(msg, false); } return null; } }
  11. I need an experienced java programmer to implement a configuration in an existing mod in my L2J project. Chronic High Five please if someone knows a good and experienced recommend me or contact. if I posted this request in the wrong place, sorry and please redirect me to the correct location
  12. Please can anyone help me fix this?
  13. I add this in L2Npc.java public L2ItemInstance dropItem(L2PcInstance player, int itemId, long itemCount) { L2ItemInstance item = null; for (int i = 0; i < itemCount; i++) { // Randomize drop position. final int newX = (getX() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT; final int newY = (getY() + Rnd.get((RANDOM_ITEM_DROP_LIMIT * 2) + 1)) - RANDOM_ITEM_DROP_LIMIT; final int newZ = getZ() + 20; if (ItemData.getInstance().getTemplate(itemId) == null) { _log.error("Item doesn't exist so cannot be dropped. Item ID: " + itemId + " Quest: " + getName()); return null; } + if ((player != null) && player.isPremium()) + { + itemCount *= player.calcPremiumDropMultipliers(itemId); + } + item = ItemData.getInstance().createItem("Loot", itemId, itemCount, player, this); if (item == null) { return null; } if (player != null) { item.getDropProtection().protect(player); } item.dropMe(this, newX, newY, newZ); so the drop that is not autoloot works x2. but when you drop some herbs this happens..
  14. I have the source.
  15. excuse me. I don't know how to program enough for this. Can you help me with this?
  16. Yes, I know. But I want to for what to drop from the RaidBoss (On the Ground) quit according to the premium. in my case x2. Has as? in fact I wanted it to fose like this: PremiumRateRaidDropItems = 2
  17. Is it a bug or am I setting something wrong? use l2jsunrise. and my premium system has the option of modifying the drop in premiums. but only works for what falls directly into the player's purse. So far, so good. but if it falls to the ground, even if I set this part here, for x2 it does not work: # --------------------------------------------------------------------------- # Premium Drop Configuration # These rates will be applied to premium char if AutoLoot in Drops.ini is TRUE # otherwise might create some exploits with pickup action # --------------------------------------------------------------------------- # General drop multiplier if item id is NOT in PrRateDropItemsById list PremiumRateDropItems = 2 # Specific multipliers for items, if you add one items in this list will # bypass PremiumRateDropItems # TIP: if you have one item id in Rates.ini for example 57,20 # This rate will multiply 20 * your number here so be carefull PrRateDropItemsById = 57,2;30007,2 Adena ID: 57 Custom Coin ID ; 30007 Can someone please help me?
  18. Can someone help me by telling me how to change the currency id that is used in (Offline trade / craft) the currency used to buy and sell the stores is now adena. I would like to switch to another currency. for example: Gold Bar ID: 3470
  19. Reborn12 Did you make the mod? or you have the mod Cancel Return. ?
  20. I'm trying to download, but it says that I am not allowed to download this file. Can someone please help me?
  21. Hello, maybe someone still has the phoenix event engine for H5 with source and can share with me. please. thanks in advance.
  22. their support is horrible. I've been trying to buy something with them for 15 days, and I can not get a response. I'll talk to them on skype. It takes 2 to 3 days to respond. I ask 2 questions and they answer 1
  23. I still have faith that someone here can help.
×
×
  • 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