Jump to content
  • 0

[help]java code flagged players can't use heal


Question

Posted

+AltFlagedPlayerCanUseHeal = True

+

Index: java/net/sf/l2j/Config.java

===================================================================

--- java/net/sf/l2j/Config.java (revision 2444)

+++ java/net/sf/l2j/Config.java (working copy)

@@ -154,6 +154,8 @@

    public static boolean ALT_GAME_KARMA_PLAYER_CAN_SHOP;

    public static boolean ALT_GAME_KARMA_PLAYER_CAN_TELEPORT;

    public static boolean ALT_GAME_KARMA_PLAYER_CAN_USE_GK;

+    public static boolean ALT_GAME_FLAGED_PLAYER_CAN_USE_Heal;

    public static boolean ALT_GAME_KARMA_PLAYER_CAN_TRADE;

    public static boolean ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE;

    public static boolean IS_CRAFTING_ENABLED;

@@ -1186,6 +1188,8 @@

                ALT_GAME_KARMA_PLAYER_CAN_BE_KILLED_IN_PEACEZONE = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanBeKilledInPeaceZone", "false"));

                ALT_GAME_KARMA_PLAYER_CAN_SHOP = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanShop", "true"));

                ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanTeleport", "true"));

+                ALT_GAME_FLAGED_PLAYER_CAN_USE_Heal = Boolean.parseBoolean(Character.getProperty("AltFlagedPlayerCanUseHeal", "false"));

                ALT_GAME_KARMA_PLAYER_CAN_USE_Heal = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanUseHeal", "false"));

                ALT_GAME_KARMA_PLAYER_CAN_TRADE = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanTrade", "true"));

                ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(Character.getProperty("AltKarmaPlayerCanUseWareHouse", "true"));

@@ -2092,6 +2096,8 @@

        else if (pName.equalsIgnoreCase("AltKarmaPlayerCanShop")) ALT_GAME_KARMA_PLAYER_CAN_SHOP = Boolean.parseBoolean(pValue);

        else if (pName.equalsIgnoreCase("AltKarmaPlayerCanUseHeal")) ALT_GAME_KARMA_PLAYER_CAN_USE_Heal = Boolean.parseBoolean(pValue);

        else if (pName.equalsIgnoreCase("AltKarmaPlayerCanTeleport")) ALT_GAME_KARMA_PLAYER_CAN_TELEPORT = Boolean.parseBoolean(pValue);

+        else if (pName.equalsIgnoreCase("AltFlagedPlayerCanUseHeal")) ALT_GAME_FLAGED_PLAYER_CAN_USE_Heal = Boolean.parseBoolean(pValue);

        else if (pName.equalsIgnoreCase("AltKarmaPlayerCanTrade")) ALT_GAME_KARMA_PLAYER_CAN_TRADE = Boolean.parseBoolean(pValue);

        else if (pName.equalsIgnoreCase("AltKarmaPlayerCanUseWareHouse")) ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE = Boolean.parseBoolean(pValue);

        else if (pName.equalsIgnoreCase("AltRequireCastleForDawn")) ALT_GAME_REQUIRE_CASTLE_DAWN = Boolean.parseBoolean(pValue);

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java

===================================================================

--- java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java (revision 2444)

+++ java/net/sf/l2j/gameserver/model/actor/instance/L2TeleporterInstance.java (working copy)

@@ -227,6 +227,11 @@

player.sendPacket(new SystemMessage(SystemMessageId.NO_PORT_THAT_IS_IN_SIGE));

return;

}

+ else if (!Config.ALT_GAME_FLAGED_PLAYER_CAN_USE_Heal && player.getPvpFlag() > 0)

+ {

+ player.sendMessage("Healing in PvP ??? ts ts ts !! Bad Boy!!");

+ return;

+ }

else if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_GK && player.getKarma() > 0) //karma

{

player.sendMessage("Go away, you're not welcome here.");

 

guys to code to ekana twra... einai ok?

4 answers to this question

Recommended Posts

  • 0
Posted

ομγ

τι σχέση έχει αυτό που θές να κάνεις με αυτο εδώ L2TeleporterInstance μπορείς να μου πείς?Για να το κάνεις αυτό θα πάς στο αρχεί skills.heal.java , σκέψου λίγο >.>

Guest
This topic is now closed to further replies.


  • Posts

    • Hello, I'm looking for classic client for l2 gold or l2 gold weapons for classic 166 version
    • Good afternoon   ⚡CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER⚡ ⚡PREMIUM QUALITY ACCOUNTS, INSTANT DELIVERY, FREE CONSULTATIONS, RELIABLE WORK⚡   ✔ Ready accounts ✔   BUSINESS ACCOUNTS ☟ Blackcatcard Business LV, Volet com (AdvCash) Business EU, Xapo Bank Business EU, Finom Business, PayPal Business, Payset Business, Stripe Business, Payoneer Business EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Mistertango Business LV   BANKS, NATIONAL BANKS ☟ Ceska Sporitelna, KASIKORNBANK, BBVA, CommerzBank, Santander, Kaspi Bank, AlfaBank, Raiffeisen, mBank, Paribas, Bereke Bank, Freedom Bank   PAYMENT SYSTEMS ☟ Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, 4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava   CRYPTOEXCHANGE ☟ Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken   Contact via telegram - in the first post of the topic!
    • Sell "Amoral" Classic Armor and Weapon.   Custom "Amoral" Draconic Set YouTube Custom "Amoral" Imperial Set YouTube Custom "Amoral" Dark Crystal Robe YouTube Custom "Amoral" Classic S-Grade Weapon YouTube My Contacts Telegram  
    • Greetings to all! I offer a scope for client modification. What services do I provide: 1) Transfer of any Weapon, Armor, Accessories, from any chronicles to yours. 2) Creating exclusive add-ons. 3) Repainting of Armor, Weapons аnd Accessories. 4) Packing the icons you need and other things. 5) Creating NPCs with and without effects. 6) Create Monsters and Raid bosses, with effects and sounds. 7) HTLM NPC design. Creating Buttons and other things for your project. And much more If you have any questions, write in  Telegram. You can find some of the works here  YouTube
  • Topics

×
×
  • Create New...