Teleport command touch-ups.

PopulaceCompanyWarp made to look more retail authentic.  Can't figure out how to make it not play the 'npc untargeted' sound though like retail.
Music command has second argument for transition type.  Added an overloaded function in Player.cs to support this.
Setappearance adjusted to work again on player targets.
DftWil updated to cover near everything.
Re-added shop-related luas that were removed for some reason.
This commit is contained in:
CuriousJorge 2022-02-05 13:56:58 -05:00
parent bad51717c2
commit 4fc5762d41
12 changed files with 1543 additions and 78 deletions

View file

@ -1,14 +1,17 @@
properties = {
permissions = 0,
parameters = "s",
parameters = "ss",
description =
[[
Plays music <id> to player.
!music <id>
!music <id> <transition_type>
]],
}
function onTrigger(player, argc, music)
function onTrigger(player, argc, music, transition)
music = tonumber(music) or 0;
player:ChangeMusic(music);
transition = tonumber(transition) or nil;
player:SendMessage(0x20, "", tostring(argc).." "..tostring(music).." "..tostring(transition));
player:ChangeMusic(music, transition);
end;

View file

@ -15,10 +15,12 @@ function onTrigger(player, argc, appearanceId)
local sender = "[setappearance] ";
app = tonumber(appearanceId) or 0;
player:SendMessage(messageID, sender, string.format("appearance %u", app));
--player:SendMessage(messageID, sender, string.format("appearance %u", app));
if player and player.target then
player.target.ChangeNpcAppearance(app);
targetActor = GetWorldManager():GetActorInWorld(player.currentTarget)
if targetActor then
targetActor.ChangeNpcAppearance(app);
player:SendMessage(messageID, sender, string.format("appearance %u", app));
end;