So I adapted a code from l2jbrasil into my pack, however since it was old as shit I decided to remake it.
So i did
in config.java
+ public static boolean ENABLE_LEVEL_REWARD;
+ public static int LEVEL_REWARD_ITEM;
+ public static int LEVEL_REWARD_COUNT;
+ public static int LEVEL_TO_REWARD;
+
+ // Level Reward System
+ if (Config.ENABLE_LEVEL_REWARD && getLevel() == Config.LEVEL_TO_REWARD)
+ {
+ // Item Level Reward System
+ addItem("Level Reward", Config.LEVEL_REWARD_ITEM, Config.LEVEL_REWARD_COUNT, this, true);
+ sendMessage("Make sure you reach your level first. " +Config.LEVEL_TO_REWARD+ " .");
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile(new StringBuilder("data/html/mods/LevelReward/level.htm").toString());
+ html.replace("%objectId%", String.valueOf(getObjectId()));
+ sendPacket(html);
+ }
Its just a simple code in order to reward players once they reach level 80.
I have added everything into l2jhellas.ini, and I have made the html file in the correct order
when I start the server I get informed that the level rewarder is enabled in the console. But when my player reachers level 80 he gets no reward. What am I missing here?
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
Question
Extreamer
So I adapted a code from l2jbrasil into my pack, however since it was old as shit I decided to remake it.
So i did
in config.java
then in L2PCinstance.java
Its just a simple code in order to reward players once they reach level 80.
I have added everything into l2jhellas.ini, and I have made the html file in the correct order
when I start the server I get informed that the level rewarder is enabled in the console. But when my player reachers level 80 he gets no reward. What am I missing here?
Edited by ExtreameR16 answers to this question
Recommended Posts