mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-25 18:47:35 +00:00
[Quest API] Optionally parse EVENT_WARP
# Notes - Optionally parse this event instead of always doing so.
This commit is contained in:
+24
-15
@@ -43,13 +43,17 @@ void CheatManager::CheatDetected(CheatTypes type, glm::vec3 position1, glm::vec3
|
|||||||
zone->GetShortName()
|
zone->GetShortName()
|
||||||
);
|
);
|
||||||
LogCheat(fmt::runtime(message));
|
LogCheat(fmt::runtime(message));
|
||||||
std::string export_string = fmt::format(
|
|
||||||
"{} {} {}",
|
if (parse->PlayerHasQuestSub(EVENT_WARP)) {
|
||||||
position1.x,
|
const auto& export_string = fmt::format(
|
||||||
position1.y,
|
"{} {} {}",
|
||||||
position1.z
|
position1.x,
|
||||||
);
|
position1.y,
|
||||||
parse->EventPlayer(EVENT_WARP, m_target, export_string, 0);
|
position1.z
|
||||||
|
);
|
||||||
|
|
||||||
|
parse->EventPlayer(EVENT_WARP, m_target, export_string, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MQWarpAbsolute:
|
case MQWarpAbsolute:
|
||||||
@@ -72,14 +76,19 @@ void CheatManager::CheatDetected(CheatTypes type, glm::vec3 position1, glm::vec3
|
|||||||
zone->GetShortName()
|
zone->GetShortName()
|
||||||
);
|
);
|
||||||
LogCheat(fmt::runtime(message));
|
LogCheat(fmt::runtime(message));
|
||||||
std::string export_string = fmt::format(
|
|
||||||
"{} {} {}",
|
if (parse->PlayerHasQuestSub(EVENT_WARP)) {
|
||||||
position1.x,
|
const auto& export_string = fmt::format(
|
||||||
position1.y,
|
"{} {} {}",
|
||||||
position1.z
|
position1.x,
|
||||||
);
|
position1.y,
|
||||||
parse->EventPlayer(EVENT_WARP, m_target, export_string, 0);
|
position1.z
|
||||||
m_time_since_last_warp_detection.Start(2500);
|
);
|
||||||
|
|
||||||
|
parse->EventPlayer(EVENT_WARP, m_target, export_string, 0);;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_time_since_last_warp_detection.Start(2500)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MQWarpShadowStep:
|
case MQWarpShadowStep:
|
||||||
|
|||||||
Reference in New Issue
Block a user