Dramzes Posted January 22, 2024 Posted January 22, 2024 (edited) this is the code i added, it's working /* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.l2jmobius.gameserver.model.zone.type; import org.l2jmobius.gameserver.data.SkillTable; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.zone.ZoneType; /** * Bighead zones give entering players big heads * @author durgus */ public class FlagZone extends ZoneType { public FlagZone(int id) { super(id); } @Override protected void onEnter(Creature creature) { if (creature instanceof Player) { SkillTable.getInstance().getSkill(1323, 1).applyEffects(creature, creature); ((Player) creature).setPvpFlag(1); ((Player) creature).sendMessage("You entered a Pvp Flag zone."); ((Player) creature).broadcastUserInfo(); } } @Override protected void onExit(Creature creature) { if (creature instanceof Player) { ((Player) creature).stopSkillEffects(1323); ((Player) creature).setPvpFlag(0); ((Player) creature).sendMessage("You left the Pvp Flag zone."); ((Player) creature).broadcastUserInfo(); } } @Override protected void onDieInside(Creature creature) { onEnter(creature); } @Override protected void onReviveInside(Creature creature) { onEnter(creature); } } case "FlagZone": { temp = new FlagZone(zoneId); break; } but primeval isle is set as town zone, i deleted primeval from PeaseZone, then changed type, then move it and changed type too but 0 effect... i am getting flagged in primeval but its set as town zone still so can't fight, what am i missing? Edited January 22, 2024 by Dramzes Quote
andy1984 Posted January 22, 2024 Posted January 22, 2024 Primeval it is a town zone. check townzones xml an you will find it. change cordinates there to another place and you are done. do not delete town zone you will get error. Quote
Dramzes Posted January 23, 2024 Author Posted January 23, 2024 12 hours ago, andy1984 said: Primeval it is a town zone. check townzones xml an you will find it. change cordinates there to another place and you are done. do not delete town zone you will get error. oh man i am so stupid .... i was changing primeval from peace zone only... did not check townzone... thx a lot Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.