It's not seem little nonsense on frozen this functions?
public static final int ZONE_PVP = 1;
/** The Constant ZONE_PEACE. */
public static final int ZONE_PEACE = 2;
/** The Constant ZONE_SIEGE. */
public static final int ZONE_SIEGE = 4;
/** The Constant ZONE_MOTHERTREE. */
public static final int ZONE_MOTHERTREE = 8;
/** The Constant ZONE_CLANHALL. */
public static final int ZONE_CLANHALL = 16;
/** The Constant ZONE_UNUSED. */
public static final int ZONE_UNUSED = 32;
/** The Constant ZONE_NOLANDING. */
public static final int ZONE_NOLANDING = 64;
/** The Constant ZONE_WATER. */
public static final int ZONE_WATER = 128;
/** The Constant ZONE_JAIL. */
public static final int ZONE_JAIL = 256;
public static final int ZONE_EVENT = 257;
/** The Constant ZONE_MONSTERTRACK. */
public static final int ZONE_MONSTERTRACK = 512;
/** The Constant ZONE_SWAMP. */
public static final int ZONE_SWAMP = 1024;
/** The Constant ZONE_NOSUMMONFRIEND. */
public static final int ZONE_NOSUMMONFRIEND = 2048;
/** The Constant ZONE_OLY. */
public static final int ZONE_OLY = 4096;
/** The Constant ZONE_NOHQ. */
public static final int ZONE_NOHQ = 8192;
/** The Constant ZONE_DANGERAREA. */
public static final int ZONE_DANGERAREA = 16384;
/** The Constant ZONE_NOSTORE. */
public static final int ZONE_NOSTORE = 32768;
/** The Constant ZONE_MULTIFUNCTION. */
public static final int ZONE_MULTIFUNCTION = 67229;
public static final int ZONE_GRAND = 134458;
/** The _current zones. */
private int _currentZones = 0;
/**
* Checks if is inside zone.
* @param zone the zone
* @return true, if is inside zone
*/
public boolean isInsideZone(final int zone)
{
return (_currentZones & zone) != 0;
}
/**
* Sets the inside zone.
* @param zone the zone
* @param state the state
*/
public void setInsideZone(final int zone, final boolean state)
{
if (state)
{
_currentZones |= zone;
}
else if (isInsideZone(zone))
{
_currentZones ^= zone;
}
}
2 clients:
StyleA: Original client
test1: Unity client
Monster kills are displayed correctly on both clients. Soon it will be possible to kill mobs in a party on 2 different clients
I apologize for my incompetence. The ability to trade is limited only for builder 1. Ordinary characters can trade with each other, and this has nothing to do with auto loot.)
Question
wongerlt
It's not seem little nonsense on frozen this functions?
public static final int ZONE_PVP = 1; /** The Constant ZONE_PEACE. */ public static final int ZONE_PEACE = 2; /** The Constant ZONE_SIEGE. */ public static final int ZONE_SIEGE = 4; /** The Constant ZONE_MOTHERTREE. */ public static final int ZONE_MOTHERTREE = 8; /** The Constant ZONE_CLANHALL. */ public static final int ZONE_CLANHALL = 16; /** The Constant ZONE_UNUSED. */ public static final int ZONE_UNUSED = 32; /** The Constant ZONE_NOLANDING. */ public static final int ZONE_NOLANDING = 64; /** The Constant ZONE_WATER. */ public static final int ZONE_WATER = 128; /** The Constant ZONE_JAIL. */ public static final int ZONE_JAIL = 256; public static final int ZONE_EVENT = 257; /** The Constant ZONE_MONSTERTRACK. */ public static final int ZONE_MONSTERTRACK = 512; /** The Constant ZONE_SWAMP. */ public static final int ZONE_SWAMP = 1024; /** The Constant ZONE_NOSUMMONFRIEND. */ public static final int ZONE_NOSUMMONFRIEND = 2048; /** The Constant ZONE_OLY. */ public static final int ZONE_OLY = 4096; /** The Constant ZONE_NOHQ. */ public static final int ZONE_NOHQ = 8192; /** The Constant ZONE_DANGERAREA. */ public static final int ZONE_DANGERAREA = 16384; /** The Constant ZONE_NOSTORE. */ public static final int ZONE_NOSTORE = 32768; /** The Constant ZONE_MULTIFUNCTION. */ public static final int ZONE_MULTIFUNCTION = 67229; public static final int ZONE_GRAND = 134458; /** The _current zones. */ private int _currentZones = 0; /** * Checks if is inside zone. * @param zone the zone * @return true, if is inside zone */ public boolean isInsideZone(final int zone) { return (_currentZones & zone) != 0; } /** * Sets the inside zone. * @param zone the zone * @param state the state */ public void setInsideZone(final int zone, final boolean state) { if (state) { _currentZones |= zone; } else if (isInsideZone(zone)) { _currentZones ^= zone; } }
10 answers to this question
Recommended Posts