Jump to content

vampir

Legendary Member
  • Posts

    1,899
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Everything posted by vampir

  1. 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);
  2. 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())
  3. You need to modify Attack(0x33) packet. Set soulshot as not charged in there to disable the effect.
  4. I have got the same thing in my source, Kama3a wrote that? :O
  5. 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.
  6. Replace "%ObjectId%" with %objectId% and check if Donation List button will work after that. What pack are you using?
  7. 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");
  8. 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 :)
  9. 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"
  10. making good looking htmls doesn't seem to be your strong side :P
  11. 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.
  12. You can use umodel to export it. It's not original file.
  13. I don't know how it got deleted :S Reuploaded: https://www.4shared.com/file/EnFrKCv4ba/L2UI_CT1_CN.html?
  14. 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
  15. 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
  16. Nice idea about Academy search, i never thought of creating that. With noscrollbar and different icon on top left it would look better though :)
  17. 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
  18. 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
  19. Did you recompile core + scripts? What's in Scripts:77?
  20. I believe thats server side problem. Most likely Chain Heal is using different System Message.
  21. 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
  22. It does, but we are talking about first example(with scheduleGeneralAtFixedRate(Runnable, long, long) method)
  23. It would be possible to write it, but the result is totally not worth the effort
  24. 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.
  25. 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)
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock