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

    • 📌 FORUM RULES (Revised – Legal Compliant) Η χρήση του forum προϋποθέτει την πλήρη αποδοχή των παρακάτω κανόνων. Οποιαδήποτε παραβίαση ενδέχεται να οδηγήσει σε περιορισμούς ή μόνιμο αποκλεισμό. 1. Spam & Κατάχρηση Δημοσιεύσεων Το spam απαγορεύεται. Μονολεκτικές, άσχετες ή πολλαπλές διαδοχικές δημοσιεύσεις δεν επιτρέπονται. Bumping επιτρέπεται μόνο στο Marketplace, μία φορά κάθε 24 ώρες. Απάντηση σε θέματα παλαιότερα των 6 μηνών δεν επιτρέπεται. Σχόλια τύπου «wrong section», «request lock» κ.λπ. απαγορεύονται — χρησιμοποιήστε το Report Section. 2. Συμπεριφορά & Τάξη Απαγορεύονται: βρισιές, trolling, drama, απειλές, ρατσισμός, flame posts. Οι κανόνες συμπεριφοράς ισχύουν και σε PMs, profile comments και λοιπές περιοχές. Πολιτικά θέματα επιτρέπονται μόνο εντός λογικών και πολιτισμένων ορίων. 3. Απαγορευμένο & Ακατάλληλο Περιεχόμενο Απαγορεύεται αυστηρά η δημοσίευση ή αναζήτηση περιεχομένου που είναι: Παράνομο βάσει ισχύουσας νομοθεσίας Πειρατικό (warez, cracks, serials, pirated software) Σεξουαλικό, πορνογραφικό ή βίαιο Προσβλητικό, ρατσιστικό ή εξτρεμιστικό Θρησκευτικά προκλητικό με σκοπό την ένταση ➡️ Όλα τα παραπάνω διαγράφονται άμεσα, χωρίς προειδοποίηση. 4. Διαφημίσεις & Προώθηση Απαγορεύεται κάθε μορφή διαφήμισης χωρίς έγκριση Administrator. Απαγορεύεται η προώθηση παράνομων ή μη αδειοδοτημένων υπηρεσιών. Affiliate links, referral systems και external promotions απαιτούν έγκριση. 5. Γλώσσα & Παρουσίαση Μην αναμειγνύετε γλώσσες (αγγλικά σε ελληνικά topics και αντίστροφα). Χρησιμοποιείτε tags [GR] ή [EN]. Τα Greeklish επιτρέπονται προσωρινά, ωστόσο προτιμάται η χρήση ελληνικών χαρακτήρων. 6. Credits & Πνευματικά Δικαιώματα Υποχρεωτική αναφορά πηγών και credits. Απαγορεύεται η αναδημοσίευση περιεχομένου χωρίς άδεια. Κάθε χρήστης είναι υπεύθυνος για τα δικαιώματα του περιεχομένου που δημοσιεύει. 7. Κυβερνοεγκλήματα & Επιβλαβείς Πρακτικές Απαγορεύεται αυστηρά: Hacking, DDoS, flooding, botnets, booters Οδηγίες, εργαλεία ή καθοδήγηση για παράνομες ψηφιακές επιθέσεις Αναζήτηση ή πώληση τέτοιων υπηρεσιών 8. Υπογραφές (Signatures) Μέγιστο μέγεθος: 800x300 pixels. Υπογραφές που παραβιάζουν τους κανόνες αφαιρούνται. 9. Λογαριασμοί & Ασφάλεια Ένας λογαριασμός ανά χρήστη. Κλεμμένοι, κοινόχρηστοι ή πολλαπλοί λογαριασμοί απαγορεύονται. Το forum διατηρεί το δικαίωμα άμεσης διαγραφής λογαριασμών. 10. Σεβασμός προς το Staff Υποτίμηση, απειλές ή προσβολές προς staff δεν γίνονται ανεκτές. Για διαφωνίες ή παραβάσεις χρησιμοποιήστε το Report Section. LEGAL POLICY (Updated – Strict Compliance) 1. Νομιμότητα Περιεχομένου Απαγορεύεται κάθε περιεχόμενο που: Παραβιάζει νόμους ή κανονισμούς Παραβιάζει copyright ή intellectual property Προωθεί παράνομες οικονομικές, τραπεζικές ή επενδυτικές υπηρεσίες Σχετίζεται με απάτη, phishing, money laundering 2. DMCA – Copyright Protection Το forum συμμορφώνεται πλήρως με τον DMCA. Έγκυρες αναφορές οδηγούν σε άμεση αφαίρεση περιεχομένου. Επαναλαμβανόμενες παραβιάσεις = μόνιμος αποκλεισμός. 3. AML / Financial Compliance Απαγορεύεται περιεχόμενο σχετικό με ξέπλυμα χρήματος. Απαγορεύεται η προώθηση μη αδειοδοτημένων χρηματοοικονομικών υπηρεσιών. Δεν παρέχεται καμία οικονομική ή επενδυτική συμβουλή. 4. User-Generated Content & Ευθύνη Όλο το περιεχόμενο δημιουργείται από τους χρήστες. Το forum δεν φέρει νομική ευθύνη, αλλά: Παρακολουθεί Διαγράφει Συμμορφώνεται με τον νόμο 5. AI Moderation Χρησιμοποιούνται AI-based εργαλεία για εντοπισμό παραβάσεων. Η τελική απόφαση λαμβάνεται πάντα από άνθρωπο. 6. Τελικές Διατάξεις Οι κανόνες μπορούν να τροποποιηθούν χωρίς προειδοποίηση. Η χρήση του forum συνεπάγεται αποδοχή όλων των πολιτικών. Η άγνοια των κανόνων δεν αποτελεί δικαιολογία. ✅ Σημείωση Οποιοδήποτε παράνομο περιεχόμενο δεν επιτρέπεται πουθενά στο forum, ανεξαρτήτως ρόλου, πρόσβασης ή status (VIP / Donator / Staff).
    • Hello everyone, This topic has been created to report any content that is considered illegal under applicable law or in violation of the forum rules. This includes, but is not limited to: Illegal software (pirated, cracked, or unauthorized software) Copyright-infringing material Malware, viruses, or any harmful code Scams, fraud, phishing attempts, or impersonation Illegal banking or financial services Money laundering activities or related instructions Any other illegal, unethical, or rule-violating activity — you name it If you encounter any such content, please report it here so it can be reviewed and removed promptly. Legal Disclaimer All content published on this forum is created and posted by its users. The forum administration does not take responsibility for user-generated content. However, we make every reasonable effort to monitor, review, remove, and maintain the forum by deleting illegal or rule-violating content as soon as it is reported or identified. By using this forum, you acknowledge and agree to these terms.     Moderator Notice We would like to inform all users that we are currently developing a custom AI-powered API tool that will assist our moderation team in scanning the forum database for illegal or rule-violating activity. This system will be used strictly as a support tool to help identify potentially problematic content, which will then be reviewed by human moderators before any action is taken. The goal is to improve forum safety, compliance, and response time while maintaining fairness and transparency. 🚧 Coming soon — more details will be shared once the system is ready. Thank you for your cooperation and for helping us keep the forum clean and lawful.
    • Reporting Illegal or Rule-Violating Content (post here)
    • If anyone is reading this, until we find the 488 protocol system that works with AuthD + Authgated from High Five (HF), just use L2Filter included in the leak as the login server to be able to play. hAuthd does not works with this chronicle, @Hint. do you happen to know about this?   Be aware of the system you use! If UseEMailAccount is set as true in l2.ini, your user_info table linked to your account must have email column not NULL with a valid e-mail, and you will use that e-mail to login instead of the account name. (Post merged)   OKAY! Nevermind about the above, I just figured it out, AuthD and Authgated from HF requires GameGuard to be enabled and UseEMailAccount set to false. Enable GameGuard at server side as per Fyyre instructions,  Add the missing GameGuard files in your client system: https://mega.nz/file/xZMWQBjK#triEj7My9B9roiLqAKk32HOLcLmPynoOm-QhBI_Ligw
  • 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