mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
New player event: PLAYER_EVENT_ON_PET_ADDED_TO_WORLD (#3)
Co-authored-by: UltraNix <ultranix@gmail.com>
This commit is contained in:
@@ -362,10 +362,10 @@ namespace LuaGlobalFunctions
|
||||
* Low GUID is an ID to distinct the objects of the same type.
|
||||
*
|
||||
* [Player] and [Creature] for example can have the same low GUID but not GUID.
|
||||
*
|
||||
*
|
||||
* On TrinityCore all low GUIDs are different for all objects of the same type.
|
||||
* For example creatures in instances are assigned new GUIDs when the Map is created.
|
||||
*
|
||||
*
|
||||
* On MaNGOS and cMaNGOS low GUIDs are unique only on the same map.
|
||||
* For example creatures in instances use the same low GUID assigned for that spawn in the database.
|
||||
* This is why to identify a creature you have to know the instanceId and low GUID. See [Map:GetIntstanceId]
|
||||
@@ -700,6 +700,7 @@ namespace LuaGlobalFunctions
|
||||
* // UNUSED = 40, // (event, player)
|
||||
* // UNUSED = 41, // (event, player)
|
||||
* PLAYER_EVENT_ON_COMMAND = 42, // (event, player, command) - player is nil if command used from console. Can return false
|
||||
* PLAYER_EVENT_ON_PET_ADDED_TO_WORLD = 43, // (event, player, pet)
|
||||
* };
|
||||
* </pre>
|
||||
*
|
||||
@@ -2273,7 +2274,7 @@ namespace LuaGlobalFunctions
|
||||
|
||||
/**
|
||||
* Adds a taxi path to a specified map, returns the used pathId.
|
||||
*
|
||||
*
|
||||
* Note that the first taxi point needs to be near the player when he starts the taxi path.
|
||||
* The function should also be used only **once** per path added so use it on server startup for example.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user