Jump to content

Recommended Posts

Posted

HeLLo Folks

Today I Show You How To Fix Subclass Exploits...

We Add Penalty Time When You Change/Cancel/Add Subclass

1st Of All YOU MUST THE COMPILE!

 

Time To Start

Let's Go!

This Is Tested To Gracia Part I At New Realases The Code Is Into Files But You Must Make Some Edit!

Gracia Part I!

go into com.l2jfree.gameserver.util and Open FloodProtector.java

						
// protected actions
public static final int				PROTECTED_USEITEM		= 0;
public static final int				PROTECTED_ROLLDICE		= 1;
public static final int				PROTECTED_FIREWORK		= 2;
public static final int				PROTECTED_GLOBAL_CHAT	= 3;
public static final int				PROTECTED_TRADE_CHAT	= 4;
public static final int				PROTECTED_ITEMPETSUMMON	= 5;
public static final int				PROTECTED_HEROVOICE		= 6;
public static final int				PROTECTED_SOCIAL		= 7;
public static final int				PROTECTED_MULTISELL		= 8;
// =========================================================

Find This

and add this line under this protects

 public static final int PROTECTED_SUBCLASS = 9;

It Will Be Like This

// protected actions
public static final int				PROTECTED_USEITEM		= 0;
public static final int				PROTECTED_ROLLDICE		= 1;
public static final int				PROTECTED_FIREWORK		= 2;
public static final int				PROTECTED_GLOBAL_CHAT	= 3;
public static final int				PROTECTED_TRADE_CHAT	= 4;
public static final int				PROTECTED_ITEMPETSUMMON	= 5;
public static final int				PROTECTED_HEROVOICE		= 6;
public static final int				PROTECTED_SOCIAL		= 7;
public static final int				PROTECTED_MULTISELL		= 8;
public static final int				PROTECTED_SUBCLASS 	= 9;
// =========================================================

Then Find This Line

{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 2 };

and after "2" add "100" (if you want 10 seconds penalty time)

it will be

{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 2, 100 };

Save it...

Done!

Now Go To com.l2jfree.gameserver.model.actor.instance and open L2VillageMasterInstance.java

At Imports add this

import com.l2jfree.gameserver.util.FloodProtector;

Then Go At Line 413 find this

player.setActiveClass(paramOne); 
   
