* Add support for waypoint wisp's level to show the point of the waypoint

* Author Kaelima
* Thanks Malcrom for the idea

--HG--
branch : trunk
This commit is contained in:
Brian
2010-01-14 14:05:56 -07:00
parent a428293dae
commit bf6c5b3ee6
2 changed files with 8 additions and 0 deletions
@@ -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;
+1
View File
@@ -3058,6 +3058,7 @@ bool ChatHandler::HandleWpShowCommand(const char* args)
{ {
wpCreature->SetDisplayId(target->GetDisplayId()); wpCreature->SetDisplayId(target->GetDisplayId());
wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5); wpCreature->SetFloatValue(OBJECT_FIELD_SCALE_X, 0.5);
wpCreature->SetLevel(point);
} }
} }
while( result->NextRow() ); while( result->NextRow() );