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.



  • Posts

    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
    • I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
    • hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.  I have access to modify everything even to make the clock to stop show how many time users play in server. 1) so maybe keep some personal info more hide. 2) i dont use ogg.dll 3) i create it and give it ready + support to install it. Plus what is mine can working with what ever .exe you want not just l2 with same simple method. And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too thats my source
  • Topics

×
×
  • Create New...