Jump to content
  • 0

[Help]Player Flashing Before Join On The Game


Question

Posted (edited)

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?!

Edited by xXObanXx

15 answers to this question

Recommended Posts

  • 0
Posted (edited)

What do you exactly mean with "flashing"?

Can you post a screenshot?

yeah sure.... i will saw you with a video in a minute!

 

EDIT: i'm uploading the video on youtube...

Edit 2: first topic updated!

Edited by xXObanXx
  • 0
Posted (edited)

It happened to me long time ago with users that were using bot programs such as L2Net :troll:

But I think it can be generated by something weird on your source, too... is your server clean of customs or did you modify some things?

Edited by ^Wyatt
  • 0
Posted

It happened to me long time ago with users that were using bot programs such as L2Net :troll:

But I think it can be generated by something weird on your source, too... is your server clean of customs or did you modify some things?

the only custom thing that i have on Enterworld.java is the PvP Color System... nothing more there..!

  • 0
Posted

the only custom thing that i have on Enterworld.java is the PvP Color System... nothing more there..!

You have wrong charInfo broadcasts, im pretty sure that your bad-coded pvp color system causes that, post your code here and I will clean it

  • 0
Posted (edited)


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);

}

}

 

Edited by xXObanXx
  • 0
Posted (edited)
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);
}
}

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 = ?

Edited by xdem
  • 0
Posted

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!

  • 0
Posted (edited)

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)

 

 

Edited by xXObanXx
  • 0
Posted (edited)

It's like your configs are wrong... what did you put on properties file?

ok... problem fixed... was not from any code that i added..!

was from the pack... i compared my pack with the latest from repository and the problem fixed!

btw... thank's all of you for your help!!

 

you can lock this topic!

Edited by xXObanXx
Guest
This topic is now closed to further replies.


  • Posts

    • My official facebook profile!: https://www.facebook.com/spectrumL2 Specifications: Revamped L2JACIS revision FROM the core Private project!!! Revision that has been receiving corrections for over 3 years!!! Events already installed in the revision: TVT CTF KTB PARTY FARM SPOIL EVENT CRAZY RATES TOURNAMENT TIME ZONE (INSTANCE) All working correctly!!! SIEGE ESSENTIAL FEATURES: Walls fix Gates fix Flags fix 100% functional: OLYMPIADS: Implemented settings Hero receives enchanted Weapons with equal status PvP Weapons Optional /true/false Hero can acquire all Hero Weapons Optional true/false OTHER IMPLEMENTATIONS: Teleport fixed (directly to Giran) Teleport effect classic Vip skins vip collor name Pack NPCs with effect already configured BOSES already configured Mobs already configured CLASS BALANCE SPECIAL SYSTEM We have a SPECIAL system developed for Class Balance with only 1 digit in XML %tage of configurable debuffs Player limitation system in BOSES or PvP zones BS blocking system in FLEG zones or events Among others dozens of improvements made in the review... price: 390 USD !  OBS: WE CAN CHANGE THE BANNER AND NAME OF THE SERVICE TO THE ONE OF YOUR PREFERENCE BUT THE SETTINGS MUST BE KEPT ANY CHANGES REQUIRE ADDITION        
    • Server is Online – 1,000+ Active Players! We’re excited to announce the addition of a Europe Proxy to improve connectivity for our EU players! Clans can now benefit from VIP Access to help you catch up faster. 🎯 If you're a clan leader with at least 9 active members, join our Discord and open a ticket to claim your VIP rewards!  
    • The Telegram team is rolling out a new batch of Stars-only gifts you’ll be able to mint as NFTs. Don’t miss your chance to join the next Telegram trend and earn from it! Buy Telegram Stars cheap and KYC-free 1 Star from $0.0149 (min. 50 Stars, bulk discounts available) Promo code STARS5 — 5 % off Pay any way you like: bank cards · crypto · other popular methods How to purchase: ➡Online Store — Click ➡ Telegram bot — Click Other services: ➡ SMM panel — Click Regular buyers get extra discounts and promo codes. Support: ➡ Telegram: https://t.me/solomon_bog ➡ Telegram channel: https://t.me/accsforyou_shop ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ Email: solomonbog@socnet.store Use these contacts to discuss wholesale orders, partnerships (current list: https://socnet.bgng.io/partners) or to become a supplier. SocNet — your shop for digital goods and premium subscriptions
  • Topics

×
×
  • 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