Jump to content

Question

6 answers to this question

Recommended Posts

  • 0
Posted

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
Posted

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
Posted (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 by SweeTs
  • 0
Posted (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 by kenzoR
  • 0
Posted (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 by kenzoR
Guest
This topic is now closed to further replies.


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