Jump to content
  • 0

about L2TownZone.java


Question

Posted

i have add this code ....

 

protected void onExit(L2Character character)
{

	if(!_noPeace)
	{
		character.setInsideZone(L2Character.ZONE_PEACE, false);
	}

+		if (character instanceof L2PcInstance)
+		{
+			L2PcInstance player = (L2PcInstance) character;
+			
+			if(player.isAio())
+			{
+				player.sendMessage("Aio Buffers Can't Leave From Towns.");
+				player.teleToLocation(82516, 148525, -3470);
+				return;
+			}
+		}

 

but i get this kind of error .. on gs .. can someone help me for this ?

 

b408b5696b8de34728029f418d46d31e.png

 

and also...

 

6a5291cfad824d36598f3f3530f2e3a4.png

 

and note that i have 1 player online ... so the second player was the AIO character.. that can't logout !

 

also no errors on java code !

10 answers to this question

Recommended Posts

  • 0
Posted

i have add this code ....

 

protected void onExit(L2Character character)
{

	if(!_noPeace)
	{
		character.setInsideZone(L2Character.ZONE_PEACE, false);
	}

+		if (character instanceof L2PcInstance)
+		{
+			L2PcInstance player = (L2PcInstance) character;
+			
+			if(player.isAio())
+			{
+				player.sendMessage("Aio Buffers Can't Leave From Towns.");
+				player.teleToLocation(82516, 148525, -3470);
+				return;
+			}
+		}

 

but i get this kind of error .. on gs .. can someone help me for this ?

 

b408b5696b8de34728029f418d46d31e.png

 

and also...

 

6a5291cfad824d36598f3f3530f2e3a4.png

 

and note that i have 1 player online ... so the second player was the VIP character.. that can't logout !

 

Thats not error... its information...

It says that player "x" have status 0 and close connections...

  • 0
Posted

Thats not error... its information...

It says that player "x" have status 0 and close connections...

 

something is wrong .. cause is looping all the time..

 

b408b5696b8de34728029f418d46d31e.png

 

all the time .. on console !

 

and also on game.. appears and dissapears that player ! ( And is offline )

 

( new photo ) - ( more reports on console .. and is 0 players online )

 

9fe805ef8c388d12a2bb257a18e7e514.png

  • 0
Posted

something is wrong .. cause is looping all the time..

 

b408b5696b8de34728029f418d46d31e.png

 

all the time .. on console !

 

and also on game.. appears and dissapears that player ! ( And is offline )

 

( new photo ) - ( more reports on console .. and is 0 players online )

 

9fe805ef8c388d12a2bb257a18e7e514.png

 

There is something wierd in AIO system you use...

  • 0
Posted

There is something wierd in AIO system you use...

 

i know .. i just add restriction when going out town.. to teleport back to town ... but.. i cant bring whats the problem with that !

  • 0
Posted

Well, your code is invalid I'd say. Gimme a moment.

 

L2PcInstance.java

 

So, in this case. If aio char leaves town, he will be teleported back to the town ;)

 

	if (isAio() && !isGM() && (!isInsideZone(L2Character.ZONE_TOWN)))
		{
			sendMessage("You can only teleport to another town while being on AIO!");
			teleToLocation(TeleportWhereType.Town); // teleport the aio to the closest town
	}

  • 0
Posted

Well, your code is invalid I'd say. Gimme a moment.

 

L2PcInstance.java

 

So, in this case. If aio char leaves town, he will be teleported back to the town ;)

 

	if (isAio() && !isGM() && (!isInsideZone(L2Character.ZONE_TOWN)))
		{
			sendMessage("You can only teleport to another town while being on AIO!");
			teleToLocation(TeleportWhereType.Town); // teleport the aio to the closest town
	}

 

L2TeleportInstance.java

 

Prevent to use GK.

 

	if(player.isAio())
	{
		player.sendMessage("You're not allowed to use gatekeeper.");
		return;
	}

 

