Jump to content

adenaman

Members
  • Posts

    369
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by adenaman

  1. main thing: exLeader.updateNameTitleColor();
  2. task should be used only when the problem can only be resolved with them, are much more expensive than sequential code. But it your decision, for example, Java is a lot more slower than c/c++ but its easier to use. Tasks are great for synchronized events but this one is more asyncr (you get a kill when you get a kill) than syncr (the 5 sec time) And i find the sequential easier
  3. this looks like a client side problem, there are no space enought to write the first "1" in stats. you can crate a voicedCommandHandler to just activeChar.sendMessage("ma atk is: "+getMAtk()) and see what it returns
  4. tasks for this? no for a server with a lot of ppl. edit: you can update the saved time in the succeed case of if if you want to
  5. setCumulKill(CumulKill()+1); if ( cumulkill() == 1) { time = current time; timelast = time +5 sec; } doublekill(); public void doublekill () if ( time =< timelast) { if (CumulKill() >=2) { reward doublekill; } } else { SetCumulKill (0); } you modify time and timelast only once, so time < timelast every moment i will edit this post to try to write something that will work, dont have time atm Edit: long _savedTime = 0; int _pvpStreak = 0; // not needed for only double kills ... if (System.currentTimeMillis() - 5 sec <= _savedTime){ _pvpStreak++; switch ( _pvpStreak){ case 2: ... break; case ... } } else{ _savedTime = System.currentTimeMillis(); _pvpStreak = 0; } more or less
  6. EnterWorld is executed after the creation of the character (if im not wrong), so its not a rly good way to block it, the best one is to find the packet received with data of the new char and send some action failed pack ( even the one that say that the name is already in use) Btw Franky gratz for "Posts: 3.500"
  7. For example Baium: game/data/scripts/ai/individual/Baium.java if (GrandBossManager.getInstance().getBossStatus(LIVE_BAIUM) == ASLEEP && player.getQuestState("baium").hasQuestItems(4295)) // bloody fabric { player.getQuestState("baium").takeItems(4295, 1); // allow entry for the player for the next 30 secs (more than enough time for the TP to happen) // Note: this just means 30secs to get in, no limits on how long it takes before we get out. _Zone.allowPlayerEntry(player, 30); player.teleToLocation(113100, 14500, 10077); } just comment the hasQuestItems and takeItems
  8. On the other hand, do you want to play a server where there are 1 custom zone (where the 10 ppl playing the server are) and you just get instant max gear to only nonsence pvp
  9. you can get the party from l2pcinstance and just make a for each loop with 2 flags initialized to false and turn them true when you find healer/buffer
  10. a lot, some that i can remmember are synchronization misunderstanding and variables "????", but i didnt even tryed to fix it, just wanted to take a look at some static vars (some https)
  11. thats the decompiler that i used time ago, i think now it also has some elipse plugin. And the only thing that i cn recomend you is to save decompiled files without midification and with every new update just compare both decompiled versions
  12. since we dont have any code to work with i can only tell you to: at com.l2jarchid.gameserver.event.DM.selectTop(DM.java:118) before remove to make a check if (whatIWantToRemove != null) btw you are not trying to remove from a map inside a foreach loop, are you? if thats the problem use iterator.remove
  13. TeraEmu is dead, and for exmple, before there was a Tera-Api project, but it closed because tera's company closed them. Its like not only l2j is dying but all the spirit of games emulations. I had no idea about Br servers, but i know that there are a lot of russian servers, but for example there is a must to have russian htms. And l2j needs a lot of ppl playing it, because there are a lot of servers, and all the servers are nearly the same, nothing new.
  14. Does any of you know if there are tera or blade and soul public emulators? because in my opinion its time to move on. Because from developer point of view l2j is a big chance to improve and implement new stuff, but for players its just and old, unreal engine 2, game when we have already seen all what we had to see.
  15. And dont forget that you will need to modify the packets that you send to the client with the new info. But you can allways do an extra htm window that can me opened with custom command (.getLegendTime)
  16. oww my bad. One more thing, now i have been looking for priority system used in java and didnt found too much information. But are the 2 urgent I/O packets threads needed if a proirity system is implemented? Anyway i know that those 2 threads are only created when needed but we still use a pool for them. And if they are rly urgent (cant even wait to any of other 4 to finish) is there a block active thread if urgent income politic? Thx for the info
  17. 2+4 threads for I/O since that threads may be most of the time blocked, shouldnt we use some more?
  18. "protection" can be separated into 2 types - No server code fails (checks when every things can be done for example, no able to buy things that you can not buy) - Client side protections (l2.exe files are how the are supposed to be after it is executed, no bot programs are executed, ...) So usually pack protection is not enought Note: there are other things that can be done, set invisible mobs that bot see but user dont, or check each characters actions (for example target mobs in the same second that they are spawned) or w/e But as i said: this things must be done in a unique way because are easy to fix by bot's creators if they see the code
  19. btw did you add the henna_trees info for that new id?
  20. ArrayIndexOutOfBoundsExceptions just find that array and fix the size
  21. Well there are more things to do than code the server. Just take a look at any prefessional company, maybe 1/3 of the staff are coders. Someone must create the story, events, stats, the ideas, ... or even seek for players or find the best way to get the money from them, and to do that you dont need any java knowledge
  22. L2j servers nowdays are easy to code, setup and edit. You should try to make your server by yourself because it doesnt have anything hard if you have time to "learn" it. And you can anytime ask here for help/ideas if anything is going wrong
  23. he was talking about gm's gifts ;)
  24. you must work with the aCis's pack/project @tebi que montando un l2 fruta?
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..