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

Post here from l2character teletolocation method. I wanna see smth.

 

 

   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);
  }
  }
    
      if (Config.RECEIVE_NOBLESSE)
      {
        this.noblesse.getEffects(character, character);
      }
      ((L2PcInstance)character).stopPvPFlag();
      ((L2PcInstance)character).updatePvPFlag(1);
      if (Config.MSG_ON_ENTER_FLAG)
      {
        ((L2PcInstance)character).sendMessage("[Wizard Zone]: " + Config.MESSAGE_ON_ENTER + ".");
      }
   
    
if (Config.ALLOW_FLAG_ZONE_TITLE)
{
  ((L2PcInstance)character).getAppearance().setTitleColor(Config.FLAG_ZONE_TITLE_COLOR);
}
   
if (Config.ALLOW_FLAG_ZONE_NAME)
{
  ((L2PcInstance)character).getAppearance().setNameColor(Config.FLAG_ZONE_NAME_COLOR);
}
 
    if(!_FlagZone && Config.ZONE_TOWN != 2)
{
character.setInsideZone(L2Character.ZONE_FLAGZONE, true);
}
    }
  }
 
  @Override
  protected void onExit(L2Character character)
  {
    if ((character instanceof L2PcInstance))
    {
      ((L2PcInstance)character).updatePvPFlag(0);
      if (Config.MSG_ON_ENTER_FLAG) {
        ((L2PcInstance)character).sendMessage("[Wizard Zone]: " + Config.MESSAGE_ON_EXIT + ".");
      }
    
if (Config.ALLOW_FLAG_ZONE_TITLE)
{
       ((L2PcInstance)character).getAppearance().setTitleColor(Config.NAME_COLOR);
}
if (Config.ALLOW_FLAG_ZONE_NAME)
{
       ((L2PcInstance)character).getAppearance().setNameColor(Config.TITLE_COLOR);
}
 
    if(!_FlagZone)
{
character.setInsideZone(L2Character.ZONE_FLAGZONE, false);
}
    }
  }
  
  @Override
  public void onDieInside(L2Character character) {}
  
  @Override
  public void onReviveInside(L2Character character)
  {
    onEnter(character);
    if (Config.RECEIVE_NOBLESSE)
    {
      this.noblesse.getEffects(character, character);
    }
  }
 
/**
* Returns this town zones name
* @return
*/
@Deprecated
public String getName()
{
return _townName;
}
 
/**
* Returns this zones town id (if any)
* @return
*/
public int getTownId()
{
return _townId;
}
 
/**
* Gets the id for this town zones redir town
* @return
*/
@Deprecated
public int getRedirectTownId()
{
return _redirectTownId;
}
 
/**
* Returns this zones spawn location
* @return
*/
public final int[] getSpawnLoc()
{
int ai[] = new int[3];
 
ai = _spawnLoc.get(Rnd.get(_spawnLoc.size()));
 
return ai;
}
 
private void showHtmlLevel(L2PcInstance activeChar)
{
 NpcHtmlMessage msg = new NpcHtmlMessage(5);
 msg.setFile("data/html/mods/level.htm");
  
 activeChar.sendPacket(msg);
 activeChar.sendPacket(new ActionFailed());
}
 
/**
* Returns this town zones castle id
* @return
*/
public final int getTaxById()
{
return _taxById;
}
}

Link to comment
Share on other sites

  • 0

 

 

 

   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);
  }
  }
    
      if (Config.RECEIVE_NOBLESSE)
      {
        this.noblesse.getEffects(character, character);
      }
      ((L2PcInstance)character).stopPvPFlag();
      ((L2PcInstance)character).updatePvPFlag(1);
      if (Config.MSG_ON_ENTER_FLAG)
      {
        ((L2PcInstance)character).sendMessage("[Wizard Zone]: " + Config.MESSAGE_ON_ENTER + ".");
      }
   
    
if (Config.ALLOW_FLAG_ZONE_TITLE)
{
  ((L2PcInstance)character).getAppearance().setTitleColor(Config.FLAG_ZONE_TITLE_COLOR);
}
   
