Jump to content

Recommended Posts

Posted

There are mistakes :D

 

The prepare() method should be called before the waitSecs(45) method(in handle() method).

 

In register(L2PcInstance p) method, this line MUST be removed:

state = State.REGISTERING;

 

The inLHE boolean in L2PcInstance isn't needed, since there are not checks in L2PcInstance, but in my opinion there should have been some.

 

There should have been checks in Logout and RequestRestart packets.

 

This:

+              if (!(state == State.INACTIVE))

+              {

+              {

+                      while (state == State.REWARDING)

+                      {

+                              endAndReward();

+                              teleport(true);

+                      }

+              }

should have been coded in another way. First of all, in while loop there should have been a waitSecs(x)(where x put between 5-15), to avoid possible lags because of multiple checks.

 

In endAndReward() method there should have been a check if both players are killed and if both are disconnected or 1 of them, to immediately stop the game.

 

In clear() method, before you set player1 and player2 objects to null, you should set to false the inLHE boolean, since it exists.

 

Also winner and loser objects are not needed.

Posted

There are mistakes :D

 

The prepare() method should be called before the waitSecs(45) method(in handle() method).

 

In register(L2PcInstance p) method, this line MUST be removed:

state = State.REGISTERING;

 

The inLHE boolean in L2PcInstance isn't needed, since there are not checks in L2PcInstance, but in my opinion there should have been some.

 

There should have been checks in Logout and RequestRestart packets.

 

This:

+              if (!(state == State.INACTIVE))

+              {

+              {

+                      while (state == State.REWARDING)

+                      {

+                              endAndReward();

+                              teleport(true);

+                      }

+              }

should have been coded in another way. First of all, in while loop there should have been a waitSecs(x)(where x put between 5-15), to avoid possible lags because of multiple checks.

 

In endAndReward() method there should have been a check if both players are killed and if both are disconnected or 1 of them, to immediately stop the game.

 

In clear() method, before you set player1 and player2 objects to null, you should set to false the inLHE boolean, since it exists.

 

Also winner and loser object are not needed.

thx my friend ;)

Posted

Anarchy can you post a patch with your corrections?

 

Sorry, can't do it since there is no time. But it's easy since i fully explain where are the problems.

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market Auto Buy Store  : https://utchiha-market.mysellauth.com/ Not sure if we’re legit? Check Our server — real reviews, real buyers https://discord.gg/uthciha-servicess  | https://campsite.bio/utchihaamkt  
    • WTB L2Scryde full gear or adena / items if anyone is quitting and selling good stuff at reasonable price hit me up, ty
    • More possible that is a transfor skill, from wallhack xD
    • - Chronicle: Kamael (CT) - Date: 29.08.2025 - EXP Rate: x3 - Adena: x3-x2 - Drop chance: x3 - Spoil chance: x3 (x2 for S grade) - Raid drop chance: x2 - Epic drop chance: x1 - Box limit: 1+1 - No donate.         The Kamael - August 29th The long-awaited Kamael Update arrives on August 29th (18:00 GMT +2) - bringing with it a new race with a unique class system, new lands, and the unfolding of the Chaotic Throne saga. Be among the first to set foot on the Isle of Souls, meet the enigmatic Kamael, and uncover secrets buried for centuries.   Prepare to experience: The Kamael race and their unique class paths The mysterious Isle of Souls Fortress Battles* - dynamic, mid-scale sieges with new strategic depth High-level zones like Hellbound* and Isle of Prayer New items, attribute system, great wolf and more in the new chapter in the lore of ElmoreLab * This feature will be introduced in one of the upcoming updates.     Open Beta Begins August 15th Test the waters of destiny before the full release. Join the Open Beta starting August 15th and be part of shaping this historic moment. The seal is broken. The world will never be the same. Will you walk beside the Kamael, or be left behind? Learn More In-Game - Today Visit Priest Dominic in the Rune Temple for a glimpse of what’s to come. He will reveal the astonishing truth about a people long hidden from the eyes of the five known races of Aden and Elmore. But beware - Dominic may have his own reasons for sending you on this path.   Full server description
  • 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