Jump to content

xXObanXx

Members
  • Posts

    416
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by xXObanXx

  1. You should explain us which custom shits did you add and what did you modify, coz it's not a problem of l2jserver.

    i know is not l2j's problem... the latests codes that i put and that problem started to exists is:

     

     

    Mob Drop Preview Panel

    Anti-AFK on TvT

    .repair Voiced Command

    CTF Event

     

    but i'm sure is not cause of these codes... 

    i think the broadcastUserInfo() (like Tryskell said) appears to be missing from L2PcInstance..!

  2. Hello maxcheaters..!
    so for 1 more time i need your help!

     

    i saw on my server that the a player's action do not updated properly on other players... for example...
    i was on my server with 2 characters.... the Admin and a normal char.

    i was invisible with admin and normal char can't see me... but... when i turn the admin to visible... the normal char still can't see me..! but... for example if i am on giran... and normal char can't see me and go and teleport again on Giran.... (via teleporter), the normal char will see me now..!

    the same thing happened with "Private Store Message".

    i am in Giran with admin and normal char... i'm putting normal char to sell an item... and on this char the message about selling is appeared.

    but with admin char i see only that the player is sitting... i don't see the Private store message... the only way to see it is to teleport again on the place (reload map)

     

    any solution about this problem?

     

    I have H5 client latest revision l2j

     

    I will really appreciate you help!!

    and sorry if my english is too bad!

  3. Hello Maxcheaters!
    I need Help from the L2j Developers about those problems i have.!

    so the first problem is...
    I changed the Currency that Private Stores need to sell or to buy!

    so i know this thing maybe is on from the client side... but i want with some way to change the "Adena" as the price (inside the Private store) to say the currency i want..! (for example: Mouce coin)

    the second thing i'm looking for, it the drain while a player is flaged..! I have on my mind... if a player want to farm... he will receive enough drain from the mob when he is hitting it that he cannot die if someone is trying to kill him while farming... but... if the players are playing pvp and someone is loosing and running.... he will try to drain from the mobs and go back to the fight... i want to dodge that thing!

     

    Can anyone help me about those 2 things?! I will appreciate it! Thank you!

  4. Hello Maxcheaters! so before some minutes i put the CTF Event on my server from FFs's CTF Event...!

     

    so when i tested it on Freya those problems didn't exists... but on last revision of H5 i got errors...
    check this out!

     

    CTF.java

     

     

     

    // Remove Summon's buffs
    if (player.getPet() != null)
    {
    L2Summon summon = player.getPet();
    for (L2Effect e : summon.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }


    if (summon instanceof L2PetInstance)
    {
    summon.unSummon(player);
    }
    }
    }


    if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS)
    {
    for (L2Effect e : player.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }
    }


    // Remove player from his party
    if (player.getParty() != null)
    {
    L2Party party = player.getParty();
    party.removePartyMember(player, null);
    }


    player.teleToLocation(_teamsBaseX.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseY.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseZ.get(_teams.indexOf(player._teamNameCTF)));
    }
    }
    ThreadPoolManager.getInstance().scheduleGeneral(new BaseTeleportTask(true), 20000);
    }
    else
    {
    AnnounceToPlayers(true, "CTF Event: Teleporting to team spot in 15 seconds!");


    ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
    {
    @Override
    public void run()
    {
    spawnAllFlags();


    for (L2PcInstance player : _players)
    {
    if (player != null)
    {
    if (Config.CTF_ON_START_UNSUMMON_PET)
    {
    // Remove Summon's buffs
    if (player.getPet() != null)
    {
    L2Summon summon = player.getPet();
    for (L2Effect e : summon.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }


    if (summon instanceof L2PetInstance)
    {
    summon.unSummon(player);
    }
    }
    }


    if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS)
    {
    for (L2Effect e : player.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }
    }


    // Remove player from his party
    if (player.getParty() != null)
    {
    L2Party party = player.getParty();
    party.removePartyMember(player, null);
    }


    player.teleToLocation(_teamsX.get(_teams.indexOf(player._teamNameCTF)), _teamsY.get(_teams.indexOf(player._teamNameCTF)), _teamsZ.get(_teams.indexOf(player._teamNameCTF)));
    }
    }
    }
    }, 15000);
    }
    _teleport = true;
    }


    public static boolean teleportAutoStart()
    {
    if (!_joining || _started || _teleport)
    {
    return false;
    }


    if (Config.CTF_EVENT_TEAMS.equals("SHUFFLE") && checkMinPlayers(_playersShuffle.size()))
    {
    removeOfflinePlayers();
    shuffleTeams();
    }
    else if (Config.CTF_EVENT_TEAMS.equals("SHUFFLE") && !checkMinPlayers(_playersShuffle.size()))
    {
    AnnounceToPlayers(true, "CTF Event: Not enough players registered.");
    return false;
    }


    _joining = false;
    setUserData();


    if (Config.CTF_BASE_TELEPORT_FIRST)
    {
    AnnounceToPlayers(true, "CTF Event: Teleporting to team base. The fight will being in 20 seconds!");


    for (L2PcInstance player : _players)
    {
    if (player != null)
    {
    if (Config.CTF_ON_START_UNSUMMON_PET)
    {
    // Remove Summon's buffs
    if (player.getPet() != null)
    {
    L2Summon summon = player.getPet();
    for (L2Effect e : summon.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }


    if (summon instanceof L2PetInstance)
    {
    summon.unSummon(player);
    }
    }
    }


    if (Config.CTF_ON_START_REMOVE_ALL_EFFECTS)
    {
    for (L2Effect e : player.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }
    }


    // Remove player from his party
    if (player.getParty() != null)
    {
    L2Party party = player.getParty();
    party.removePartyMember(player, null);
    }


    player.teleToLocation(_teamsBaseX.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseY.get(_teams.indexOf(player._teamNameCTF)), _teamsBaseZ.get(_teams.indexOf(player._teamNameCTF)));
    }
    }
    ThreadPoolManager.getInstance().scheduleGeneral(new BaseTeleportTask(true), 30000);
    }
    else
    {
    AnnounceToPlayers(false, "CTF Event: Teleporting to team spot in 15 seconds!");


    ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
    {
    @Override
    public void run()
    {
    spawnAllFlags();


    for (L2PcInstance player : _players)
    {
    if (player != null)
    {
    if (Config.CTF_ON_START_UNSUMMON_PET)
    {
    // Remove Summon's buffs
    if (player.getPet() != null)
    {
    L2Summon summon = player.getPet();
    for (L2Effect e : summon.getAllEffects())
    {
    if (e != null)
    {
    e.exit();
    }
    }

    anyone knows the fix?!
    thank's!

  5. What a shit code o.O

     

    Better use this.. by An4rchy http://pastebin.com/pkhWZ1z1

    actually is rough code...

     

    i'm gonna try Anarchy's code..!

     

    Edit: ERROR on An4rchy's system:

     

    Client: [Character: Sponer[268484007] - Account: blabla - IP: 127.0.0.1] - Failed running: [C] 11 EnterWorld - L2J Server Version: 6212M - DP Revision: 9953M ; null
    java.lang.NullPointerException
    at com.l2jserver.gameserver.anarchy.PvPColorSystem.updateTitleColor(PvPColorSystem.java:44)
    at com.l2jserver.gameserver.network.clientpackets.EnterWorld.runImpl(EnterWorld.java:139)
    at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:70)
    at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1120)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

     

     

  6. so the code comes from l2pcInstance. 

     

    go model/actor/instance/L2PcInstance and find the method updatePvPColor

     

    by the way, if the character who flashes hasn't >= (Config.PVP_AMOUNT1)) pvp kills, this code isnt called so the pvp system is not the case,

     

    so the question now is

     

    how many pvps does the orc have ?

    Config.PVP_AMOUNT1 = ?

     

    // In duel MP updated only with CP or HP
    if (isInDuel() && (needCpUpdate || needHpUpdate))
    {
    DuelManager.getInstance().broadcastToOppositTeam(this, new ExDuelUpdateUserInfo(this));
    }
    }
    
    
    + // PVP Color System
    + public void updatePvPColor(int pvpKillAmount)
    + {
    + if (Config.PVP_COLOR_SYSTEM_ENABLED)
    + {
    + // Check if the character has GM access and if so, let them be.
    + if (isGM())
    + {
    + return;
    + }
    + {
    + if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT5)) && (pvpKillAmount <= (Config.PVP_AMOUNT6)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT6)) && (pvpKillAmount <= (Config.PVP_AMOUNT7)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT6);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT7)) && (pvpKillAmount <= (Config.PVP_AMOUNT8)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT7);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT8)) && (pvpKillAmount <= (Config.PVP_AMOUNT9)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT8);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT9)) && (pvpKillAmount <= (Config.PVP_AMOUNT10)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT9);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT10)) && (pvpKillAmount <= (Config.PVP_AMOUNT11)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT10);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT11)) && (pvpKillAmount <= (Config.PVP_AMOUNT12)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT11);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT12)) && (pvpKillAmount <= (Config.PVP_AMOUNT13)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT12);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT13)) && (pvpKillAmount <= (Config.PVP_AMOUNT14)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT13);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT14)) && (pvpKillAmount <= (Config.PVP_AMOUNT15)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT14);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT15)) && (pvpKillAmount <= (Config.PVP_AMOUNT16)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT15);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT16)) && (pvpKillAmount <= (Config.PVP_AMOUNT17)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT16);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT17)) && (pvpKillAmount <= (Config.PVP_AMOUNT18)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT17);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT18)) && (pvpKillAmount <= (Config.PVP_AMOUNT19)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT18);
    + }
    + else if ((pvpKillAmount >= (Config.PVP_AMOUNT19)) && (pvpKillAmount <= (Config.PVP_AMOUNT20)))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT19);
    + }
    + else if (pvpKillAmount >= (Config.PVP_AMOUNT20))
    + {
    + getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT20);
    + }
    + }
    + }
    + }
    
    
    /**
    * Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers. <B><U> Concept</U> :</B> Others L2PcInstance in the detection area of the L2PcInstance are identified in <B>_knownPlayers</B>. In order to inform other players of this
    * L2PcInstance state modifications, server just need to go through _knownPlayers to send Server->Client Packet <B><U> Actions</U> :</B> <li>Send a Server->Client packet UserInfo to this L2PcInstance (Public and Private Data)</li> <li>Send a Server->Client packet CharInfo to all L2PcInstance in
    * _KnownPlayers of the L2PcInstance (Public data only)</li> <FONT COLOR=#FF0000><B> <U>Caution</U> : DON'T SEND UserInfo packet to other players instead of CharInfo packet. Indeed, UserInfo packet contains PRIVATE DATA as MaxHP, STR, DEX...</B></FONT>
    */
    public final void broadcastUserInfo()
    {

    Config.PVP_AMOUNT = 0 PvP Kills

    my orc have 0 too!

  7. 
    

    if (!Config.DISABLE_TUTORIAL)

    {

    loadTutorial(activeChar);

    }

     

     

    + // PvP Color System

    + if ((activeChar.getPvpKills() >= (Config.PVP_AMOUNT1)) && (Config.PVP_COLOR_SYSTEM_ENABLED))

    + {

    + activeChar.updatePvPColor(activeChar.getPvpKills());

    + }

     

     

    for (Quest quest : QuestManager.getInstance().getAllManagedScripts())

    {

    if ((quest != null) && quest.getOnEnterWorld())

    {

    quest.notifyEnterWorld(activeChar);

    }

    }

     

  8. Hello Maxcheaters.... so i have a problem on latest H5 l2j server pack...!

    so the problem is: when a character is logging on the game... while loading to join on the world... the other players can see this player to flashing before completely login on the game!
    I think maybe the problem is on Enterworld.java (network/clientpackets) but i don't know where exactly... i will appreciate your help!

     

    Here is the video of the bug.!

    http://www.youtube.com/watch?v=Opybl7mEsUo&feature=youtu.be

     

    Edit: on the video saws to flashing only 1 time... but this cause he restarted many times...
    as much as you wait to loading to go inside of the game.... other players in game seeing you to flashing like that!

     

    Edit 2: i removed the PvP Color System from Enterworld.java and PcInstance.java and the bug still exists... so that means that is not code's problem!
    any other solution about this problem please?!

×
×
  • Create New...