Jump to content
  • 0

Question

Posted

i have the test server helper and there has an option to become noblesse for free. i would like to change it in order not to be free. (for example in order to be noble you will need 100 gb) this is the html from test server helper for nobl in data/html/classmaster.

 

<html><body>

Test Server Helper:<br>

Congratulations on becoming a Noblesse!<br>

Now you can have all the benefits of being a Noblesse, including a sub-job!<br>

</body></html>

6 answers to this question

Recommended Posts

  • 0
Posted

+/*

+ * This program is free software; you can redistribute it and/or modify

+ * it under the terms of the GNU General Public License as published by

+ * the Free Software Foundation; either version 2, or (at your option)

+ * any later version.

+ *

+ * This program is distributed in the hope that it will be useful,

+ * but WITHOUT ANY WARRANTY; without even the implied warranty of

+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

+ * GNU General Public License for more details.

+ *

+ * You should have received a copy of the GNU General Public License

+ * along with this program; if not, write to the Free Software

+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA

+ * 02111-1307, USA.

+ *

+ * <http://www.gnu.org/copyleft/gpl.html>

+ */

+package com.l2jserver.gameserver.model.actor.instance;

+

+import javolution.text.TextBuilder;

+

+import com.l2jserver.gameserver.model.actor.L2Npc;

+import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

+import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;

+

+/**

+ * @author  DominiQue

+ */

+public class L2ColorInstance extends L2Npc

+{

+ private String filename;

+ public L2ColorInstance(int objectId, L2NpcTemplate template)

+ {

+ super(objectId, template);

+ }

+

+ @Override

+ public void onBypassFeedback(L2PcInstance player, String command) {

+

+ if(player == null || player.getLastFolkNPC() == null

+ || player.getLastFolkNPC().getObjectId() != this.getObjectId()) {

+ return;

+ }

+

+ if(command.startsWith("play1"))

+ bluename(player);

+ }

+

+ public static void bluename(L2PcInstance player)

+ {

+ if (player.getInventory().getInventoryItemCount(4355, 0) >= 1)

+ {

+ player.getInventory().destroyItemByItemId("Blue Eva", 4355, 1, player, null);

+ player.setHero(true);

+ }

+ else

+ {

+ player.sendMessage("You have not yet met the qualifications");

+ }

+ }

+ @Override

+ public void showChatWindow(L2PcInstance player, int val)

+ {

+ filename = (getHtmlPath(getNpcId(), val));

+ NpcHtmlMessage msg = new NpcHtmlMessage(this.getObjectId());

+ msg.setHtml(colorWindow(player));

+ msg.replace("%objectId%", String.valueOf(this.getObjectId()));

+ player.sendPacket(msg);

+ }

+ private String colorWindow(L2PcInstance player)

+ {

+ TextBuilder tb = new TextBuilder();

+

+ tb.append("<html><title>Deviance Color Manager</title><body>");

+     tb.append("<center>");

+     tb.append("<br>");

+     tb.append("<img src=\"L2UI.SquareGray\" width=\"200\" height=\"1\"><br>");

+     tb.append("Welcome "+player.getName()+"<br>");

+     tb.append("<tr><td>Madafaka I can noble you ! nigga</td></tr><br>");

+     tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>");

+     tb.append("<center>");   

+     tb.append("<button value= Noble Me action=\"bypass -h npc_%objectId%_play1\" width=130 height=25 back= L2UI_ct1.button_df fore = L2UI_ct1.button_df>");

+     tb.append("</center>");

+     tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>");   

+     tb.append("<br>");

+     tb.append("<center><img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\">");

+     tb.append("</body></html>");

+ return tb.toString();

+ }

+

+}

  • 0
Posted

Whats the point to create new instance just for single shit?

 

Quest based NPC is better option ...

  • 0
