mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[12195] Improve AreaTrigger teleport requirement checks
Implement AreaLockStatus concept by rsa Also drop basicly unneeded `areatrigger_teleport`.required_failed_text field. This concept is still in testing phase, please feedback results of some glitches that might exist! TODO: Use Player::GetAreaLockStatus or GetAreaTriggerLockStatus for other "CanEnter" checks as well. Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
7901613472
commit
9022705faf
22 changed files with 304 additions and 162 deletions
|
|
@ -3206,6 +3206,23 @@ enum ActivateTaxiReply
|
|||
ERR_TAXINOTSTANDING = 12
|
||||
};
|
||||
|
||||
enum AreaLockStatus
|
||||
{
|
||||
AREA_LOCKSTATUS_OK = 0,
|
||||
AREA_LOCKSTATUS_UNKNOWN_ERROR = 1,
|
||||
AREA_LOCKSTATUS_INSUFFICIENT_EXPANSION = 2,
|
||||
AREA_LOCKSTATUS_TOO_LOW_LEVEL = 3,
|
||||
AREA_LOCKSTATUS_TOO_HIGH_LEVEL = 4,
|
||||
AREA_LOCKSTATUS_RAID_LOCKED = 5,
|
||||
AREA_LOCKSTATUS_QUEST_NOT_COMPLETED = 6,
|
||||
AREA_LOCKSTATUS_MISSING_ITEM = 7,
|
||||
AREA_LOCKSTATUS_MISSING_DIFFICULTY = 8,
|
||||
AREA_LOCKSTATUS_ZONE_IN_COMBAT = 9,
|
||||
AREA_LOCKSTATUS_INSTANCE_IS_FULL = 10,
|
||||
AREA_LOCKSTATUS_NOT_ALLOWED = 11,
|
||||
AREA_LOCKSTATUS_HAS_BIND = 12,
|
||||
};
|
||||
|
||||
// we need to stick to 1 version or half of the stuff will work for someone
|
||||
// others will not and opposite
|
||||
// will only support WoW, WoW:TBC, WoW:WotLK and WoW:Cataclysm 4.3.4 client build 15595...
|
||||
|
|
@ -3219,4 +3236,14 @@ enum ActivateTaxiReply
|
|||
// that it not have expansion installed and reject
|
||||
#define MAX_EXPANSION 3
|
||||
|
||||
// Maxlevel for expansion
|
||||
enum MaxLevel
|
||||
{
|
||||
MAX_LEVEL_CLASSIC = 60,
|
||||
MAX_LEVEL_TBC = 70,
|
||||
MAX_LEVEL_WOTLK = 80,
|
||||
};
|
||||
|
||||
static const MaxLevel maxLevelForExpansion[MAX_EXPANSION + 1] = { MAX_LEVEL_CLASSIC, MAX_LEVEL_TBC, MAX_LEVEL_WOTLK };
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue