Jump to content

vampir

Legendary Member
  • Posts

    1,899
  • Credits

  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Everything posted by vampir

  1. Try to create 2^31-1 empty threads and schedule them to be run every second and let me know if your machine can handle it without any high CPU usage :)
  2. But server machine doesn't
  3. I had the same problem, i made screenshot during that blink and found out that the Path(in the installer bat file) to Java JDK was not updated.
  4. From my experience, not at all. I have got threads that are running far more often and that's not causing me any troubles. Just remember: - sometimes scheduleAtFixedRate/scheduleAtFixedDelay might be a lot better - sometimes you can combine 100 threads into 1(for example if you want to give 2 recommendations to every player that was online for at least 2 hours, you can create new thread for each player or you can create 1 thread that would handle them all)
  5. Check if *.jar containing Gameserver.java is loaded by .bat/.sh that you are running. My StartGameServer.bat contains that: config;./libs/* l2f.gameserver.GameServer So all of my jars are in libs folder
  6. What do you have near that method call? It should be something like that: NpcHtmlMessage msg = new NpcHtmlMessage(0); msg.setHtml(stats(player)); player.sendPacket(msg);
  7. In your first code, i can see if player disables Shots then Soulshots HE uses cannot be seen by himself or anybody else. To continue that practice you should modify parameter "useShots" in Attack constructor. You can do it in 2 ways: 1. That i think is more dirty: before soulshot = useShots; put if(attacker.isPlayable() && attacker.getPlayer().isSSDisabled()) soulshot = false; else 2. Find usages of that constructor and modify soulshot usage before constructor is used. I don't have acis sources on my PC(just using online SVN) so i cannot help you. What i think would be a lot better, is making only player that doesn't want to see Shots to not see them all around. To do that you need to play with who the packet is sent to(take a look at getClient() in writeImpl())
  8. You need to modify Attack(0x33) packet. Set soulshot as not charged in there to disable the effect.
  9. I have got the same thing in my source, Kama3a wrote that? :O
  10. InvocationTargetException just tells that there was error running method by invoker, so you can skip that part. The real problem is NullPointerException It's strange that error appeared on line 71 and file that you gave us have only 59 lines. It says line 71 is in onSpawn(L2Npc) method, the only thing that might go wrong in there would be npc == null, but that's quite strange so i suggest to just recompile scripts and check if it will happen again.
  11. Replace "%ObjectId%" with %objectId% and check if Donation List button will work after that. What pack are you using?
  12. Do you mean, you want to move hardcoded html from java file to .htm file? If so: - Create yourName.htm file in html/default(or any other folder you like) - Paste html from java file, change \" to ", change " + getObjectId() + " to %objectId% - Remove hardcoded html from java file, also remove html.setHtml(blabla); and add in there: html.setFile("default/yourName.htm");
  13. You should make it at the beginning of startMinionSpawns(int) method. If you know how to make configs, just put in there: if(!Config.ENABLE_ANTHARAS_MINIONS)//You will need to create ENABLE_ANTHARAS_MINIONS field in Config.java return; If you are total newbie, you can just remove the content of that method and it will make a job too :P However that's not recommended, because if you will change your mind, then you will have a problem :)
  14. This might help you: http://www.maxcheaters.com/topic/188974-editing-html-windows-in-h5/ Example of using the button: <button value="Button Name" action="bypass -h npc_%objectId%_Chat 1" width=100 height=30 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> Change L2UI_CT1 to L2UI_CT1_CN Change "Button_DF" to name of the button image in that utx, for example "hyperlink_focus_btn" Change "Button_DF_Down" to name of the image that should appear when player clicks mouse on the button, for example "hyperlink_focus_btn_down"
  15. making good looking htmls doesn't seem to be your strong side :P
  16. https://www.4shared.com/rar/JsV7b0EVba/UModel.html? Unpack it somewhere, put "L2UI_CT1_CN.utx" near "umodel - Export.bat", use "umodel - Export.bat" Edit "umodel - Export.bat" with notepad if you want to export other utx file.
  17. You can use umodel to export it. It's not original file.
  18. I don't know how it got deleted :S Reuploaded: https://www.4shared.com/file/EnFrKCv4ba/L2UI_CT1_CN.html?
  19. https://www.4shared.com/file/EnFrKCv4ba/L2UI_CT1_CN.html? This is custom made UTX, but it contains all new buttons that are in ertheia
  20. To remove those 2 buttons(1st on top right and 2nd on botton right) connected to scrolling. Since the page doesn't need scrolling at all, you can delete them
  21. Nice idea about Academy search, i never thought of creating that. With noscrollbar and different icon on top left it would look better though :)
  22. I was wrong, those messages aren't coming from server. Strange thing is there are same messages in systemmsg-e.dat, but changing them isn't making the difference so they are most likely hardcoded in client dll files
  23. Added Bypass to Website: Edit Box that cannot be Edited: Clan Crest in Html File: Let me know if there are any not long html things that you cannot code, so i will work on them and add as example here
  24. Did you recompile core + scripts? What's in Scripts:77?
  25. I believe thats server side problem. Most likely Chain Heal is using different System Message.
×
×
  • Create New...