Jump to content
  • 0

Bug Teleport Block Healers In Pvpzone


nortim

Question

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

 

Link to comment
Share on other sites

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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;
+    }
+}
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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? 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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 :)

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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?
Link to comment
Share on other sites

  • 0

You can create your own teleport bypass... You simply copy paste the whole bypass, include the check, change the HTM to fit with new bypass name and it's done.

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • Someone ask me for this, it should work on any client that has Kamael race, preview:     Installation - there are two ways to install depending on how you want to use it:   Method 1: If you want to completely replace the original, do:   Copy all lines from your armorgrp to Notepad++, press Ctrl+H, check the "match whole word" option and replace:   kamael.Mkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_MKamael_m001_w_ad00   Then replace:   MKamael.Mkamael_m000_t00_w   by:   AvengersKamaelWings.MKamael_m001_t00_w   Now repeat the same process with the female, replace:   kamael.Fkamael_m000_w_ad00   by:   AvengersKamaelWings.Avengers_FKamael_m001_w_ad00   Then replace:   FKamael.Fkamael_m000_t00_w   by:   AvengersKamaelWings.FKamael_m001_t00_w   You're done, paste everything back into File Edit and save!   Method 2: If you only want to replace in specific sets, execute the above process only on the armorgrp of those sets.   Repack by: AvengersTeamBr Password: LadrãoDeFrango      
    • 用于解密、加密和编辑 .u 文件的工具。
    • It's always awesome when you find someone who not only delivers great quality but also does it way ahead of schedule. Makes you feel like you hit the jackpot, right? I'm new around here, just stumbled upon this forum, and seeing posts like yours really gives me hope that there are some real pros hanging out in this community.
    • Dear friends! We have good news to announce that the server that will open in June 1 will be the Main server and every 4 months we will make another season server and integrate ( merge ) it into the main that will always be open..  
    • I'd be happy to recommend, possibly or definitely, without exaggerating, probably the best service for designing logos, launchers, and banners for L2 servers at the moment.   This guy really pours his heart into his work, tapping into his creativity instead of just churning out something robotic.   KEEP UP THE GOOD WORK.
  • Topics

×
×
  • Create New...