Hey what i do wrong? all import good need get classid and if match then teleport to town.
@Override
protected void onEnter(Creature Creature)
{
Creature.setInsideZone(ZoneId.FLAG, true);
if (Creature instanceof Player)
{
Player player = Creature.getActingPlayer();
PvpFlagTaskManager.getInstance().remove(player);
noblesse.getEffects(player, player);
player.updatePvPFlag(1);
((Player) Creature).sendMessage("AUTO NOBLESS ON");
Creature.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true);
// THIS ZONE WRONG
if (player.getClassId() && 83)
player.teleToLocation(Rnd.get(82833, 83000),Rnd.get(148605, 148800),-3472, 0);
player.sendMessage("Your class is not allowed in the PvP zone.");
return;
}
}
error:
Bad operand types for binary operator '&&'
[javac] if (player.getClassId() && 83)
[javac] first type: ClassId
sell adena
l2rebon signature x1 - 1kk = 1 dollars
l2reborn x10 - 500kk = 4.7 dollars
E-Global x Lu4 - 1kk = 2.7 dollars
BOHPTS - x20-x500 TOP PRICE
DISCORD - GODDARDSHOP
TELEGRAM - MMOPROMO
Also on sale are Epic jewelry, Clothes at a very good price
For wholesale clients
We understand that favorable terms are especially important when dealing with large volumes.
That’s why we offer a flexible system for wholesale clients we can discuss pricing and provide personalized solutions tailored to your needs.
With us, you get not only a reliable service but also support focused on long-term cooperation.
We value partners who operate at scale and do everything possible to make it convenient and profitable for you to grow together with Vibe SMS.
Website link — https://vibe-sms.net/
Our Telegram channel — https://t.me/vibe_sms
We ready to post first part of Patchnotes!
To avoid delaying the patch notes, we’ve decided to split them into two parts.
Right now, we’re publishing the patch notes focused on balance changes (skill changes).
In the second part, we’ll share details about gameplay updates, world changes, activities, and more.
- Patchnotes (last post on topic)
https://forum.lineage2dex.com/threads/16724/#post-72291
Question
martuxas1
Hey what i do wrong? all import good need get classid and if match then teleport to town.
@Override protected void onEnter(Creature Creature) { Creature.setInsideZone(ZoneId.FLAG, true); if (Creature instanceof Player) { Player player = Creature.getActingPlayer(); PvpFlagTaskManager.getInstance().remove(player); noblesse.getEffects(player, player); player.updatePvPFlag(1); ((Player) Creature).sendMessage("AUTO NOBLESS ON"); Creature.setInsideZone(ZoneId.NO_SUMMON_FRIEND, true); // THIS ZONE WRONG if (player.getClassId() && 83) player.teleToLocation(Rnd.get(82833, 83000),Rnd.get(148605, 148800),-3472, 0); player.sendMessage("Your class is not allowed in the PvP zone."); return; } }
error:
Bad operand types for binary operator '&&' [javac] if (player.getClassId() && 83) [javac] first type: ClassId
7 answers to this question
Recommended Posts