Jump to content

dpbBryan

Members
  • Posts

    370
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by dpbBryan

  1. What does your login/gameserver output say? Check there and make sure you're getting a connection.
  2. I'm not really sure this is a thread for development, but ask the obvious questions first. is the server running off the same machine?
  3. Check around line 935 if event == "giveBuffs": somewhere in that conditional block you can create a variable such as isInOly = st.getPlayer().InOlympiadMode() then you need to create another conditional block such as if isInOly == False: #default logic to buff else: #player is in oly, cannot buff
  4. Where these lines of code not already in there? In the version of the code I downloaded (l2j freya distro) this code already exists. In the python code for the buffer you showed, L2PcInstance is being imported, which means you can use the function that already exists: public boolean isInOlympiadMode() { return _inOlympiadMode; } I'm not sure where excatly the buff is applied to the player in the buffer code, but I guess it'd be easiest probably to not let the player use the buffer at all if his instance of L2PcInstance's _inOlympiadMode is true.
  5. Hi Kenrix, I tried searching the datapack and also server for where this is but I can't seem to find it. Can you give more information about where this is and did you change anything?
  6. Hi POP-CORN, I guess you could take a look at PcAppearance.java (com.l2jserver.gameserver.model.actor.appearance). Inside L2PcInstance it's defined as: private PcAppearance _appearance; When the character is created: public static L2PcInstance create(int objectId, L2PcTemplate template, String accountName, String name, byte hairStyle, byte hairColor, byte face, boolean sex) { // Create a new L2PcInstance with an account name PcAppearance app = new PcAppearance(face, hairColor, hairStyle, sex); ... } EDIT: Actually sorry, I'm not sure if it's in here, I don't see anything about race, this also applies to all the generic characters in the world EDITEDIT: Check package com.l2jserver.gameserver.model.base, PlayerClass.java PlayerClass(Race pRace, ClassType pType, ClassLevel pLevel) { _race = pRace; _level = pLevel; _type = pType; } You maybe be able to check this to set the race to another
  7. You need to ask on the project's own forum. http://www.l2equal.lt/
  8. In L2PcInstance.java: private boolean _inOlympiadMode = false; public boolean isInOlympiadMode() { return _inOlympiadMode; } In the python code before you can add: player_in_oly = st.getPlayer().isInOlympiadMode() if player_in_oly == True: #You can't buff message
  9. Use the command line and type: apt-cache search jre (or jdk) It'll print out a list of java related stuff, find the JRE or JDK with the highest version and type sudo apt-get install <whateverwasfoundonthelist>
  10. Hi BaGGoC, I'm not sure if you have programming knowledge yourself or if you have a developer, but perhaps you could look in the code OlympiadManager.java (com.l2j.gameserver.model.olypiad). I haven't searched myself, but I'm sure there is some sort of flag that says the player is registered at olypiad. My guess would be that you can check this flag when the player attempts to use the buffer.
  11. Take a look at the l2j distrubutions that have this implemented. I'm sure it's going to take quite a bit of work, doing a search across the source code grabs quite a few hits. Also for the client side, I'm not sure if you can implement the display of it such as the other chronicles. It's possible as the guy above said to use it under other properties such as either CP or MP. I'd say have a look in PcStat.java (I'm looking at the Freya l2j distro which I think is the latest)
  12. It's not very well explained what it all means, but I guess it's a start.
  13. Configuring the files and such is exactly the same as windows. The only difference is that you're using a .sh instead of a .bat
  14. I don't think it's very hard to understand.
  15. Nice to meet you.
  16. bump. Is there anybody that has any clue?
  17. I've tried to create a new column in my SQL called townID. I suppose it'll work somewhat like a faction. Except the ID is only going to used when a player hits respawn or uses a SOE. The only place I've worked inside was L2PcInstance.java, and I've added the value "townID" to the SQL strings: private static final String INSERT_CHARACTER private static final String UPDATE_CHARACTER private static final String RESTORE_CHARACTER These have all been changed to access the ID integer, which will be 0 - 2, 0 being no town assigned, 1 being elven village, and 2 being dark elven village. Everything gets entered into the table just fine, except my character starts in some odd location, where X Y and Z are all set to NULL, and curHp, curMp, etc, are set to 0. I'm using l2jserver and the latest svn version for gracia. I can post more of my code if you'd like, but I've found myself stuck on this point. Thanks for any help!
  18. Bump. Can anybody help?
  19. Hello, I'm creating a small server for me and my friends to tinker on, I'm not really interesting in anything serious. Anyway, I have a small problem with getting a few things to work. I'm going to have my players jump instantly up to 85 on a Gracia based L2j. I figured the 3 ways I could go about doing that was by editing the core, making a npc, or just throwing random mobs down. My problem is that I'm trying to stay away from core modifications, until later maybe. I thought about making an npc. I'm not sure how to approach it though, I'm not familiar with Jython. Would it be done the same was as lets say, a NPC buffer? And for some reason, my mobs aren't giving me any experience points. I've checked all the configuration files, and nothing is set to 0, so I'm not really sure what might be causing my mobs not to do this. I would prefer the NPC method over mobs so there would be less clutter in my server, seeing as it has to run on a computer in my house. Any help at all would be appreciated, thank you!
×
×
  • Create New...