Jump to content

dpbBryan

Members
  • Posts

    370
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by dpbBryan

  1. Yup. just look at the other rows in one of those .dat files, you can see what images they use there.
  2. You need to provide more detail: The datapack you're using, chronicle, etc etc, loginserver output
  3. http://maxcheaters.com/forum/index.php?action=search http://maxcheaters.com/forum/index.php?action=search http://maxcheaters.com/forum/index.php?action=search http://maxcheaters.com/forum/index.php?action=search http://maxcheaters.com/forum/index.php?action=search
  4. I'm not so fimilar with the code yet but perhaps there is some sort of skill instance or player instance avaliable inside the class? I would look ingame the ID's up of the chests you can use to get items. Search that ID in the java code and trace it to a packet or something, and start looking around there.
  5. Hi MrRees, I'm not entirely sure what you want to do, the wording is a bit unclear. Normally, you'd see a trainer for your character's class where you'd choose which skill you want. A spellbook and SP is consumed. Do you want to make it so when you use the book in your inventory you learn the skill?
  6. Um, how about no? Nobody is here to do the bitch work for you. This board is called Development Help. It's not called help-me-find-shit-because-I'm-too-retarded-to-use-the-search-function. People here are willing to help other people, this shit doesn't come as easy to everybody. But if you're so lazy that you can't even attempt to do the basics yourself, then don't bother even wasting our and your time with this as it's going to be way past your ability anyway.
  7. Next time search: http://maxcheaters.com/forum/index.php?action=search
  8. If you create skills, npcs, items, and so forth on the server than the client must also reflect the ID of whatever you've added to the server. It's pretty safe to assume as well that anything related to the graphics you see on your computer such as the models is handled client side. Make sure you also add an entry to skillname-e.dat or skillgrp.dat (I'm not sure which one but the client needs to know which icon to associate with the skill you just created).
  9. I don't mean to be rude but I'm not actually sure you know what you're talking about. The code you posted isn't even syntactically correct and: http://www.cafeaulait.org/course/week2/45.html || is a logical OR operator, meaning, in the code you posted, if any of those conditions are true then whatever is inside the conditional block is triggered. In this case of this check, the isAio() will always return true and the statement will always evaluate to true.
  10. I'm not really sure what this is supposed to say. if ( isAio || isInsideZone(ADD_ZONE) || .. ) activeChar.sendMessage("..."); return false; It seems like if the character is an Aio OR if he is inside a zone he can buff, and if he is the Aio he'll be able to buff disregardless of the zone.
  11. That seems to be a problem with your client, did you make any changes to the code in your gameserver?
  12. Well I wanted to have my own interface seperate from the existing code, I'll take a look into that. Thanks!
  13. You aren't reaching the login server which means you've configured something wrong. It can either be the configuration of the server itself or you haven't properly put the IP in the hosts file.
  14. Ah sorry everybody, I figured it out. The NPC Buffers I was using as an example were using the clan hall buffs and such. The line st.getPlayer().useMagic(...) I've switched too: SkillTable.getInstance().getInfo(...).getEffects(st.getPlayer(),st.getPlayer()) Though the question still stands on the performance, though it's not an issue right now I'd like to know for the future.
  15. That's what your consoles say? I meant the log from your login or gameserver output:
  16. Hi Curre, Can you post the output from your login and gameserver? Do you know if you're even making a connection to the login at all?
  17. Hi kingz23players, The answer you're looking for is in the file ...\gameserver\config\altsettings.properties # AutoLearnSkills... True to enable, False to disable AutoLearnSkills = True
  18. Hello everybody, I'm having a little bit of trouble. I've been trying to use examples from other NPC buffers which seem to cast 'instantly' sort of. What I had in mind was to allow the player to create different sets of buffs that they can also pick from later. I've defined two classes inside L2PcInstance: ZCL_BUFF_ROW and ZCL_BUFF_TABLE. Each instance of L2PcInstance has an object ZCL_BUFF_TABLE. The object_id of the character is passed to the constructor of this class and then the results are placed into hashtables: private Hashtable<Integer,Integer> _buff_ids; So the character has 24 values for 24 buffs. In the above class, ZCL_BUFF_TABLE, there is another hashtable I've made to store the rows off buffs so a character can have multiple presets. private Hashtable<Integer, zcl_buff_row> _buff_table; The problem comes in later at the NPC buffer itself. I normally see that the useMagic() function is called at the Python script, but I wasn't sure if I'd be able to iterate across a java hashtable inside python. So I implemented two functions: // Method of ZCL_BUFF_TABLE public void STApplyBuffRow(QuestState st, int index) { st.getPlayer().setTarget( st.getPlayer() ); _buff_table.get(index).STapplyBuffs(st); } // Method of ZCL_BUFF_ROW public void STapplyBuffs(QuestState st) { L2Skill skill = null; for ( int b_id : _buff_ids.values() ) { skill = SkillTable.getInstance().getInfo( b_id, 1 ); st.getPlayer().useMagic(skill, false, false); } } I'm passing the QuestState to the functions so I can apply the buffs to player in the Java code and just place the function st.getPlayer().getBuffTable().STApplyBuffRow(st,1) In the python code. However, what ends up happening is the player casts the buffs and it takes a long time which really isn't what I'm looking for. When I was looking at other examples, it's almost instant. AND one last question. I'm also new to java. I've taken peaks at the L2j server before but now I'm a bit more serious about it. I'm wondering though how in the long run will making additions to the player class affect the performance? For example, is a Hashtable in java an effecient way to store this list or is there perhaps a faster way?
  19. Just so I understand, You're changing the main class of your character and you want to keep the same race? Check here: http://maxcheaters.com/forum/index.php?topic=222230.msg1942924#msg1942924 I'm not sure if he every solved it, but you can take a look.
  20. It might be a better idea to get a understand of linux operating systems first. Though, I can't imagine it being too much different than Ubuntu since Ubuntu is based off Debian I think.
  21. I'd be more worried about the Errors(100 out of 267)
  22. Change the values around and see for yourself :P
  23. I was poking around in net.sf.l2j.gameserver.model.ItemContainer.java searching for item ID 57. Can I ask where you made the change for this? Perhaps the numbers you see are being determined by the client.
  24. I'm sure it's possible, it'd simply be reversing the logic for -not- casting inside the peace zone. I don't have the code infront of me right now, but maybe it'd be a good idea to check the L2PcInstance.java file at the doAttack or doCast or something along those lines.
  25. can you copy and paste the entire output of your loginserver and gameserver?
×
×
  • Create New...