Williams

Members
  • Content Count

    66
  • Joined

  • Last visited

  • Feedback

    N/A

Community Reputation

6 Neutral

About Williams

  • Rank
    Heir

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello I created this topic because I will be updating it with the updates of the quest Proof Of Clan Alliance, the purpose and to create a quest as optimized as possible initially I will post a base version, I will better it. It is already working perfectly like l2off. Version 1 : Q501_ProofOfClanAlliance Any help will be welcome yet I haven't worked on the htmls send me more information.
  2. probably TK forgot to clean that area. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/skills/basefuncs/FuncEnchant.java b/aCis_gameserver/java/net/sf/l2j/gameserver/skills/basefuncs/FuncEnchant.java index 002535f..dd793b6 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/skills/basefuncs/FuncEnchant.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/skills/basefuncs/FuncEnchant.java @@ -108,25 +108,6 @@ break; case B: - switch (type) - { - case BOW: - value += (6 * enchant + 12 * overenchant); - break; - - case BIGBLUNT: - case BIGSWORD: - case DUALFIST: - case DUAL: - value += (4 * enchant + 8 * overenchant); - break; - - default: - value += (3 * enchant + 6 * overenchant); - break; - } - break; - case C: switch (type) {
  3. Good afternoon I come to make available a mod I made, it rewards players who reach a certain level. https://pastebin.com/raw/gPJt4kzs
  4. would anyone have vorpal armor for interlude? The ones I found are all with textural errors.
  5. I would like to know where I change the level and the amount of exp on the client. level 81: level 85: I want to leave the bar 100% at lvl 85 where do I change the client?
  6. Hello cheaters, Well, I'm implementing my Capture the Flag (CTF) event, I want to put it on when a player picks up a flag and delivers the weapon he was equipped to return without needing to do it himself. can you give me examples how can i do this? because I tried creating an array but it didn't work if (_flags.keySet().contains(npc)) { if (getState() != EventState.RUNNING) return true; if (_flags.get(npc) == getTeam(player) && _flagWielders.values().contains(player)) { player.destroyItemByItemId("Event flag.", 6718, 1, null, false); player.broadcastUserInfo(); announce(player.getName()+" has scored for "+_flags.get(npc).getName()+"!", false); increaseScore(player, 1); for (Npc flag : _flagWielders.keySet()) { if (_flagWielders.get(flag) == player) { _removeFlags = flag; break; } } _flagWielders.remove(_removeFlags); return true; } if (_flags.get(npc) != getTeam(player) && !_flagWielders.keySet().contains(npc)) { ItemInstance flag = player.addItem("Event flag.", 6718, 1, null, false); player.useEquippableItem(flag, true); player.broadcastUserInfo(); announce(player.getName()+" has got the "+_flags.get(npc).getName()+" flag!", false); player.broadcastPacket(new SocialAction(player, 16)); _flagWielders.put(npc, player); return true; } }
  7. yes it was a mistake so it rewards all players but it has already been fixed. the correct thing would be like this for (Player player : clan.getOnlineMembers())
  8. code removed from L2j-One the credits are not his https://raw.githubusercontent.com/L2jOne/New-L2jOne/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/entity/Siege.java
  9. the error line. I removed this code from a java 8 project I have no error on my Eclipse would it be a java 8 to 11 compatibility error?
  10. You are right, I did as you say more, the players use the CTRL to attack the same team. And yet non-participating players attack participating players. what you told me to do ? diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/L2Skill.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/L2Skill.java index 224fed7..747e01d 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/L2Skill.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/L2Skill.java @@ -1633,12 +1633,6 @@ if ((obj.getAllyId() == 0 || obj.getAllyId() != player.getAllyId()) && (obj.getClan() == null || obj.getClanId() != player.getClanId())) continue; + if (obj.getTeam().getId() > 0) + { + if (player.getTeam() != obj.getTeam()) + continue; + } + if (player.isInDuel()) { if (player.getDuelId() != obj.getDuelId()) @@ -1744,12 +1738,6 @@ if (obj == null || obj == player) continue; - if (obj .getTeam().getId() > 0) - { - if (player.getTeam() != obj.getTeam()) - continue; - } - if (player.isInDuel()) { if (player.getDuelId() != obj.getDuelId()) @@ -2068,12 +2056,6 @@ if (player.getParty().getCommandChannel() != null && player.getParty().getCommandChannel() == targetPlayer.getParty().getCommandChannel()) return false; } + + if (player.getTeam().getId() > 0) + { + if (player.getTeam() == targetPlayer.getTeam()) + return false; + } if (!sourceInArena && !(targetPlayer.isInsideZone(ZoneId.PVP) && !targetPlayer.isInsideZone(ZoneId.SIEGE))) { diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java index fc8ae4e..b061496 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java @@ -6241,15 +6241,6 @@ return false; } + // Check if attacker is in event + if (cha.getEvent() != null && cha.getEvent() == getEvent()) + { + if (cha.getTeam().getId() > 0 && cha.getTeam() == getTeam()) + return false; + + return true; + } + // is AutoAttackable if both players are in the same duel and the duel is still going on if (getDuelState() == DuelState.DUELLING && getDuelId() == cha.getDuelId()) return true; @@ -2901,12 +2901,6 @@ @Override public void onAction(Player player) { - if (!TvTEvent.getInstance().canTarget(this, player)) - { - player.sendPacket(ActionFailed.STATIC_PACKET); - return; - } - // Set the target of the player if (player.getTarget() != this) player.setTarget(this); @@ -2949,12 +2943,6 @@ @Override public void onActionShift(Player player) { - if (!TvTEvent.getInstance().canTarget(this, player)) - { - player.sendPacket(ActionFailed.STATIC_PACKET); - return; - } - if (player.isGM()) AdminEditChar.showCharacterInfo(player, this); diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/Cubic.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/Cubic.java index 524e44a..f3bcb7f 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/Cubic.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/Cubic.java @@ -23,7 +23,6 @@ import net.sf.l2j.gameserver.model.actor.Playable; import net.sf.l2j.gameserver.model.actor.Player; import net.sf.l2j.gameserver.model.actor.Summon; -import net.sf.l2j.gameserver.model.entity.events.Event; import net.sf.l2j.gameserver.model.group.Party; import net.sf.l2j.gameserver.network.SystemMessageId; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; @@ -257,21 +256,6 @@ return; } + // Events + Event event = _owner.getEvent(); + if (event != null && event.isStarted()) + { + final Player target = ownerTarget.getActingPlayer(); + if (target != null && target.getEvent() == event && (_owner.getTeam().getId() == 0 || _owner.getTeam() != target.getTeam())) + { + _target = (Creature)ownerTarget; + // Dead target + if (_target.isDead()) + _target = null; + } + return; + } + // Olympiad targeting if (_owner.isInOlympiadMode()) {