and if summoned ? , or .. if leave from town .. and then scroll near the other town that want to go ? on l2townzone .. when go out of town.. automatic teleport you back.. so you cant go out from town !

  • 0
Posted

and if summoned ? , or .. if leave from town .. and then scroll near the other town that want to go ? on l2townzone .. when go out of town.. automatic teleport you back.. so you cant go out from town !

 

It's all as you wanted aka "Aio Buffers Can't Leave From Towns.". If the aio get summoned, the check from PcInstance will teleport him back to nearest town ;)

 

Ohh, about the GK check, it's not really neccessary (I used it with config - optional) but well. It's useless since PcIns check will do all the work. Also, it prevents to travel between towns.. Just drop it :P

  • 0
Posted

It's all as you wanted aka "Aio Buffers Can't Leave From Towns.". If the aio get summoned, the check from PcInstance will teleport him back to nearest town ;)

 

Ohh, about the GK check, it's not really neccessary (I used it with config - optional) but well. It's useless since PcIns check will do all the work. Also, it prevents to travel between towns.. Just drop it :P

 

ok i will check it... thnx you ! , i will check it right now ! , also in which lines i must open that  ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Classic move "its not a virus, all antiviruses are just wrong." The moment someone starts yelling "FIND THE MALICIOUS CODE" and mocking heuristic detection, its usually because there is something shady in there… or they have no clue what heuristic detection even is. If your files was clean, you wouldn’t be this defensive or getting personal.   when half the AV vendors are throwing out names like Trojan.Win32.Kasidet, Trj/Chgt.AD, and Gen:Variant.Tedy.537463, maybe it’s not "heuristics", maybe its just a shady-ass .rar. If there is smoke you don't argue with the smoke detector, you check the kitchen. But hey, maybe they all got paid too, right? 🤷‍♂️ the argue comes down to trusting you (a nobody) versus AV vendors   Popular threat label trojan.tedy Threat categories trojan  Family labels tedy   can i call you Teddy from now on? yes i can Teddy               Dont forget it was not something generic or maybe suspicious it just got detected with its specific version. and not only Teddy's Teddy some others too Kaspersky says Kasidet trojan keylogger, spyware, classic nasty stuff. Bitdefender, GData, VIPRE? Tedy variant, an actual known malware family. Panda, QuickHeal, Sophos, Fortinet everyone sees something dirty in there. But sure, they’re all wrong, and you’re the cybersecurity messiah who cracked the code. You really expect people to believe that 10 independent vendors with zero incentive to conspire against your .rar just happened to flag your file as malware… by accident? Maybe try this next time: instead of uploading garbage and calling people “idiots” when they don’t trust it, just don’t upload malware. Problem solved.
    • https://github.com/gawric/Guide-L2Unity/blob/main/Guide/Pakets/Blowfish/General description.md   Perhaps you will find it useful piece of encryption and decryption code from Acis Interlude   I transferred these methods to Unity c# and everything works fine   https://ibb.co/DHhP0JYr   I think the first 2 bytes are the packet size. Third byte packet id And then the information itself   It's all there in l2j servers  
    • Hello, I’m working on decrypting the Init packet that the server sends to the client during login. This packet is treated specially and contains the Blowfish keys used to encrypt and decrypt subsequent packets. Although it isn’t encrypted irreversibly and should be reversible, I haven’t succeeded yet. My goal is to extract the Blowfish key to decrypt certain client packets without disrupting the normal session flow. I can inject a DLL to sniff the packets, and with that I plan to develop a module that extends the client’s functionality. For example, after logging in, this module would capture all the data the client receives (character data, etc.). Additionally, it could listen for real-time server events, enabling integrations with Discord SDKs or other systems, thereby expanding Lineage 2’s capabilities. Init packet(0x00) LoginServer. Currently in the java Cores I checked there is no decode function for this package, only encript.
    • whats password from the archivie ?
    • All that shit are false positives of the vanganth cliext, sources are well and who sell it is a big scammer
  • Topics

×
×
  • Create New...