mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
moveto converted to xyz_heading
This commit is contained in:
parent
9d6a89c65d
commit
04e24ddce4
@ -1392,7 +1392,7 @@ XS(XS__moveto)
|
||||
else
|
||||
saveguard = false;
|
||||
|
||||
quest_manager.moveto(x, y, z, h, saveguard);
|
||||
quest_manager.moveto(xyz_heading(x, y, z, h), saveguard);
|
||||
|
||||
XSRETURN_EMPTY;
|
||||
}
|
||||
|
||||
@ -421,15 +421,15 @@ void lua_pause(int duration) {
|
||||
}
|
||||
|
||||
void lua_move_to(float x, float y, float z) {
|
||||
quest_manager.moveto(x, y, z, 0, false);
|
||||
quest_manager.moveto(xyz_heading(x, y, z, 0.0f), false);
|
||||
}
|
||||
|
||||
void lua_move_to(float x, float y, float z, float h) {
|
||||
quest_manager.moveto(x, y, z, h, false);
|
||||
quest_manager.moveto(xyz_heading(x, y, z, h), false);
|
||||
}
|
||||
|
||||
void lua_move_to(float x, float y, float z, float h, bool save_guard_spot) {
|
||||
quest_manager.moveto(x, y, z, h, save_guard_spot);
|
||||
quest_manager.moveto(xyz_heading(x, y, z, h), save_guard_spot);
|
||||
}
|
||||
|
||||
void lua_path_resume() {
|
||||
|
||||
@ -1553,12 +1553,11 @@ void QuestManager::pause(int duration) {
|
||||
owner->CastToNPC()->PauseWandering(duration);
|
||||
}
|
||||
|
||||
void QuestManager::moveto(float x, float y, float z, float h, bool saveguardspot) {
|
||||
void QuestManager::moveto(const xyz_heading& position, bool saveguardspot) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
if (!owner || !owner->IsNPC())
|
||||
return;
|
||||
|
||||
auto position = xyz_heading(x,y,z,h);
|
||||
owner->CastToNPC()->MoveTo(position, saveguardspot);
|
||||
}
|
||||
|
||||
|
||||
@ -135,7 +135,7 @@ public:
|
||||
void start(int wp);
|
||||
void stop();
|
||||
void pause(int duration);
|
||||
void moveto(float x, float y, float z, float h, bool saveguardspot);
|
||||
void moveto(const xyz_heading& position, bool saveguardspot);
|
||||
void resume();
|
||||
void addldonpoints(int32 points, uint32 theme);
|
||||
void addldonwin(int32 wins, uint32 theme);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user