content.append("Change Subclass:<br>Your active sub class is now a <font color=\"LEVEL\">"

(IF YOU HAVE ANOTHER REALASES FIND AT -10 lines Or +10 Lines You Find It)

above This Add

 
                                     /* 
                                      * DrHouse: Despite this is not 100% retail like, it is here to avoid some exploits during subclass changes, specially 
                                      * on small servers. TODO: On retail, each village master doesn't offer any subclass that is not given by itself so player 
                                      * always has to move to other location to change subclass after changing previously. Thanks Aikimaniac for this info. 
                                     */ 
                                   if (!FloodProtector.getInstance().tryPerformAction(player.getObjectId(), FloodProtector.PROTECTED_SUBCLASS)) 
                                     { 
                                            player.sendMessage("You can change Subclass only every 10 Second(s)"); 
                                             return; 
                                     } 

Change Action Is Done!

Now Go TO Cancel

Go To Line 488 (case7) And Find This

player.setActiveClass(paramOne);

above This Add

 
                                     /* 
                                      * DrHouse: Despite this is not 100% retail like, it is here to avoid some exploits during subclass changes, specially 
                                      * on small servers. TODO: On retail, each village master doesn't offer any subclass that is not given by itself so player 
                                      * always has to move to other location to change subclass after changing previously. Thanks Aikimaniac for this info. 
                                     */ 
                                   if (!FloodProtector.getInstance().tryPerformAction(player.getObjectId(), FloodProtector.PROTECTED_SUBCLASS)) 
                                     { 
                                            player.sendMessage("You can cancel Subclass only every 10 Second(s)"); 
                                             return; 
                                     } 

Cancel It's Done..

Now Go To Add Action

Go TO Line 393 (case4)

find this

player.setActiveClass(player.getTotalSubClasses());

Above this Add

 
                                     /* 
                                      * DrHouse: Despite this is not 100% retail like, it is here to avoid some exploits during subclass changes, specially 
                                      * on small servers. TODO: On retail, each village master doesn't offer any subclass that is not given by itself so player 
                                      * always has to move to other location to change subclass after changing previously. Thanks Aikimaniac for this info. 
                                     */ 
                                   if (!FloodProtector.getInstance().tryPerformAction(player.getObjectId(), FloodProtector.PROTECTED_SUBCLASS)) 
                                     { 
                                            player.sendMessage("You can Add new Subclass only every 10 Second(s)"); 
                                             return; 
                                     } 

Add Action Is Done!

Save it And Compile Your Pack!

Credits Forgotex20 For Greek Guide Me For Transalation!

The Transalation Will Be For A-Style As Requested!

 

 

 

Gracia Part II Version 1.2.9

Go to com.l2jfree.gameserver.util and open FloodProtector.java

Find This

	// reuse delays for protected actions (in game ticks 1 tick = 100ms)
private static final int[]			REUSEDELAY				= new int[]
															{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 20, 10 };

and make something like this

	// reuse delays for protected actions (in game ticks 1 tick = 100ms)
private static final int[]			REUSEDELAY				= new int[]
															{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 2, 100 };

Save It...

Done!

Now You Are Done! you Have Fix It But The Players Can't Understand that server protected...

If You Are Newbie To Edit Java Files Just Compile Here But If You Want To Add Text When Someone Go To Make It Follow These Steps!

Go To com.l2jfree.gameserver.model.actor.instance and Open L2VillageMasterInstance.java

And Find at line 299-302(case 4) this

				{
				_log.warn("Player "+player.getName()+" has performed a subclass change too fast");
				return;
			}

make it

				{
				player.Sendmessage("This Server Protected! You Can Only Add Subclass Into 10 Second(s)");
				return;
			}

Done The Add!

Now Go To line 424-427 (Case 5) And Find Again The Same

				{
				_log.warn("Player "+player.getName()+" has performed a subclass change too fast");
				return;
			}

make it

				{
				player.Sendmessage("This Server Protected! You Can Only Change Subclass Into 10 Second(s)");
				return;
			}

Done And The Change Action

Now Go To Line 466-469(case 7) and Find Again THe Same

				{
				_log.warn("Player "+player.getName()+" has performed a subclass change too fast");
				return;
			}

make it

				{
				player.Sendmessage("This Server Protected! You Can Only Cancel Subclass Into 10 Second(s)");
				return;
			}

Done And The Cancel Action!

Save It And Now Compile!

Now you Are Ok With Text!

Again Credits

For Gracia Part I Forgotex20 me for transalation

For Gracia Part II Credits Go To Me!

Have Fun!

 

Posted

As i said to forgotten this won't work.

 

Your mistake is that you add the protection after the sub is done.The bug for multi skill is when you do the subclass add fast cancel it and add another.

 

Solution:Add the protection when they choose sub and not when the action is done.

Posted

As i said to forgotten this won't work.

 

Your mistake is that you add the protection after the sub is done.The bug for multi skill is when you do the subclass add fast cancel it and add another.

 

Solution:Add the protection when they choose sub and not when the action is done.

As I Know you have make it to Interlude...

I Have tested to Gracia and if player add subclass then you cant change/cancel subclass

maybe at IL you must make it with your own guide

Dunno if you tested to Gracia

Reply and i answer!

Posted

about cancel action  .. it work if know where put the code! i mean b4 1 action or after!

 

 

yes this is real thing..

if you see a little the codes you understand.!

Posted

I leave this post for a wile..:P

 

But i see none find the wrongs on second share....!!

 

Let explain what i mean....

 

 

If we go at floodprotection.java of l2jfree Gracia PT2 we will see that at begin!!

 

 

// reuse delays for protected actions (in game ticks 1 tick = 100ms)

private static final int[] REUSEDELAY = new int[]

{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 20, 10 };

 

// protected actions

public static final int PROTECTED_USEITEM = 0;

public static final int PROTECTED_ROLLDICE = 1;

public static final int PROTECTED_FIREWORK = 2;

public static final int PROTECTED_GLOBAL_CHAT = 3;

public static final int PROTECTED_TRADE_CHAT = 4;

public static final int PROTECTED_ITEMPETSUMMON = 5;

public static final int PROTECTED_HEROVOICE = 6;

public static final int PROTECTED_SOCIAL = 7;

public static final int PROTECTED_SUBCLASS = 8;

public static final int PROTECTED_DROPITEM = 9;

 

 

 

Well let's learn some mathematics...!       

 

PROTECTED_USEITEM   = 0;   >>             4

PROTECTED_ROLLDICE = 1;     >>       42

PROTECTED_FIREWORK = 2;        >>    42

PROTECTED_GLOBAL_CHAT = 3;         >>   Config.GLOBAL_CHAT_TIME

PROTECTED_TRADE_CHAT = 4;           >> Config.TRADE_CHAT_TIME

PROTECTED_ITEMPETSUMMON = 5;      >>   16

PROTECTED_HEROVOICE = 6;       >>  100

PROTECTED_SOCIAL = 7;          >>  Config.SOCIAL_TIME

PROTECTED_SUBCLASS = 8;           >> 20

PROTECTED_DROPITEM = 9;    >>  10

 

 

 

well your share tells this!

 

 

 

 

Gracia Part II Version 1.2.9

Go to com.l2jfree.gameserver.util and open FloodProtector.java

Find This

	// reuse delays for protected actions (in game ticks 1 tick = 100ms)
private static final int[]			REUSEDELAY				= new int[]
															{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 20, 10 };

and make something like this

	// reuse delays for protected actions (in game ticks 1 tick = 100ms)
private static final int[]			REUSEDELAY				= new int[]
															{ 4, 42, 42, Config.GLOBAL_CHAT_TIME, Config.TRADE_CHAT_TIME, 16, 100, Config.SOCIAL_TIME, 2, 100 };

Save It...

 

 

You say the 20  make it to 2... and  10 to 100 ....!!

 

But for subclass you decrease the time from 2000ms to 200ms. how can this help?

 

 

Always Friendly Cobra !

 

p.s: Just i was curious bcauz at my pack it was fixed on latest revesion ...just look changelog of l2jfree..!!

p.s:From Gracia PT1 to PT2 Are big difference and fixed ...so...!!

p.s1: Some Mod Hide My Post To 50 Pliz.... ::)

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

    • I'm not going to name my clients' domains, but you're coming across as a liar. You can't prove anything you said... The source code is here. If there's a crash like you say, show it to people.   Best of luck 🙂
    • You keep avoiding again and pretending to be something you are not. Give me a server that works with your files and i will make a special video for you. I will show how when the server is online it goes down. What are you afraid of? 🙂 Come on, I’m waiting.  
    • General Trackers :   IPTorrents invite IPTorrents account 1 tb TorrentLeech invite Torrentleech account 1 tb buffer  InTheShaDow ( ITS ) account Acid-lounge invite Torrentday invite Crnaberza account Abn.Lol account Limit-of-eden account Norbits account Xspeeds account Xspeeds invite Bemaniso invite Wigornot account Bithumen invite Filelist account Funfile invite AvistaZ invite Potuk.net invite ResurrectThe.Net invite GrabThe.Info invite Greek-Team invite LinkoManija invite Fano.in account tracker.czech-server.com Speed.cd invite Arab-torrents.net account Arabscene.me account Scenetime account 4thd.xyz invite Btarg.com.ar account Dedbit invite Estone.cc account Speedapp invite Finvip invite Fluxzone account GigaTorrents account Gimmepeers account Haidan.video invite Mojblink account Mycarpathians invite Newinsane.info account Oscarworld.xyz account Peers.FM invite Pt.msg.vg account Ransackedcrew account Redemption invite Scene-rush account Seedfile.io invite Teracod invite Torrent.ai account Torrentmasters invite Ttsweb invite X-files invite X-ite invite Ncore account TorrentHR account Rptorrents account BwTorrents account Superbits invite Krazyzone account Immortalseed account Tntracker invite Pt.eastgame.org account Bitturk account Rstorrent account Tracker.btnext invite Torrent-turk.de account BeiTai.PT account Pt.keepfrds account 52pt.site account Pthome account Torrentseeds account Aystorrent account Blues-brothers.biz invite Divteam account Thesceneplace invite CinemaMovies.pl account Brasiltracker account Patiodebutacas account Newheaven.nl account  Swarmazon.club invite Bc-reloaded account Crazyspirits account Silentground invite Omg.wtftrackr invite Milkie.cc invite Breathetheword invite Madsrevolution account Chilebt account Yubraca account Uniongang.tv account Frboard account Exvagos account Diablotorrent account Microbit account Carp-hunter.hu account Majomparade.eu account Theshinning.me account Youiv.info account Dragonworld-reloaded account Sharewood.tv account Partis.si account Digitalcore.club invite Fuzer.me account R3vuk.wtf invite Ztracker account 1 tb buffer 3changtrai account Best-core.info account Bitsite.us account Eliteunitedcrew invite Exitorrent.org account Tophos invite Torrent.lt account Sktorrent.eu account Oshen account Blackhattorrent account Pirata.digital account Esharenet account Ohmenarikgi.la Pirate-share account Immortuos account Kiesbits account Cliente.amigos-share.club account Broadcity invite Ilovetorzz account Torrentbytes account Polishsource account Portugas invite Shareisland account ArabaFenice account Hudbt.hust.edu.cn account Audiences account Nanyangpt account Pt.sjtu.edu.cn account Pt.zhixing.bjtu.edu.cn account Byr.pt invite Ptfiles invite Red-bits account Pt.hdpost.top account Irrenhaus.dyndns.dk (NewPropaganda) account Mnvv2.info (MaxNewVision V2) account 1ptba.com account Spidertk.top account Film-paleis account Generation-free account Aftershock-tracker account Twilightsdreams account Back-ups.me invite Sor-next.tk ( Spirit Of Revolution ) account Tfa.tf ( The Falling Angels ) account Hdmayi account S-f-p.dyndns.dk ( Share Friends Projekt ) account Unlimitz.biz account Pttime account St-tracker.eu account New-retro.eu account Zbbit account Tigers-dl.net account Jptvts.us account Lat-team account Club.hares.top account Falkonvision-team account Concen account Drugari account T.ceskeforum account Peeratiko.org account Zamunda.se account Central-torrent.eu account h-o-d.org account Torrentleech.pl account Demonoid invite Lst.gg account Fakedoor.store account LaidBackManor account Vrbsharezone.co.uk invite Torrenteros account Arenaelite account Datascene account Tracker.0day.community Tapochek.net invite Ptchina invite Lesaloon account Exyusubs account Therebels.tv account Ubits.club invite Zmpt.cc account Turktorrent.us account Dasunerwarte account Hawke.uno account Monikadesign account Fearnopeer account Alpharatio account Wukongwendao.top account Chinapyg account Azusa.wiki account Yggtorrent.top account Torrentdd account Cyanbug.net invite Hhanclub.top account Wintersakura.net account Xthor account Tctg.pm account Finelite invite Agsvpt.com account Pt.0ff.cc invite Qingwapt.com account Xingtan.one account Ptcafe.club invite W-o-t.pro account Coastal-crew.bounceme.net account Darkpeers.org account Pianyuan.org account Seedpool.org  account Tempelbox account Pt.itzmx.com account Itatorrents.xyz  account Letseed.org account The-new-fun.com  account Malayabits.cc account Trellas.me account Yu-scene.net account Futuretorrent.org account Bitpt.cn account Tocashare.biz  account Videoteka.org  account White-angel.hu account Xbytesv2.li account Torr9  account Desitorrents account Okpt.net account Samaritano.cc account Polishtorrent.top  account C411.org account Bigcore.eu account BJ-Share.info account Infinitylibrary.net account Beload.org account Emuwarez.com account Yhpp.cc account Funsharing ( FSC ) account Rastastugan account   Movies Trackers :   Secret-cinema account Anthelion account Pixelhd account Cinemageddon account Cinemaz account Retroflix account Classix-unlimited - invite Movie-Torrentz (m2g.link) invite Punck-tracker.net account Tmghub account Cathode-ray.tube account Greatposterwall account Arabicsource.net account Upload.cx account Crabpt.vip invite Onlyencodes.cc account Exyusubs account Hellashut.net invite Nordichd.sytes.net invite Locadora.cc account HD Trackers :   Blutopia buffered account Hd-olimpo buffered account Hdf.world account Torrentland.li account HdSky account Hdchina account Chdbits account Totheglory account Hdroute account Hdhome account TorrentCCF aka et8.org account 3DTorrents invite HD-Torrents account Bit-HDTV account HDME.eu invite Hdarea.co account Asiancinema.me account JoyHD invite HDSpace invite CrazyHD invite Bluebird-hd invite Htpt.cc account Hdtime invite Ourbits.club account Hd4fans account Siambit account Privatehd account Springsunday account Tjupt account Hdcity.leniter invite Ccfbits account Discfan account Pt.btschool.club account Ptsbao.club invite Hdzone.me invite Danishbytes account Zonaq.pw account Tracker.tekno3d account Arabp2p account Hd-united account Reelflix.xyz account Hdatmos.club account Anasch.cc invite Tigris-t account Nethd.org account Hd.ai invite Hitpt.com account Hdmonkey account Dragonhd.xyz account Hdclub.eu account Forum.bluraycd.com account Carpt account Hdfun.me invite Pt.hdupt invite Puntotorrent account Ultrahd account Rousi.zip account Bearbit account Hdturk.club account Asiandvdclub account Star-space.net account Nordicq.org account Hdkyl.in account Utp.to account Hdzero account   Music Trackers :   Dicmusic account Music-Vid account Open.cd account LzTr account ProAudioTorrents invite Jpopsuki invite TranceTraffic invite Audionews invite Kraytracker invite Libble.me invite Losslessclub invite Indietorrents.com invite Dimeadozen account Funkytorrents invite Karaokedl account zombtracker.the-zomb account Concertos account Sugoimusic account Satclubbing.club invite Metal.iplay invite Psyreactor invite Panda.cd account Adamsfile account Freehardmusic account Tracker.hqmusic.vn accouunt Twilightzoom account 3 tb buffer Hiresmusic account Metalguru account Musictorrents.org account Musebootlegs.com invite Zappateers.com account Jungleland.dnsalias.com account Naftamusic account   E-Learning Trackers :   Theplace account Thevault account Myanonamouse account Libranet account 420Project account Learnflakes account Pt.soulvoice.club account P2pelite account Aaaaarg.fail invite Ebooks-shares.org account Abtorrents account Pt.tu88.men invite Docspedia.world invite   TV-Trackers :   Skipthecommericals Cryptichaven account TV-Vault invite Shazbat.TV account Myspleen account Tasmanit.es invite Tvstore.me account Tvchaosuk account Jptv.club account   XXX - Porn Trackers :   FemdomCult account Pussytorrents account Adult-cinema-network account Bootytape account 1 Tb buffer Exoticaz account Bitporn account Kufirc account Gaytorrent.ru invite Nicept account Gay-torrents.org invite Ourgtn account Pt.hdbd.us account BitSexy account Happyfappy.org account Kamept.com account Lesbians4u.org account   Gaming Trackers :   Mteam.fr account BitGamer invite Retrowithin invite Gamegamept account   Cartoon/Anime/Comic Trackers :   Animeworld account Oldtoons.world account U2.dmhy account CartoonChaos invite Animetorrents account Mononoke account Totallykids.tv account Bakabt.me invite Revanime account Ansktracker account Tracker.shakaw.com.br invite Bt.mdan.org account Skyey2.com account Animetracker.cc Adbt.it.cx invite Tracker.uniotaku.com account Mousebits.com account   Sports Trackers :   MMA-Tracker invite T3nnis.tv invite AcrossTheTasman account RacingForMe invite Sportscult invite Ultimatewrestlingtorrents account Worldboxingvideoarchive invite CyclingTorrents account Xtremewrestlingtorrents account Tc-boxing invite Mma-torrents account Aussierul invite Xwt-classics account Racing4everyone account Talk.tenyardtracker account Stalker.societyglitch invite Extremebits invite Rgfootball.net account F1carreras.xyz account   Software/Apps Trackers :   Brokenstones account Appzuniverse invite Teamos.xyz account Macbb.org account   Graphics Trackers:   Forum.Cgpersia account   Others   Hduse.net account Fora.snahp.eu account Board4all.biz account Makingoff.org/forum account Xrel.to account Undergunz.su account Corebay account Endoftheinter.net ( EOTI ) account Thismight.be invite Skull.facefromouter.space account Avxhm.se (AvaxHome) account Ssdforum account Notfake.vip account Intotheinter.net account Tildes.net invite Thetoonz account Usinavirtual account Hdclasico invite HispaShare account Valentine.wtf account Adit-hd account Forum-andr.net account Warezforums account Justanothermusic.site account Forbiddenlibrary.moe account Senturion.to account Movieparadise account Dcdnet.ru account Sftdevils.net account Heavy-r.com account New-team.org account Ddl.tv account Filewarez.club account Hispamula.org account Hubwarez.tv account Ultim-zone.in account Leprosorium.ru account Planet-ultima.org account The-dark-warez.com account   NZB :   Ninjacentral.co.za account Tabula-rasa.pw account Drunkenslug account Drunkenslug invite Usenet-4all account Dognzb.cr invite Kleverig account Nzb.cat account Nzbplanet.net invite Ng4you.com account NZB.to account Samuraiplace account Abhdtv.net account Abook.link account Comix.pw account House-of-usenet Secretbinaries.net account Vnext.to account Stockboxx.top account Sky-of-use.net account   Prices start from 3 $ to 100 $   Payment methods: Crypto, Neteller, Revolut   If you want to buy something send me a pm or contact me on:   Email: morrison2102@gmail.com   Discord: LFC4LIFE#4173   Telegram: https://t.me/LFC4LIFE4173   Skype: morrison2102@hotmail.com
    • Very interesting. You say there are some poorly coded parts. The code is publicly available for anyone to look at and verify what you're saying. Tell us which part of the code is incorrect, so everyone can confirm you're right. Regards.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..