Skip to content

Xp Giver

Featured Replies

Hello I use l2jfrozen pack and im trying to make an item that gives the play a level or more

I have made the code but the AddLevel has error

 

Code: http://pastebin.com/qMCfJqZZ

Solved by SweeTs

Hello I use l2jfrozen pack and im trying to make an item that gives the play a level or more

I have made the code but the AddLevel has error

 

Code: http://pastebin.com/qMCfJqZZ

you want add 1 by 1 level per item use or you want when player use that item auto goes to 80 lvl for example?

  • Author

I want the item when someone clicks it it will give him 1 or more levels

Because the method addLevel doesn't exist? Use proper method and you will be fine :D

Edited by SweeTs

L2PcInstance doesn't have addLevel method.. look at head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminLevel.java for example

  • Solution

 

String val = "1";
activeChar.getStat().addLevel(Byte.parseByte(val));
Guest
This topic is now closed to further replies.

Account

Navigation

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.