Jump to content

[Share] Java Anti-Phx Enchant


Setekh

Recommended Posts

And if we post that lets add the other one :P anti phx enchant:

 

in net/sf/l2j/gameserver/clientpackets you will findSend WareHouseDepositList.java

open it then add after imports finsih this lines:

import net.sf.l2j.gameserver.util.IllegalPlayerAction;
import net.sf.l2j.gameserver.util.Util; 

 

after that:

}
      
       if (player.getActiveEnchantItem() != null)
       {
          player.setAccountAccesslevel(-100);// ban first to remove any potential exploit like restarting
           player.sendMessage("You got owned by useing phx!");
           try
           {
         Thread.sleep(5000); // Sleeps 5 seconds
           }
           catch (InterruptedException e)
           {}
           player.closeNetConnection(); // BB forever :))
          return;
       } 

ul insert that at line after this lines:

 

       if ((warehouse instanceof ClanWarehouse) && Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
       {
           player.sendMessage("Transactions are disable for your Access Level");
           return;
       }

 

or find

       // Alt game - Karma punishment
       if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE && player.getKarma() > 0) return;

and put the anti-phx enchant code above it

 

it cold be simple to ad a diff file..but i dont have the time xD but maybe il add it later..

 

And message to a moderator..please delete the posts that my fellow romanians posted...thx

Link to comment
Share on other sites

Outer space atm,

I'm still working on the pack:P

I need to fix skills and shit......make it more retail like interlude full...hopefully xD

Link to comment
Share on other sites

hey you have 27 post and u hidden for 100????OMG!!!!

 

If i Dont Know Use Eclipse I Cant MAke Its ? (i use l2jfree)

OMG 100 posts...

If i Dont Know Use Eclipse I Cant MAke Its ? (i use l2jfree)

 

1rst and last warning for all cuz u spam the thread!

Link to comment
Share on other sites

Mate , Something Is Wrong With The Code.. Eclipse Gives Me An Error When I Try To Compile It..

 

Can u Check It Plx...?

 

Cause i Need It Asap!

Link to comment
Share on other sites

cuz ct1 to ct2 packs are now changed and clientpackets folder is inside net.sf.l2j.gameserver.network.clientpackets...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...