mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 20:57:47 +00:00

Etc5u1 & Etc5g1 - Added handling for the Ul'dah Inn NPC to re-issue an item as needed, otherwise play his other dialog. Music - Made it play current zone's music if no id present.
17 lines
No EOL
410 B
Lua
17 lines
No EOL
410 B
Lua
properties = {
|
|
permissions = 0,
|
|
parameters = "ss",
|
|
description =
|
|
[[
|
|
Plays music <id> to player, otherwise resets to the zone's music.
|
|
!music
|
|
!music <id>
|
|
!music <id> <transition_type>
|
|
]],
|
|
}
|
|
|
|
function onTrigger(player, argc, music, transition)
|
|
music = tonumber(music) or player.currentArea.bgmDay or 0;
|
|
transition = tonumber(transition) or nil;
|
|
player:ChangeMusic(music, transition);
|
|
end; |