Jump to content
  • 0

Just Wondering...


Extreamer

Question

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;
+ENABLE_LEVEL_REWARD = Boolean.parseBoolean(L2JHellasSettings.getProperty("AllowLevelRewardSystem", "False"));
+LEVEL_REWARD_ITEM = Integer.parseInt(L2JHellasSettings.getProperty("LevelewardItemID", "57"));
+LEVEL_REWARD_COUNT = Integer.parseInt(L2JHellasSettings.getProperty("LevelRewardAmount", "1"));
+LEVEL_TO_REWARD = Integer.parseInt(L2JHellasSettings.getProperty("PlayerLevel", "20"));


+if (USE_SAY_FILTER)

then in L2PCinstance.java

+              
+              // 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?

Edited by ExtreameR
Link to comment
Share on other sites

Recommended Posts

Guest
This topic is now closed to further replies.


  • Posts

    • I don't care what these random rats are typing to me. I will ruin their business for scamming other people's work. I'm very good at it, no matter what protection or obfuscation they add to their files. I will break them and share everything for free with the community that's what they deserve.
    • Look are you crazy or dumb? yes, im aware of this post, but i have NOTHING to do with it! unfortunately, when people sent me this post i even thought it was strange, and when i downloaded the server and the files really are without any protection, what do you want me to do about it? the reality is that im not even up to date on anything about Lineage anymore... im doing my things peacefully, bothering nobody.. He is talking about me, this guy is saying im the one who leaked or anyhting
    • Ps: I do know the guy, talked with him before, a few friends have bought stuff from him in the past and never had any issue. But hey, It happend so I'm posting it here. If he somehow answers back and sends the interface I will delete this post. A few days ago he made contact with me saying he had interface 474 code to sell. And since I also develop interfaces, I was interested in buying.   He told me the price, said he only accepted advcash/volet. I asked if he had any other crypto wallet or paypal email. He said no. After a while, he came back with a paypal email, in which we sent the money. But since its a new account, paypal blocked it for safekeeping. After this, he returned the money and we went to check on how to make a advcash/volet account. After a bit, we successfully created a "volet" account and transferred the money to him in 2 parts. 5 EUR first to check if he received the correct amount and later the 595 remaining to complete the 600 EUR for the asked price of the interface code and editors for it. His last message was on the 25th of September saying he wasn't home. Haven't heard from him since. I asked a friend of mine if he was legit and if he worked far from home and he did confirm this for me. But still. I would at least expect him to keep in touch with me to update his whereabouts and saying if he would need more time to arrive home. Here are the screens with the full discord conversation:    
  • Topics

×
×
  • Create New...