From bf6c5b3ee6adf507412f3850e844e8cda017c0e5 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 14 Jan 2010 14:05:56 -0700 Subject: [PATCH] * Add support for waypoint wisp's level to show the point of the waypoint * Author Kaelima * Thanks Malcrom for the idea --HG-- branch : trunk --- sql/updates/7037_world_creature_template.sql | 7 +++++++ src/game/Level2.cpp | 1 + 2 files changed, 8 insertions(+) create mode 100644 sql/updates/7037_world_creature_template.sql diff --git a/sql/updates/7037_world_creature_template.sql b/sql/updates/7037_world_creature_template.sql new file mode 100644 index 0000000000..f886753258 --- /dev/null +++ b/sql/updates/7037_world_creature_template.sql @@ -0,0 +1,7 @@ +-- Usually creature_template changes MUST GO to TDB +-- However, this is the one exception ... the GM waypoint +-- DO NOT REMOVE THIS FROM CORE REPO this is part of the core :) +-- Set Waypoint (Only GM can see it) so health is 1 from levels 1 - 80 +UPDATE `creature_template` SET `maxlevel`=80,`Health_mod`=0.0125 WHERE `entry`=1; +-- Set Waypoint (Only GM can see it) so it can also show altitude +UPDATE `creature_template` SET InhabitType=7 WHERE `entry`=1; diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index f93b7fc326..28179568a2 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -3058,6 +3058,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args) { wpCreature->SetDisplayId(target->GetDisplayId()); wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5); + wpCreature->SetLevel(point); } } while( result->NextRow() );