Skip to content

Starting Bars

Featured Replies

 

Hello, how can i edit starting bars? I mean.. from this :

ZwVNnW6.png

to

nnSwlk7.png

 

 


 

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
  • Author

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

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 by SweeTs

  • Author

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 by kenzoR

  • Author

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 by kenzoR

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.