-
Posts
1,899 -
Credits
0 -
Joined
-
Last visited
-
Days Won
14 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by vampir
-
Help Threadpool Question
vampir replied to VideoCopilot's question in Request Server Development Help [L2J]
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 :) -
Help Threadpool Question
vampir replied to VideoCopilot's question in Request Server Development Help [L2J]
But server machine doesn't -
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.
-
Help Threadpool Question
vampir replied to VideoCopilot's question in Request Server Development Help [L2J]
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) -
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
-
Help Return String (Html) Problem
vampir replied to VideoCopilot's question in Request Server Development Help [L2J]
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); -
Help Have Some Problem With Adaptation Elfocrash's Menu For L2Jacis
vampir replied to t4u2d's question in Request Server Development Help [L2J]
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()) -
Help Have Some Problem With Adaptation Elfocrash's Menu For L2Jacis
vampir replied to t4u2d's question in Request Server Development Help [L2J]
You need to modify Attack(0x33) packet. Set soulshot as not charged in there to disable the effect. -
WTS L2Age / L2Woa - Source - Development, Services [H5]
vampir replied to Kama3a's topic in Marketplace [L2Packs & Files]
I have got the same thing in my source, Kama3a wrote that? :O- 133 replies
-
Help Weird Console Error
vampir replied to HammerV2's question in Request Server Development Help [L2J]
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. -
Replace "%ObjectId%" with %objectId% and check if Donation List button will work after that. What pack are you using?
-
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");
-
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 :)
-
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"
-
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.
-
You can use umodel to export it. It's not original file.
-
I don't know how it got deleted :S Reuploaded: https://www.4shared.com/file/EnFrKCv4ba/L2UI_CT1_CN.html?
-
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
-
WTS L2Age / L2Woa - Source - Development, Services [H5]
vampir replied to Kama3a's topic in Marketplace [L2Packs & Files]
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- 133 replies
-
WTS L2Age / L2Woa - Source - Development, Services [H5]
vampir replied to Kama3a's topic in Marketplace [L2Packs & Files]
Nice idea about Academy search, i never thought of creating that. With noscrollbar and different icon on top left it would look better though :)- 133 replies
-
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
-
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
-
Help Failed To Load Russian Pack
vampir replied to janiko's question in Request Server Development Help [L2J]
Did you recompile core + scripts? What's in Scripts:77? -
I believe thats server side problem. Most likely Chain Heal is using different System Message.