Skip to content

Commit

Permalink
Add note about Moghouse visit client limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Feb 8, 2025
1 parent 0859794 commit d0c1177
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions scripts/globals/moghouse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,27 @@ xi.moghouse.trySetMusic = function(player)
end

xi.moghouse.visitationNPCOnTrigger = function(player, npc, csid, ahtUrhganArg)
if player:getPartySize() > 1 then
for _, member in ipairs(player:getParty()) do
if member:getID() == 1 and member:isInMogHouse() then
player:printToPlayer(string.format("Client limitation: Players with ID 1 (%s) seemingly cannot be visited in their Mog House", member:getName()), xi.msg.channel.SYSTEM_3, '')
end
end
end

player:startEvent(csid, player:getNation(), ahtUrhganArg)
end

xi.moghouse.visitationNPCOnEventFinish = function(player, csid, option, visitationCSID)
if csid ~= visitationCSID then
if option == 0 or option == utils.EVENT_CANCELLED_OPTION then
return
end

if player:getPartySize() < 2 then
if csid ~= visitationCSID then
return
end

-- TODO: Does this support alliance?
if option < 1 or option > 6 then
if player:getPartySize() < 2 then
return
end

Expand Down

0 comments on commit d0c1177

Please sign in to comment.