Posted
tb.append("<tr><td>Madafaka I can noble you ! nigga</td></tr><br>

I loled.

 

I have no idea what is the "test server helper" instance, but you can add a bypass on it too, or modify the bypass if this is the npc which give you the noblesse.

 

The bypass is the command written in htm. for example if the test server had a "noblesse me" command, you just have to edit it to add a condition "if else".

 

That avoid both to create new instance and create new quest ;).

 

----

 

Here is the classmaster

 

<html><body>
<center>Human Fighter Class Master:</center><br>
<a action="bypass -h npc_%objectId%_change_class 1">Advance to Warrior</a><br>
<a action="bypass -h npc_%objectId%_change_class 4">Advance to Knight</a><br>
<a action="bypass -h npc_%objectId%_change_class 7">Advance to Rogue</a>
</body></html>

 

As you can see, he uses the same bypass (change_class) 3 times, only option (1,4,7) is modified. The bypass got an option because of the bypass code, not all bypasses got option.

 

Basically if you wanted to add gb on the change class characters, you will have to edit "change_class". With an eclipse search in sources, you won't have any difficulty to locate it.

 

I hope my example is fine o_o.

  • 0
Posted

I loled.

 

I have no idea what is the "test server helper" instance, but you can add a bypass on it too, or modify the bypass if this is the npc which give you the noblesse.

 

The bypass is the command written in htm. for example if the test server had a "noblesse me" command, you just have to edit it to add a condition "if else".

 

That avoid both to create new instance and create new quest ;).

 

----

 

Here is the classmaster

 

<html><body>
<center>Human Fighter Class Master:</center><br>
<a action="bypass -h npc_%objectId%_change_class 1">Advance to Warrior</a><br>
<a action="bypass -h npc_%objectId%_change_class 4">Advance to Knight</a><br>
<a action="bypass -h npc_%objectId%_change_class 7">Advance to Rogue</a>
</body></html>

 

As you can see, he uses the same bypass (change_class) 3 times, only option (1,4,7) is modified. The bypass got an option because of the bypass code, not all bypasses got option.

 

Basically if you wanted to add gb on the change class characters, you will have to edit "change_class". With an eclipse search in sources, you won't have any difficulty to locate it.

 

I hope my example is fine o_o.

 

he can also add them from python script since he wants a tester server helper only for nobless and not for classes

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • You think you have good “l2j” files until you try running a low-rate server.   Saying “there’s not a single L2 server out there worth mentioning” just shows you probably only know the first 10 servers on voting sites, the same voting sites that owned by them. You call the forum dead, yet you’re here discussing your next projects… From my perspective, you don’t seem ready to run any L2 server in 2025. Around 70% of players are here for RMT or ask for payment just to bring their clan, and you really think the community cares about Premium or donations or files quality? The other 20% spend their time downloading and deleting servers all day, playing for one day, then quitting for whatever random reason. And finally, the last 10% are the only ones who actually play because they genuinely like your features, your server files, and your overall project. Good luck 🙂
    • I genuinely admire your bravery - in an age where AI can whip up something better in under a minute, you still stubbornly try to sell these "projects" of yours on a forum that’s been clinically dead for years. That’s no longer determination, that’s digital archaeology. I just can’t tell whether you’re actually trying to make money, or simply testing how much we can endure before we ask an AI to generate you some actual talent.   And ofc AI will make it for free, $220 saved.
    • I’m glad I’m not the only one who appreciates Maxthor’s involvement in group gay orgies, he can’t be bothered to reply to messages, but covering the entire forum in gay lights is absolutely no issue for him. As for the project - the forum is packed with feedback from the testers, the lads are spending every spare moment fixing even the tiniest typo in an NPC’s text. I’ll share the links as soon as I get the green light. Edit: I forgot to add that the GM recruitment will begin once the links are released. Three people will be accepted, and they’ll work in a three-shift rotation so that there’s always a GM available online.
    • Added: a brand-new default dashboard template. You can now add multiple game/login server builds. Full support for running both PTS & L2J servers simultaneously, with switching between them. Payment systems: added OmegaPay and Pally (new PayPal-style API). Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account. Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.     Look demo site: demo
    • One of best project i play last few years
  • Topics

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