kenzoR Posted April 8, 2015 Posted April 8, 2015 Hello, how can i edit starting bars? I mean.. from this : to I have to mention this method doesn't work on L2jFrozen rev 1118.
0 SweeTs Posted April 8, 2015 Posted April 8, 2015 Ya, right.. // Shortcuts newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // Attack newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // Take newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // Sit
0 kenzoR Posted April 8, 2015 Author Posted April 8, 2015 Thanks for fast reply! I did that too, sorry .. forgot to mention :D Still doesn't work. I did it like... newChar.registerShortCut(new L2ShortCut(8, 0, 1, 7132, -1, 1)); // Sit
0 SweeTs Posted April 8, 2015 Posted April 8, 2015 (edited) What can I say, probably the parameters are wrong, so it's your fault ;) "Focus" on the method and read what each number means / is responsible for. L2ShortCut(int slotId, int pageId, int shortcutType, int shortcutId, int shortcutLevel, int characterType) Edited April 8, 2015 by SweeTs
0 kenzoR Posted April 8, 2015 Author Posted April 8, 2015 (edited) Here is my code, i dont see any problems...compile was successfull . But those items, simply doesnt want to appear on the bar .. -.-' cant see why ! I added 'custom items' from config, i mean each and every new char has those items in inventory ..but not on bar ;( if (item.getItemId() == 1467) newChar.registerShortCut(new L2ShortCut(11, 1, 1, item.getObjectId(), -1, 1)); // Soulshot shortcut if (item.getItemId() == 3952) newChar.registerShortCut(new L2ShortCut(10, 1, 1, item.getObjectId(), -1, 1)); // Blessed spiritshot shortcut if (item.getItemId() == 728) newChar.registerShortCut(new L2ShortCut(9, 1, 1, item.getObjectId(), -1, 1)); // mana pot shortcut if (item.getItemId() == 1539) newChar.registerShortCut(new L2ShortCut(8, 1, 1, item.getObjectId(), -1, 1)); // healing pot shortcut if (item.getItemId() == 5591) newChar.registerShortCut(new L2ShortCut(7, 1, 1, item.getObjectId(), -1, 1)); // healing pot shortcut Edited April 8, 2015 by kenzoR
0 kenzoR Posted April 8, 2015 Author Posted April 8, 2015 (edited) Some help please? ... Close topic, solved! Thanks Solution was to add in MySQL another cell in char_templates, then the java side .. and voila` .. simple as fu&k .. ^^ ! Edited April 9, 2015 by kenzoR
Question
kenzoR
6 answers to this question
Recommended Posts