Fixed work values not updating. GL UI now shows up though it isn't configured.

This commit is contained in:
Filip Maj 2017-06-24 16:58:02 -04:00
parent 186d5b5cc5
commit 8fb4910320
7 changed files with 33 additions and 15 deletions

View file

@ -3,25 +3,22 @@ require ("guildleve")
--DirectorId, GuildleveId, Aetheryte Location (6 or ~6), exMarkerX, exMarkerY, exMarkerZ
local guildleveId;
function init(thisDirector, glId)
guildleveId = glId;
guildleveData = GetGuildleveGamedata(glId);
function init(thisDirector)
guildleveData = GetGuildleveGamedata(thisDirector.guildleveId);
members = thisDirector:GetPlayerMembers();
if (members ~= nil and #members ~= 0) then
player = members[0];
player:SendGameMessage(GetWorldMaster(), 50036, 0x20, glId, player, 0); --"You have started the leve..."
player:SendGameMessage(GetWorldMaster(), 50036, 0x20, thisDirector.guildleveId, player, 0); --"You have started the leve..."
player:PlayAnimation(getGLStartAnimationFromSheet(guildleveData.borderId, guildleveData.plateId, false));
end
return "/Director/Guildleve/PrivateGLBattleDetectNormal", 0x4e25, glId, 6, 0, 0, 0;
return "/Director/Guildleve/PrivateGLBattleDetectNormal", 0x4e25, thisDirector.guildleveId, 6, 0, 0, 0;
end
function mainLoop(thisDirector)
wait(3)
thisDirector:StartGuildleve();
end