Jump to content

[PREVIEW] L2JPrim Gameserver


Recommended Posts

Sugnwmh pou sas to xalaw, alla to nexus to exw spasei edw kai kairo, exw kai proofs apo to source code kai images dialexte :D

 

nai re agorina ok to nexus spaei

 

 private static final boolean isValid(String key)
  {
    try
    {
      try
      {
        commandSocket = new Socket("94.229.33.242", 4401);

        commandOut = new PrintWriter(commandSocket.getOutputStream(), true);
        commandIn = new BufferedReader(new InputStreamReader(commandSocket.getInputStream()));
      }
      catch (UnknownHostException e)
      {
        debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
        tryReconnect = true;
        return false;
      }
      catch (IOException e)
      {
        debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
        tryReconnect = true;
        return false;
      }

      try
      {
        commandSocket.setSoTimeout(30000);
      }
      catch (SocketException se)
      {
        debug("Unable to set commandSocket option SO_TIMEOUT");
      }

      commandOut.println(new StringBuilder().append("pkey ").append(key).toString());

      boolean b = false;
      String inputLine;
      while ((inputLine = commandIn.readLine()) != null)
      {
        if (inputLine.startsWith("passed"))
        {
          b = true;
        }
        else if (inputLine.equals("failed"))
        {
          b = false;
          tryReconnect = false;
          debug("Nexus Engine: Wrong license. Engine not loaded!", Level.SEVERE);
        }

      }

      commandIn.close();
      commandOut.close();
      closeSockets();

      return b;
    }
    catch (Exception e)
    {
      debug("Connection to the authentication server timed out. Next try in 30 seconds.", Level.SEVERE);
      tryReconnect = true;
      closeSockets();
    }return false;
  }

 

 

alla to nexus den einai opws to L2PcInstance me ton tropo pou to exo kanei egw den spaei alla autos ekei na epimeni oti spaei!!!

 

 

den spaei re ti les, to pedi sto analise me epistimoniko tropo... :dat:

 

esi re leacher ti petagese den sou eipa min xananixis to stoma sou?

Link to comment
Share on other sites

dineis to source? h compiled pack?

 

exo dilosi implements mesa sto L2PcIstance se allo jar anagkea gia na trexi olo to pack... opote k to source code na paroune tou server auto den ginete na to alaxoune

Link to comment
Share on other sites

nai re agorina ok to nexus spaei

 

 private static final boolean isValid(String key)
  {
    try
    {
      try
      {
        commandSocket = new Socket("94.229.33.242", 4401);

        commandOut = new PrintWriter(commandSocket.getOutputStream(), true);
        commandIn = new BufferedReader(new InputStreamReader(commandSocket.getInputStream()));
      }
      catch (UnknownHostException e)
      {
        debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
        tryReconnect = true;
        return false;
      }
      catch (IOException e)
      {
        debug("Can't connect to the authentication server. Next try in 30 seconds.", Level.SEVERE);
        tryReconnect = true;
        return false;
      }

      try
      {
        commandSocket.setSoTimeout(30000);
      }
      catch (SocketException se)
      {
        debug("Unable to set commandSocket option SO_TIMEOUT");
      }

      commandOut.println(new StringBuilder().append("pkey ").append(key).toString());

      boolean b = false;
      String inputLine;
      while ((inputLine = commandIn.readLine()) != null)
      {
        if (inputLine.startsWith("passed"))
        {
          b = true;
        }
        else if (inputLine.equals("failed"))
        {
          b = false;
          tryReconnect = false;
          debug("Nexus Engine: Wrong license. Engine not loaded!", Level.SEVERE);
        }

      }

      commandIn.close();
      commandOut.close();
      closeSockets();

      return b;
    }
    catch (Exception e)
    {
      debug("Connection to the authentication server timed out. Next try in 30 seconds.", Level.SEVERE);
      tryReconnect = true;
      closeSockets();
    }return false;
  }

 

 

alla to nexus den einai opws to L2PcInstance me ton tropo pou to exo kanei egw den spaei alla autos ekei na epimeni oti spaei!!!

 

 

esi re leacher ti petagese den sou eipa min xananixis to stoma sou?

 

ama sto method sou svisw oti exei mesa kai valw apla return true; ti les na ginei? BOOM

Link to comment
Share on other sites

ama sto method sou svisw oti exei mesa kai valw apla return true; ti les na ginei? BOOM

 

eides pou den xeris tpt auto einai apo to nexus kefte e kefte alla eipame tosa xeris tosa les..

 

 

ma oti methodos leipei apo to pc instance kai yparxei sto allo jar, apla ta travas kai ta stelneis pisw ena file kai teleiwse

 

den mporeis to exo prospa8isi me polous tropous ase pou sto decompile ekoino to jar den ginete decripte :)

Link to comment
Share on other sites

private static final boolean isValid(String key)

{

      return true;

}

 

gg

 

 

eides pou den xeris tpt apo java? gt na min sbisis apla to isValid() ekei pou to zitaei? :)

 

 

dwse moy team view :D

 

more team sou dino alla na kaneis decompile ekoino to jar den ginete exo plirosi gia na paro code gia to build gia na min mporoune na to anixoune

Link to comment
Share on other sites

eides pou den xeris tpt apo java? gt na min sbisis apla to isValid() ekei pou to zitaei? :)

 

 

more team sou dino alla na kaneis decompile ekoino to jar den ginete exo plirosi gia na paro code gia to build gia na min mporoune na to anixoune

 

afou re man to boolean mou estiles, pou na 3erw pou ston mpoutso einai to isValid sovarepsou

Link to comment
Share on other sites

afou re man to boolean mou estiles, pou na 3erw pou ston mpoutso einai to isValid sovarepsou

 

dld eitane ena akiro boolean den xrisimopioite apo pou8ena? Oo

 

ma auto einai to 8ema to isValid() einai o elenxos to simio pou elenxi to nexus egw 8a piraza to simio pou elenxi to isValid()...

Link to comment
Share on other sites

dld eitane ena akiro boolean den xrisimopioite apo pou8ena? Oo

 

ma auto einai to 8ema to isValid() einai o elenxos to simio pou elenxi to nexus egw 8a piraza to simio pou elenxi to isValid()...

 

apo tin stigmi pou to isValid epistrefi panta true, more den pas na to codareis kai se BIN kai se oti 9es, to code espase mono me to return min to sinexizeis

Link to comment
Share on other sites

eides pou den xeris tpt apo java? gt na min sbisis apla to isValid() ekei pou to zitaei? :)

 

 

more team sou dino alla na kaneis decompile ekoino to jar den ginete exo plirosi gia na paro code gia to build gia na min mporoune na to anixoune

 

GIATI MPOREI NA TO ZITAEI SE 100 SIMIA RE ANIDEE

Link to comment
Share on other sites

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.




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