Add new methods. Closes https://github.com/ElunaLuaEngine/Eluna/pull/176 and https://github.com/ElunaLuaEngine/Eluna/issues/171
This commit is contained in:
@@ -3713,24 +3713,6 @@ namespace LuaPlayer
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Plays sound to [Player]
|
||||
*
|
||||
* See [Unit:PlayDirectSound]
|
||||
*
|
||||
* @param uint32 sound : entry of a sound
|
||||
*/
|
||||
int PlaySoundToPlayer(Eluna* /*E*/, lua_State* L, Player* player)
|
||||
{
|
||||
uint32 soundId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
SoundEntriesEntry const* soundEntry = sSoundEntriesStore.LookupEntry(soundId);
|
||||
if (!soundEntry)
|
||||
return 0;
|
||||
|
||||
player->PlayDirectSound(soundId, player);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempts to start the taxi/flying to the given pathID
|
||||
*
|
||||
@@ -3944,6 +3926,32 @@ namespace LuaPlayer
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts a cinematic for the [Player]
|
||||
*
|
||||
* @param uint32 CinematicSequenceId : entry of a cinematic
|
||||
*/
|
||||
int SendCinematicStart(Eluna* /*E*/, lua_State* L, Player* player)
|
||||
{
|
||||
uint32 CinematicSequenceId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
|
||||
player->SendCinematicStart(CinematicSequenceId);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Starts a movie for the [Player]
|
||||
*
|
||||
* @param uint32 MovieId : entry of a movie
|
||||
*/
|
||||
int SendMovieStart(Eluna* /*E*/, lua_State* L, Player* player)
|
||||
{
|
||||
uint32 MovieId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
|
||||
player->SendMovieStart(MovieId);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*int BindToInstance(Eluna* E, lua_State* L, Player* player)
|
||||
{
|
||||
player->BindToInstance();
|
||||
|
||||
Reference in New Issue
Block a user