-
Posts
1,899 -
Joined
-
Last visited
-
Days Won
14 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by vampir
-
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.
-
Help Respawn After...(Threadpoolmanager)
vampir replied to StealthyS4m's question in Request Server Development Help [L2J]
Yes, but your code isn't complete. The goal: -6 Seconds: Send "Respawn in 6 Seconds" message -5 Seconds: Send "Respawn in 5 Seconds" message -4 Seconds: Send "Respawn in 4 Seconds" message -3 Seconds: Send "Respawn in 3 Seconds" message -2 Seconds: Send "Respawn in 2 Seconds" message -1 Seconds: Send "Respawn in 1 Second" message 0 Second: Respawn Player The First code is bad because of scheduleGeneralAtFixedRate. This method is good if you want to make same repeated task every x amount of time, cancel it in rare cases. It's hard to cancel the method and to get "countdown" variable from inside the method. The Second Code is quite fine, but it would be better with just 1 Thread. Your code doesn't print any messages -
Help Respawn After...(Threadpoolmanager)
vampir replied to StealthyS4m's question in Request Server Development Help [L2J]
It does, but we are talking about first example(with scheduleGeneralAtFixedRate(Runnable, long, long) method) -
Discussion Lineage Application
vampir replied to SQL Developer's topic in General Discussion [English]
It would be possible to write it, but the result is totally not worth the effort -
Help Respawn After...(Threadpoolmanager)
vampir replied to StealthyS4m's question in Request Server Development Help [L2J]
You could make something like that: private ScheduledFuture<?> thread; public void startThread() { thread = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Something(), 5000L, 5000L); } private static class Something implements Runnable { @Override public void run() { getInstance().stopThread(); } } private void stopThread() { thread.cancel(false); } private static class SingletonHolder { private static final MainClass instance = new MainClass(); } public static MainClass getInstance() { return SingletonHolder.instance; } But it's a lot better to use schedule(and if you want to cancel it, just put if(shouldThreadBeCancelled()) return;) than scheduleGeneralAtFixedRate and cancelling it that kind of way. -
Help Respawn After...(Threadpoolmanager)
vampir replied to StealthyS4m's question in Request Server Development Help [L2J]
The second code is about fine, you could have done it with one thread but thats nothing for the resources. Never use that shutdown, it will destroy your thread manager. You can cancel thread by first saving it as ScheduledFuture<?>, for example: ScheduledFuture<?> thread = ThreadPoolManager.getInstance().schedule(new Something(), 5000L); thread.cancel(false); However, in the first program it would be hard to use that method(you would need to get ScheduledFuture<?> thread from inside somehow)
