mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
QuestMgr::movePCInstance converted to xyz_heading
This commit is contained in:
parent
c8063c31ed
commit
8b7a09dbc1
@ -2974,12 +2974,12 @@ XS(XS__MovePCInstance)
|
|||||||
|
|
||||||
if (items == 4)
|
if (items == 4)
|
||||||
{
|
{
|
||||||
quest_manager.MovePCInstance(zoneid, instanceid, x, y, z, 0.0f);
|
quest_manager.MovePCInstance(zoneid, instanceid, xyz_heading(x, y, z, 0.0f));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float heading = (float)SvNV(ST(5));
|
float heading = (float)SvNV(ST(5));
|
||||||
quest_manager.MovePCInstance(zoneid, instanceid, x, y, z, heading);
|
quest_manager.MovePCInstance(zoneid, instanceid, xyz_heading(x, y, z, heading));
|
||||||
}
|
}
|
||||||
|
|
||||||
XSRETURN_EMPTY;
|
XSRETURN_EMPTY;
|
||||||
|
|||||||
@ -2616,12 +2616,12 @@ void QuestManager::RemoveAllFromInstance(uint16 instance_id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QuestManager::MovePCInstance(int zone_id, int instance_id, float x, float y, float z, float heading)
|
void QuestManager::MovePCInstance(int zone_id, int instance_id, const xyz_heading& position)
|
||||||
{
|
{
|
||||||
QuestManagerCurrentQuestVars();
|
QuestManagerCurrentQuestVars();
|
||||||
if(initiator)
|
if(initiator)
|
||||||
{
|
{
|
||||||
initiator->MovePC(zone_id, instance_id, x, y, z, heading);
|
initiator->MovePC(zone_id, instance_id, position.m_X, position.m_Y, position.m_Z, position.m_Heading);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -223,7 +223,7 @@ public:
|
|||||||
//void RemoveGroupFromInstance(uint16 instance_id); //potentially useful but not implmented at this time.
|
//void RemoveGroupFromInstance(uint16 instance_id); //potentially useful but not implmented at this time.
|
||||||
//void RemoveRaidFromInstance(uint16 instance_id); //potentially useful but not implmented at this time.
|
//void RemoveRaidFromInstance(uint16 instance_id); //potentially useful but not implmented at this time.
|
||||||
void RemoveAllFromInstance(uint16 instance_id);
|
void RemoveAllFromInstance(uint16 instance_id);
|
||||||
void MovePCInstance(int zone_id, int instance_id, float x, float y, float z, float heading);
|
void MovePCInstance(int zone_id, int instance_id, const xyz_heading& position);
|
||||||
void FlagInstanceByGroupLeader(uint32 zone, int16 version);
|
void FlagInstanceByGroupLeader(uint32 zone, int16 version);
|
||||||
void FlagInstanceByRaidLeader(uint32 zone, int16 version);
|
void FlagInstanceByRaidLeader(uint32 zone, int16 version);
|
||||||
const char* varlink(char* perltext, int item_id);
|
const char* varlink(char* perltext, int item_id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user