Jump to content

`Son

VIP Member
  • Posts

    318
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by `Son

  1. Εγώ. Κάνε τον access να το βουλώσει και στο δίνω . Btw και να στο δώσω δεν θα σου απαντήσει όποτε .

    Γιατι? τον βαρανε στο σπιτι οταν μιλαει σε ξενους?

  2. kalhsperizw olo to team, kai ta member tou maxcheaters.

    asxoloume 4 xronia me to dev kai ta pack...

    kai den exw katalavei akoma poio einai to kalhtero pack free na to stiseis apo monos sou ...dld clear version p.x.

    egw thelw na ftiaksw enan pvp server, parakalw thelw apanthseis apo gnwstes tou thematws gt thelw na kanw kati kalo kai oxi gia plaka h xasimo xronou.

    kai eimai apopsis oti ta free pack clear einai oti kalhtero gia na ksenisei kaneis me to dev tou server.

    perimenw na akousw prwtaseis..

     

    Me ektimhsh,

    Tasos!

    To gegonos oti asxoleisai 4 xronia me developing kai den ksereis ti einai to acis me kseperna

  3. Its nice when people make and share things but for the creator of this, why you didnt spend a bit more time on working on that?

    I can see is a "fast" work and logo cover the face of the statue which gives a bad look.

     

    Again gj but you can do better, especialy when you have the tools to do such a work, spend a bit more on make the bg beautiful and no just a night sky from google.

    GG

    Everyone can dedicate a part of their free time to do stuff. lol

    Hes already recognized as skilled client dev so he definately can make some even better lobbies

  4.  

    • Use try-with-ressources feature (check any db connection on aCis to get it).
    • Edit Vector and replace by a ConcurrentHashMap. Drop synchronized calls wherever they are. You can avoid an already stored player with putfAbsent.
    • new String(), replace by "".
    • There are numerous cases like the case below, I just give one :
    • +    private static boolean finishEventOk()
      +    {
      +        if (!_started)
      +            return false;
      +        
      +        return true;
      +    }
      

      >

    • +    private static boolean finishEventOk()
      +    {
      +        return _started;
      +    }
      
    • Use static HTM. It's easier to edit an HTM and reload HTM rather than launch eclipse, compile, close your server, replace jar and restart it. Moreover it's properly stored for reuse by HtmCache.
    • Name and title colors already exist under PcAppearance.

     

    What if hes running the server through eclipse? :P

  5.  

    2016.5.20 17:40:32
    OS : Windows Vista 6.1 (Build: 7601)
    CPU : AuthenticAMD Unknown processor @ 3593 MHz with 4095MB RAM
    Video : AMD Radeon R7 200 Series (1452)
     
    General protection fault!
     
    History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop
     
     
    HAVE ANI SOLUTION FOR THIS ERROR ?  :'(  :'(  :'(  :'(

     

    delete your system, download again your server's  patch and put it in your lineage 2 directory, If this doesnt fix your problem, install a clean client, delete your system and copy your server's client files in your Lineage 2 Directory

  6. Hi again, id like to know if theres a way to add some delay between the execution of some lines of code.

     

    For example. I've got the mob named X. When i kill the mob named X i want after 20 seconds to spawn automatically the mob named Z. (I've already did the code part for the spawn of Z but idk how to add the delay)

     

    Thanks a lot

     

    I guess i need to give more infos on how i coded it so the help comes more accurately.

     

     

    if(getNpcId()==80209)
    {
     
    spawn(80210, x, y, z);
    }
     
    I put this in doDie in RaidbossManager, so when i kill the mob with id 80209 i want to spawn the mob with id 80210
  7. What i did is:

    Created a new db table handling the rewards. I got a key column with ids of rewards, charId, rewardGiven(boolean).

     

    So on  EnterWorld i make it to check if the rewards table contains activeChar.getCharId() and rewardGiven=false then give the reward. This way i guess will be effective and i wont miss any rewards.

     

    I just care to improve on java so im looking for optimized ways. The problem is solved, but i would indeed appreciate any better idea than this. :)

  8.  public static void AutoReward()

           {

                   Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values();

                   for (L2PcInstance p: pls)

                   {

                      

                      Announcements.announceToAll("Online Time Reward!");

                           Announcements.announceToAll("Congratulations to all players!");

                           Announcements.announceToAll("Next reward in 30 minutes!");

                           p.addItem("Auto Reward Online", Config.AUTO_REWARD_ID, Config.AUTO_REWARD_COUNT, p, true);

                   }

           }

    Translation of your code.

    When there is a player online announce to all bla bla bla.

    Announcements should happen 1 time so they dont need to be inside any loop for players. Announcements is global function, you dont need to cast it for each player. The loop should just be for the individual global reward.

     

    The bad way of writing shouldnt really worry you right now because you are newbie but, try to check how other global methods are handled in your pack or even check others codes doing global stuff so your writing will get more and more optimized.

  9. I guess the only way is to use either a db table with

    1. player_id_to_reward (charId)

    2. rewarded (boolean)

     

    and then just check if rewarded=0 in enterworld then 

     

    addItem(String process, int itemId, long count, L2Object reference, boolean sendMessage)

    activeChar.addItem("reward",  reward_itemId, 1, null, 0);

    rewarded=1;

     

    whatd u think? any other most optimized way?

  10. Im trying to make an engine which will reward some top players. Adding an item in a players inventory while hes online is pretty easy, any idea on how i could make it give it to offline players aswell?

     

    I declined the idea of using a connection through the database because of the use of objectid conflict. Idk if theres already a premade method to do it in l2j because im new.

×
×
  • Create New...