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
DISCORD :
utchiha_market
telegram
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha-market.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram
https://t.me/utchiha_market
SELLIX STORE :
https://utchiha-market.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
Our TOP advantages
✔Product: +400 pieces of accounts always in stock - delivery almost immediately, testing for your new ideas and creating kits and cards of any type.
✔Support: Help and resolution of issues related to login, emulators, etc. Instructions and guides on bypassing anti-fraud applications, replacing IP, geo, selfie logins and bypassing video verification.
✔Versatility: Individual kits for your order, drop in touch - additional verification procedures are not difficult. We will solve almost any account issue.
✔Security: Turnkey accounts, drops ❖European Union, UK, USA, etc.❖, product quality guarantee.
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
Link to comment
Share on other sites
7 answers to this question
Recommended Posts