Quest fixes

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.
This commit is contained in:
CuriousJorge 2022-03-16 18:52:02 -04:00
parent 74713f3dd6
commit 4494b30285
3 changed files with 54 additions and 77 deletions

View file

@ -3,15 +3,15 @@ properties = {
parameters = "ss",
description =
[[
Plays music <id> to player.
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 0;
music = tonumber(music) or player.currentArea.bgmDay or 0;
transition = tonumber(transition) or nil;
player:SendMessage(0x20, "", tostring(argc).." "..tostring(music).." "..tostring(transition));
player:ChangeMusic(music, transition);
end;