Jump to content
  • 0

Add Point pvp in arena zone


Question

10 answers to this question

Recommended Posts

  • 0
Posted

L2Arenazone.java:

	character.setInsideZone(L2Character.ZONE_PVP, TRUE);

 

Just copy/paste my posts won't help you...

To author, what you wanna do?

  • 0
Posted

I want :

 

 

ex:  Coliseum ( zone arena )  don't give pvp point after a kill

 

 

i want :

i kill a player at Coliseum , i have a PvP point

i want just Add Point pvp in arena zone

  • 0
Posted

L2Arenazone.java:

	character.setInsideZone(L2Character.ZONE_PVP, TRUE);

 

This should works there...

 

In L2ArenaZone.java

  • 0
Posted
* 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 com.end.gameserver.model.zone.type;

 

import com.end.gameserver.model.actor.L2Character;

import com.end.gameserver.model.actor.instance.L2PcInstance;

import com.end.gameserver.model.zone.L2ZoneType;

import com.end.gameserver.network.SystemMessageId;

 

/**

* A PVP Zone

* @author durgus

*/

public class L2ArenaZone extends L2ZoneType

{

public L2ArenaZone(int id)

{

super(id);

}

 

@Override

protected void onEnter(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

protected void onExit(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, false);

}

 

@Override

public void onDieInside(L2Character character)

{

}

 

@Override

public void onReviveInside(L2Character character)

{

}

}

 

 

Don't work

 

* 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 com.end.gameserver.model.zone.type;

 

import com.end.gameserver.model.actor.L2Character;

import com.end.gameserver.model.actor.instance.L2PcInstance;

import com.end.gameserver.model.zone.L2ZoneType;

import com.end.gameserver.network.SystemMessageId;

 

/**

* A PVP Zone

* @author durgus

*/

public class L2ArenaZone extends L2ZoneType

{

public L2ArenaZone(int id)

{

super(id);

}

 

@Override

protected void onEnter(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.ENTERED_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

protected void onExit(L2Character character)

{

if (character instanceof L2PcInstance)

{

if (!character.isInsideZone(L2Character.ZONE_PVP))

{

character.sendPacket(SystemMessageId.LEFT_COMBAT_ZONE);

}

}

 

character.setInsideZone(L2Character.ZONE_PVP, true);

}

 

@Override

public void onDieInside(L2Character character)

{

}

 

@Override

public void onReviveInside(L2Character character)

{

}

}

 

don't work too

  • 0
Posted

if you want to make it right you need a manager.

 

You can do it from l2pcinstance 

 

// Check if the L2PcInstance is in an arena or a siege area

if (isInsideZone(ZONE_PVP) && ((L2PcInstance) attacker).isInsideZone(ZONE_PVP))

return true;

{

addPoints(getCharId(), (getLevel() / 2) + Rnd.get(-5, 5));

}

 

 

 

 

 

// If in Arena, do nothing

if (isInsideZone(ZONE_PVP) || targetPlayer.isInsideZone(ZONE_PVP))

return;

{

addPoints(getCharId(), (getLevel() / 2) + Rnd.get(-5, 5));

}

 

 

not tested but you should see how the raidboss points are working and you will fix it easy...

Guest
This topic is now closed to further replies.


  • Posts

    • I’m looking for screenshots of the mini-games that used in web panels. I found images the Lucky Wheel and its almost finished.  I remember there was a dice game and another one with levels/TOI Floors etc that ive seen on different sites, but i cant find them now. If anyone’s willing to help, please share a screenshot of the game.       
    • Hi, can you update the geodata link? Thanks
    • any public server using mobius epilogue files?
    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
    • 新品上线! 提供高级订阅账号,支持热门AI服务:Gemini Pro 和 Perplexity AI。 ➡ Gemini Pro 订阅 + 2TB 谷歌云存储(绑定您的 Google 账号,有效期1年)| 需要访问您的 Google 账号 | 价格:6美元起 ➡ Perplexity AI Pro 订阅(绑定您的账号,有效期1年)| 需要访问您的账号 | 价格:6美元起 欢迎通过我们的网站或 Telegram 机器人购买! 有效链接: 数字商品商店(网站):前往 商店 Telegram 机器人:前往 其他服务: 购买 Telegram Stars 的机器人:前往 SMM 面板:前往 – 推广您的社交媒体账号。 以下是我们平台最新的促销与特别优惠列表: 1. 促销码 OCTOBER2025(8% 折扣),适用于十月期间在我们的网站或机器人中购物!首次购买可使用促销码 SOCNET(15% 折扣)。 2. 获取1美元余额或10–20%折扣 —— 注册后在我们网站的论坛帖子中留言,格式为:"SEND ME BONUS, MY USERNAME IS..."。 3. 首次试用 SMM 面板即可获得1美元奖励 —— 只需在我们网站(支持中心)提交主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买 Stars 的机器人中赠送 Telegram Stars! 新闻: ➡ Telegram 频道:https://t.me/accsforyou_shop✅ ➡ WhatsApp 频道:https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord 服务器:https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram:https://t.me/socnet_support✅ ➡ WhatsApp:https://wa.me/79051904467✅ ➡ Discord:socnet_support ✅ ➡ ✉ 邮箱:solomonbog@socnet.store ✅
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock