Jump to content

vampir

Legendary Member
  • Posts

    1,899
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Everything posted by vampir

  1. You might try either: if(target.isMonster())//If target is null, this will throw NullPointerException { something; } or if(target instanceof L2MonsterInstance)//Name of the class might be different(depends on your pack), like MonsterInstance, L2Monster { something; }
  2. LightFusion will help me for a reasonable price. Topic can be locked.
  3. Hi I would like to hire someone who can adapt to my H5 system: 1 Suit(1 Item part * 6 Races * 2 Class Types(Mage + Fighter) 2 Armor Types(4 Parts * 6 Races * 2 Class Types, helmet in .dat is not needed) 4 Cloaks 23 Weapons(This includes few Duals, no glows) By Adapting i mean: - Adding animations, textures to .u files(If you don't know how to make .u, i will tell you, its very easy) - Adding each of them to .dats - Adding Icon of each item - I will add them to server files by myself, so this is not required If you are interested, let me know how much it will cost me. You can do it by: - Posting in here - Sending me PM here(on MXC) - Talking to me on skype - niedziolek50
  4. Even if you can do everything alone, you might save a lot of time by working with someone else
  5. Epic Promo Video https://youtu.be/2tn-Q-mUDgw
  6. list = list.replace("%clanskills%", "<td align=center><button width=32 height=32 back=\"Icon.skill" + (largo.length() > 3 ? largo : largo3) + "\" fore=\"Icon.skill" + (largo.length() > 3 ? largo : largo3) + "\"></td>"); This seems wrong You should use StringBuilder to add next TDs. For example: StringBuilder builder = new StringBuilder(); for(L2Skill s : skills.values()) builder.append("<td blabla"); content = content.replace("%clanskills%, builder.toString()); You also should replace "break" in the loop with builder.append("</tr><tr>");
  7. You are looking for Packet ExGetPremiumItemList
  8. Check in html-en/scripts/services/Community/
  9. Are you 13 years old?
  10. I believe you can change default position of the windows by editing Inteface.xdat file. You can do it with XDAT Editor program, check out "wndDefPos" tab.
  11. That's how it is. If you want to make them look different, you will need to create completely new models of armors.
  12. That would cause all of those useless drops to exist in the memory and be sorted out every time monster drops the item.
  13. You should look for the class which is loading the drop lists. I have got NpcParser. In there you should just make check like this: if(!ArrayUtils.contains(Config.POSSIBLE_DROP_IDS, itemId)) continue;
  14. I was using cracked adrenaline on L2Redemption that uses SmartGuard without any difficulties
  15. You could take a look at Siege Zone, when player leaves the zone he is getting PvP Flag automatically.
  16. So i can suggest you to start with some smaller modifications. If you will spend some time on learning how everything works, you will be able to do a lot better things than just pages inside html :)
  17. Have you got the right to sell acis? I don't think so http://www.maxcheaters.com/topic/164529-acis-how-to-get-access/
  18. Have you got patched system? I also suggest to download and use latest fileedit.
  19. If you are server developer, thats not good way of doing it. As a player: K - this tellls how character moves during the skill usage - put 0 to disable 1231 - this tells how skill effect has to look like(so thats white effect of aura flash) - set is as empty text to disable.
  20. Maybe guy who you have helped, will improve his skills and someday help you. Helping others is cool, in larger perspective it's always worth the effort :)
  21. I think you might be talking about HotSwap. You can see the differences in here: http://zeroturnaround.com/software/jrebel/features/
  22. I didn't test it on live server, but i think it wouldn't work well because: 1. Longer start up time as you said 2. Most likely lower performance would cause lags 3. Reloading larger classes would be felt by players in game For development, its great :)
  23. There is a very cool software that i use, it is called JRebel(http://zeroturnaround.com/software/jrebel/). What can it do? You can reload any piece of code, without need to restart the server. Let's say you created quite a large code, but simple error doesnt allow you to test it. Normally you would need to: 1. Fix the error 2. Compile fixes(3 seconds. If you are wondering how i compile my whole source code in 3 seconds, look below) 3. Close the Server(Lets say 2 seconds) 4. Create the Jars and paste them(3 seconds) 5. Start the server again(33 seconds) 6. Login(10 seconds) 7. Test So totally it takes 51 seconds from fixing to next testing With JRebel you need to: 1. Fix the error 2. Compile fixes(3 seconds) 3. Create the Jars and paste them(3 seconds) 4. Test With JRebel it takes 6 seconds. How long it takes to start the server with JRebel? JRebel: 83 seconds NO JRebel: 33 seconds So that's big disadventage. If you are working on the code that runs at start of the server, its worth to disable the JRebel(it's very easy to disable it). How applying the changes looks like? 1. Fix the error/make the improvement/add something new: 2. Compile changed classes 3. Build the Jars and paste them(I have got build file which automatically pastes my jars) When class is used by JVM, you will see the message that it was updated 4. Test How to install JRebel? 1. Get Trial(Don't worry about 2 weeks, it's very easy to crack or you can just buy it) - https://zeroturnaround.com/software/jrebel/download/ 2. Activate it on your pc - Intellij IDEA - https://zeroturnaround.com/software/jrebel/quickstart/intellij/#!/activation - Eclipse - https://zeroturnaround.com/software/jrebel/quickstart/eclipse/#!/activation 3. Download JRebel.jar - https://zeroturnaround.com/software/jrebel/download/thank-you/?file=jrebel-6.1.3-nosetup.zip 4. Paste JRebel.jar near StartGameServer.bat 5. Put -javaagent:jrebel.jar just after java in StartGameServer.bat 6. You need to create jrebel folder near StartGameServer.bat and - Add there jars that you want to be reloadable. I am adding just gameserver + scripts + commons - So you will need to have those 3 jars in 2 locations: your libs + jrebel folder - While launching the gameserver, remember that jars in jrebel must be exactly the same as your jars in libs, or JRebel will not work fine 7. You need to create jrebel.xml, add it into your configs file - Thats how my jrebel.xml looks like: http://pastebin.com/hNzjDE6R - You should edit jarset dir, to link to your jrebel folder 8. Launch the gameserver. You should see something like this How to compile my changes so fast? - I am compiling just classes that were modified lately, not the whole source - I have got Build file which copies created jar to my libs + jrebel folder So for the first time i click Build > Rebuild Project in Intellij IDEA(i don't know about eclipse). It takes a while but after that i can use Compile 'Player.java' or Make Project which compiles just changes files The Compile files are put to "C:\Users\Michal\IdeaProjects\L2Tales\out\production\L2Tales" My Build file: http://pastebin.com/MbkCBBVh
  24. I will teach you how to fix your java bugs, a lot more effectively. What you will need: https://www.jetbrains.com/idea/ First i will show what you will be able to do, and at the end how to set it up. 1. Setting Break Points: When JVM will reach the breakpoint, whole game will freeze(so just use it on your test server) and you will be able to see: - Stacktrace(it tells you the path that JVM passed to reach the Break Point) - Variable values(you can change however you like) - You can setup the Watches(if you have got access to the object, you can take look for its content) - You can run any code fragment you like 2. You can make Break Point stop, only when condition returns true 3. You can log messages to the IDE console without suspending the thread How to install it? 1. Click Run > Edit Configurations 2. Add new Remote(we are setting up gameserver that will run on our pc, it is called remote because it is not started by IDE) 3. Set the name, click Shared Memory + Attach mode(Listen can be useful sometimes, but its faster to run the server with Attach mode), set the port(i use ports from 5005-5015) 4. Edit your StartGameServer.bat. After java add "-agentlib:jdwp=transport=dt_shmem,server=y,suspend=n,address=5007" 5. Run your server 6. In IDE click Run > Debug 'GameServer'
×
×
  • 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