Jump to content
  • 0

Bug Teleport Block Healers In Pvpzone


Question

Posted

Good morning, I am trying now not to find a forum needing help and I was very well attended. However, I am with a modless error that they have passed me .. The video will explain correctly what is happening, more is basically the following:

I put the area in flagzone, there blocks the healers, but when he returns to city of this bug there.

Can anyone help?

 

My Codes PvP Area:

      <zone type="FlagZone" shape="Cylinder" minZ="-11000" maxZ="-8000" rad="10000"><!-- Pagan Temple Pvp -->

  <node X="-16370" Y="-40782" />
</zone>

 

Link Post Block Healershttp://www.maxcheaters.com/topic/213502-block-bs-in-flagzone/

 

Code:

+if (character instanceof L2PcInstance)

+{
+    _player = (L2PcInstance)character;
+    final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's
+    for (int act : supporters)
+    if (_player.getActiveClass() == act)
+    {
+        _player.sendMessage("You can't enter in flag zone with a support class.");
+        _player.teleToLocation(83417 + Rnd.get(101) - 50, 149028 + Rnd.get(101) - 50, -3408);
+    }
+}

 

Video: https://youtu.be/d3vxJpvZT1g

 

Recommended Posts

  • 0
Posted

Why would you even teleport a restricted class?

 

A proper way to handle it if the character is a support class, then GK should just send a message without teleporting him.

  • 0
Posted (edited)

Why would you even teleport a restricted class?

 

A proper way to handle it if the character is a support class, then GK should just send a message without teleporting him.

Yea sure... then a bp will not use teleport and thats all..

 

Paste here your onEnter and onExit methods in 

code

seems like the player get teleport twice

Edited by melron
  • 0
Posted

if you read all post http://www.maxcheaters.com/topic/213502-block-bs-in-flagzone/page-2

i tell you is missing return or else for all next

@Override
protected void onEnter(L2Character character)
{
+if (character instanceof L2PcInstance)
+{
+    L2PcInstance _player = (L2PcInstance)character;
+    final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's
+    for (int act : supporters)
+    if (_player.getActiveClass() == act)
+    {
+        _player.sendMessage("You can't enter in flag zone with a support class.");
+        _player.teleToLocation(83417 + Rnd.get(101) - 50, 149028 + Rnd.get(101) - 50, -3408);
+        return;
+    }
+}
  • 0
Posted (edited)

It seems to be a l2jfrozen bug. I used to have this code for years in my pack (L2jserver Freya) and everything worked properly. I would like to ask you, are there any errors in console?

Edited by Solomun
  • 0
Posted

Yea sure... then a bp will not use teleport and thats all..

 

I was talking about the Gatekeeper, not the onEnter itself. Teleporting twice is pointless, that's my point.

  • 0
Posted

I was talking about the Gatekeeper, not the onEnter itself. Teleporting twice is pointless, that's my point.

It is actually not pointless at all. As you can see this guy restricts all healers (the code i gave him) but he allows summoners. If i know this right, summoners have a skill named recall. What would stop a summoner to recall a bishop into the pvp zone and screw everything around? 

  • 0
Posted

It is actually not pointless at all. As you can see this guy restricts all healers (the code i gave him) but he allows summoners. If i know this right, summoners have a skill named recall. What would stop a summoner to recall a bishop into the pvp zone and screw everything around? 

 

Actually it's EE who can recall his party and since it's a healer, it's also restricted too.

 

If there's anything that I don't know about summoner being able to recall other people, then my bad. Either way, you can block this skill in this zone too.

 

But I as a player wouldn't like to end up in Giran just because I clicked a button to where I'm not allowed to enter. Just let me stay and go elsewhere :P

  • 0
Posted

Actually it's EE who can recall his party and since it's a healer, it's also restricted too.

 

If there's anything that I don't know about summoner being able to recall other people, then my bad. Either way, you can block this skill in this zone too.

 

But I as a player wouldn't like to end up in Giran just because I clicked a button to where I'm not allowed to enter. Just let me stay and go elsewhere :P

2k17 comunity ?

 

sad storka 

  • 0
Posted

Actually it's EE who can recall his party and since it's a healer, it's also restricted too.

 

If there's anything that I don't know about summoner being able to recall other people, then my bad. Either way, you can block this skill in this zone too.

 

But I as a player wouldn't like to end up in Giran just because I clicked a button to where I'm not allowed to enter. Just let me stay and go elsewhere :P

 

Lol, you have never played summoner? Summoners have recall spell. About restricting them, it sounds really dump...lol

  • 0
Posted

Yeah I actually never played summoner and I haven't played for a long time now, so Party Recall was the only one that came to my mind. No need to be ashamed of not being perfect ^^

 

2k17 comunity ?

 

sad storka 

 

Just like it's a "sad storka" for people behaving like this, always loving those :)

  • 0
Posted

Performance wise, you must put

final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's

out of the if block, at the beginning of your FlagZone class (and must be private static final). But it's probably chinese for you.

 

And your if block is missing return, like pointed Pirama. Both teleport are handled in same time.

 

Like said Avanael, you will save numerous pointless actions if you simply restrain the bishop to teleport, at all. You must add the same exception than gatekeeper on SummonFriend skillhandler. You don't need to play with zone and teleport stuff, at all.

  • 0
Posted

Performance wise, you must put

final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's

out of the if block, at the beginning of your FlagZone class (and must be private static final). But it's probably chinese for you.

 

And your if block is missing return, like pointed Pirama. Both teleport are handled in same time.

 

Like said Avanael, you will save numerous pointless actions if you simply restrain the bishop to teleport, at all. You must add the same exception than gatekeeper on SummonFriend skillhandler. You don't need to play with zone and teleport stuff, at all.

 

Actually it's EE who can recall his party and since it's a healer, it's also restricted too.

 

If there's anything that I don't know about summoner being able to recall other people, then my bad. Either way, you can block this skill in this zone too.

 

But I as a player wouldn't like to end up in Giran just because I clicked a button to where I'm not allowed to enter. Just let me stay and go elsewhere :P

 

In my server i was used it without teleport inside just a block to this classes and msg

 
But if I do not teleport the healers, it will siege, and I wanted to restrict only 1 area and not to teleport to all locations.
Does anyone know how to fix this?
  • 0
Posted

I am curious though, why the code i gave him (yea, mine was with static field with class IDs) was working fine on Freya, but not on frozen? Just curiosity....Tryskell, do u have any ideas?

Guest
This topic is now closed to further replies.

×
×
  • Create New...