if (Config.ALLOW_FLAG_ZONE_NAME)
{
  ((L2PcInstance)character).getAppearance().setNameColor(Config.FLAG_ZONE_NAME_COLOR);
}
 
    if(!_FlagZone && Config.ZONE_TOWN != 2)
{
character.setInsideZone(L2Character.ZONE_FLAGZONE, true);
}
    }
  }
 
  @Override
  protected void onExit(L2Character character)
  {
    if ((character instanceof L2PcInstance))
    {
      ((L2PcInstance)character).updatePvPFlag(0);
      if (Config.MSG_ON_ENTER_FLAG) {
        ((L2PcInstance)character).sendMessage("[Wizard Zone]: " + Config.MESSAGE_ON_EXIT + ".");
      }
    
if (Config.ALLOW_FLAG_ZONE_TITLE)
{
       ((L2PcInstance)character).getAppearance().setTitleColor(Config.NAME_COLOR);
}
if (Config.ALLOW_FLAG_ZONE_NAME)
{
       ((L2PcInstance)character).getAppearance().setNameColor(Config.TITLE_COLOR);
}
 
    if(!_FlagZone)
{
character.setInsideZone(L2Character.ZONE_FLAGZONE, false);
}
    }
  }
  
  @Override
  public void onDieInside(L2Character character) {}
  
  @Override
  public void onReviveInside(L2Character character)
  {
    onEnter(character);
    if (Config.RECEIVE_NOBLESSE)
    {
      this.noblesse.getEffects(character, character);
    }
  }
 
/**
* Returns this town zones name
* @return
*/
@Deprecated
public String getName()
{
return _townName;
}
 
/**
* Returns this zones town id (if any)
* @return
*/
public int getTownId()
{
return _townId;
}
 
/**
* Gets the id for this town zones redir town
* @return
*/
@Deprecated
public int getRedirectTownId()
{
return _redirectTownId;
}
 
/**
* Returns this zones spawn location
* @return
*/
public final int[] getSpawnLoc()
{
int ai[] = new int[3];
 
ai = _spawnLoc.get(Rnd.get(_spawnLoc.size()));
 
return ai;
}
 
private void showHtmlLevel(L2PcInstance activeChar)
{
 NpcHtmlMessage msg = new NpcHtmlMessage(5);
 msg.setFile("data/html/mods/level.htm");
  
 activeChar.sendPacket(msg);
 activeChar.sendPacket(new ActionFailed());
}
 
/**
* Returns this town zones castle id
* @return
*/
public final int getTaxById()
{
return _taxById;
}
}

 

 

 

gameserver\model\actor\L2Character.java

 

Post only teleToLocation method.

Link to comment
Share on other sites

  • 0

gameserver\model\actor\L2Character.java

 

Post only teleToLocation method.

 

 

/**
* On teleported.
*/
public void onTeleported()
{
if (!isTeleporting())
return;
 
final ObjectPosition pos = getPosition();
 
if (pos != null)
spawnMe(getPosition().getX(), getPosition().getY(), getPosition().getZ());
 
setIsTeleporting(false);
 
if (_isPendingRevive)
{
doRevive();
}
 
final L2Summon pet = getPet();
 
// Modify the position of the pet if necessary
if (pet != null && pos != null)
{
pet.setFollowStatus(false);
pet.teleToLocation(pos.getX() + Rnd.get(-100, 100), pos.getY() + Rnd.get(-100, 100), pos.getZ(), false);
pet.setFollowStatus(true);
}
 
}

Link to comment
Share on other sites

  • 0

 

 

 

/**
* On teleported.
*/
public void onTeleported()
{
if (!isTeleporting())
return;
 
final ObjectPosition pos = getPosition();
 
if (pos != null)
spawnMe(getPosition().getX(), getPosition().getY(), getPosition().getZ());
 
setIsTeleporting(false);
 
if (_isPendingRevive)
{
doRevive();
}
 
final L2Summon pet = getPet();
 
// Modify the position of the pet if necessary
if (pet != null && pos != null)
{
pet.setFollowStatus(false);
pet.teleToLocation(pos.getX() + Rnd.get(-100, 100), pos.getY() + Rnd.get(-100, 100), pos.getZ(), false);
pet.setFollowStatus(true);
}
 
}

 

 

Sorry mate, i can't help you anymore on this subject. It seems that you don't have any clue. Please, stop trying to make a server and start from the basics of programming (not java specific, but java would be a good start) and then u can come ask for help.

 

I asked you on teleToLocation method, you gave me this "onTeleported" method. The only thing i get here is that you don't know what a method is? Whatever, good luck, i hope others have time to help you

Link to comment
Share on other sites

  • 0

 

 
The error still persists .. could anyone else help? (I.e.

 

if you have time give me on pm your id and pass from team viewer for i see if i can help you 

 

Edit:

i wait 30 minute i can't more sorry ...

Edited by pirama
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • DISCORD :   utchiha_market   telegram    https://t.me/utchiha_market   SELLIX STORE :   https://utchiha-market.mysellix.io/   Join the server for more products :   https://discord.gg/hoodservices
    • When it comes to encrypting passwords, using a strong hashing algorithm like SHA-256 or bcrypt is recommended. These algorithms help ensure that passwords are securely stored and protected from being easily decrypted.
    • ***CLExt L2OFF Extender Premium Account Save - Auto Login***   We would like to sell account panel for save accounts for server owners or self player.  You can login and save your id and pass accounts or delete it etc.       Price: 100 euro.   ***CLExt L2OFF Extender Premium Auto-Farm Macro System*** We would like to sell Auto-Farm Macro System for server owners or self player.  You can add your potions and your macro to farm your character with your standars.       Price: 100 euro.   If you like to order send me DM or skype zoumhs999.
    • Diablo III, the action-packed hack-and-slash RPG developed by Blizzard Entertainment, has captivated gamers worldwide since its release in 2012. Now, imagine a world where Diablo III's source code is opened up to the community, inviting developers and enthusiasts alike to enhance and refine this beloved game. This topic delves into the possibilities, challenges, and community desires surrounding the idea of Diablo III as an open-source project.   Key Points: 1. Defining Diablo III: Diablo III is an action role-playing game set in the dark fantasy world of Sanctuary. Players traverse through randomized dungeons, battling hordes of demons and collecting loot to strengthen their characters. With its compelling storyline, addictive gameplay mechanics, and rich lore, Diablo III has amassed a dedicated fanbase over the years.   2. Open Source Potential: Opening up the source code of Diablo III could unlock a wealth of opportunities for the game's future. Community developers could introduce new features, enhance existing gameplay elements, and address long-standing issues. The modding community, known for its creativity and innovation, could breathe new life into the game by creating custom content, game modes, and user interface improvements. 3. Community Interest: The question arises - would the gaming community welcome the idea of Diablo III becoming open source? Many players are eager to see the game evolve beyond its current state, with enhancements such as improved balance, expanded end-game content, and enhanced multiplayer features. By involving the community in the development process, Diablo III could foster a stronger sense of ownership and collaboration among its players. 4. Challenges and Considerations: While the concept of Diablo III as an open source is enticing, it also presents several challenges. Ensuring the integrity of the game's balance and preventing cheating would be paramount concerns. Additionally, coordinating development efforts and maintaining a cohesive vision for the game could prove challenging in a community-driven environment. However, with proper oversight and collaboration, these obstacles can be overcome. 5. Is Diablo III an MMORPG? Diablo III is often categorized as an action RPG rather than a traditional MMORPG (massively multiplayer online role-playing game). While it does feature online multiplayer elements, including cooperative play and player-versus-player combat, it lacks the persistent open world typically associated with MMORPGs. Instead, Diablo III focuses on instanced dungeons and smaller-scale multiplayer interactions. The Benefits of Improvement: Improving Diablo III through open-source development could revitalize the game, attracting new players and re-engaging existing fans. By embracing community-driven innovation, Diablo III could remain relevant and enjoyable for years to come. Additionally, fostering an active modding community could extend the game's longevity and create new opportunities for player expression and creativity.   Source code  
  • Topics

×
×
  • Create New...