Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FlagZone Juvenil Walker
- ======================Net/sf/l2j/config.class
- /** protetion pvpzone Juvenil Walker*/
- + public static final String FLAGZONE_FILE = "./config/flagzone.properties";
- Referencia -> public static final String DATAPACK_ROOT = ".";
- + public static boolean BS_PVPZONE;
- + public static boolean WYVERN_PVPZONE;
- + private static final void loadFlagZone()
- + {
- + final ExProperties flagzone = initProperties(FLAGZONE_FILE);
- + BS_PVPZONE = Boolean.parseBoolean(flagzone.getProperty("DisableBsPvPZone", "False"));
- + WYVERN_PVPZONE = Boolean.parseBoolean(flagzone.getProperty("WyverbPvPZone", "False"));
- }
- Referencia ->// Raidbosses settings
- loadRaidboss();
- + // FlagZone
- + loadFlagZone();
- E preciso criar a Class da Zona em
- GAMESERVER/MODEL/ZONE/TYPE/NoBsZone.class
- + package net.sf.l2j.gameserver.model.zone.type;
- + import net.sf.l2j.commons.concurrent.ThreadPool;
- + import net.sf.l2j.Config;
- + import net.sf.l2j.gameserver.datatables.SkillTable;
- + import net.sf.l2j.gameserver.model.L2Skill;
- + import net.sf.l2j.gameserver.model.actor.Creature;
- + import net.sf.l2j.gameserver.model.actor.instance.Player;
- + import net.sf.l2j.gameserver.model.base.ClassId;
- + import net.sf.l2j.gameserver.model.zone.SpawnZoneType;
- + import net.sf.l2j.gameserver.model.zone.ZoneId;
- + import net.sf.l2j.gameserver.network.SystemMessageId;
- + import net.sf.l2j.gameserver.network.serverpackets.ExShowScreenMessage;
- + public class NoBsZone extends SpawnZoneType
- + {
- + L2Skill noblesse = SkillTable.getInstance().getInfo(1323, 1);
- + public NoBsZone(int id)
- + {
- + super(id);
- + }
- + //Juvenil Amaro™
- + //L2jBan-Projeto L2jBrasil
- + @Override
- + protected void onEnter(Creature character)
- + {
- + character.setInsideZone(ZoneId.PVP, true);
- + character.setInsideZone(ZoneId.NO_STORE, true);
- + if (character instanceof Player)
- + {
- + final Player player = (Player) character;
- + noblesse.getEffects(character, character);
- + if (Config.BS_PVPZONE && !player.isPhantom() && !player.isGM())
- + if (player.getClassId() == ClassId.BISHOP || player.getClassId() == ClassId.CARDINAL || player.getClassId() == ClassId.SHILLIEN_ELDER || player.getClassId() == ClassId.SHILLIEN_SAINT || player.getClassId() == ClassId.EVAS_SAINT || player.getClassId() == ClassId.ELVEN_ELDER || player.getClassId() == ClassId.PROPHET || player.getClassId() == ClassId.HIEROPHANT)
- + {
- + player.sendPacket(new ExShowScreenMessage("Class Proibida in PvP area..", 6000, 2, true));
- + ThreadPool.schedule(new Runnable()
- + {
- + @Override
- + public void run()
- + {
- + if (player.isOnline() && !player.isInsideZone(ZoneId.PEACE))
- + player.teleToLocation(83485, 148624, -3402, 50);
- + }
- + }, 4000L);
- + }
- + if (player.getMountType() == 2 && !Config.WYVERN_PVPZONE)
- + {
- + player.sendPacket(SystemMessageId.AREA_CANNOT_BE_ENTERED_WHILE_MOUNTED_WYVERN);
- + player.enteredNoLanding(5);
- + }
- + }
- + }
- +
- + @Override
- + protected void onExit(Creature character)
- + {
- + character.setInsideZone(ZoneId.PVP, false);
- + character.setInsideZone(ZoneId.NO_STORE, false);
- + }
- +
- + @Override
- + public void onDieInside(Creature character)
- + {
- + }
- +
- + @Override
- + public void onReviveInside(Creature character)
- + {
- + }
- +}
- =============dentro de config/flagzone.properties
- +#Juvenil Amaro L2jBrasil Forever
- +#Proibir BISHOP, CARDINAL, SHILLIEN_ELDER, SHILLIEN_SAINT, EVAS_SAINT, ELVEN_ELDER, PROPHET, HIEROPHANT
- +DisableBsPvPZone = True
- +#Proibir DragaoVoador
- +WyverbPvPZone = True
- ==============================Config/data/xml/zones/NoBsZone.xml
- +<?xml version="1.0" encoding="UTF-8"?>
- +<list>
- + <zone type="NoBsZone" shape="NPoly" minZ="-3498" maxZ="-3298"> <!-- coliseum_battle -->
- + <node X="150948" Y="46483" />
- + <node X="151210" Y="46186" />
- + <node X="151221" Y="45928" />
- + <node X="150737" Y="45344" />
- + <node X="148265" Y="45346" />
- + <node X="147769" Y="45942" />
- + <node X="147784" Y="46184" />
- + <node X="148047" Y="46482" />
- + <node X="148049" Y="46954" />
- + <node X="147781" Y="47256" />
- + <node X="147769" Y="47492" />
- + <node X="148263" Y="48087" />
- + <node X="150745" Y="48084" />
- + <node X="151220" Y="47493" />
- + <node X="151216" Y="47259" />
- + <node X="150947" Y="46960" />
- + <spawn X="147451" Y="46728" Z="-3410" />
- + </zone>
- + </list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement