Fixed dismount message on rentals.

This commit is contained in:
Filip Maj 2019-07-25 20:00:26 -04:00
parent 02e41f6103
commit 94d1915acb
2 changed files with 7 additions and 48 deletions

View file

@ -29,10 +29,14 @@ function onEventStarted(player, actor, triggerName, isGoobbue)
worldMaster = GetWorldMaster();
if (player:GetMountState() == 1) then
player:SendGameMessage(player, worldMaster, 26003, 0x20);
if (player.rentalExpireTime != 0) then
player:SendGameMessage(player, worldMaster, 26004, 0x20); --You dismount.
else
player:SendGameMessage(player, worldMaster, 26021, 0x20);
if (player:GetMountState() == 1) then
player:SendGameMessage(player, worldMaster, 26003, 0x20); --You dismount X.
else
player:SendGameMessage(player, worldMaster, 26021, 0x20); --You dismount your Gobbue.
end
end
player:SetMountState(0);