*Implement access_requirement table - by Iskander
- now check the requirements on teleport not only on areatrigger use - moved some columns from instance_template and areatrigger_teleport to access_requirement table --HG-- branch : trunk
This commit is contained in:
@@ -830,6 +830,20 @@ struct InstancePlayerBind
|
||||
InstancePlayerBind() : save(NULL), perm(false) {}
|
||||
};
|
||||
|
||||
struct AccessRequirement
|
||||
{
|
||||
uint8 levelMin;
|
||||
uint8 levelMax;
|
||||
uint32 item;
|
||||
uint32 item2;
|
||||
uint32 heroicKey;
|
||||
uint32 heroicKey2;
|
||||
uint32 quest;
|
||||
std::string questFailedText;
|
||||
uint32 heroicQuest;
|
||||
std::string heroicQuestFailedText;
|
||||
};
|
||||
|
||||
class TRINITY_DLL_SPEC PlayerTaxi
|
||||
{
|
||||
public:
|
||||
@@ -2052,6 +2066,7 @@ class TRINITY_DLL_SPEC Player : public Unit
|
||||
void SendRaidInfo();
|
||||
void SendSavedInstances();
|
||||
static void ConvertInstancesToGroup(Player *player, Group *group = NULL, uint64 player_guid = 0);
|
||||
bool Satisfy(AccessRequirement const*, uint32 target_map, bool report = false);
|
||||
|
||||
/*********************************************************/
|
||||
/*** GROUP SYSTEM ***/
|
||||
|
||||
Reference in New Issue
Block a user