mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
Changed to Tutorial GL script as that is the correct one for our test GL.
This commit is contained in:
parent
c78fa033af
commit
c42f1a08de
2 changed files with 26 additions and 1 deletions
|
@ -120,7 +120,7 @@ function doLevequestInit(player, aetheryte)
|
||||||
if (difficulty == nil) then goto SELECT_DETAIL; end
|
if (difficulty == nil) then goto SELECT_DETAIL; end
|
||||||
confirmResult = callClientFunction(player, "eventGLStart", glId, difficulty, 1, guildleveData.favorCount, 20, 0, 0, 0, 0);
|
confirmResult = callClientFunction(player, "eventGLStart", glId, difficulty, 1, guildleveData.favorCount, 20, 0, 0, 0, 0);
|
||||||
if (confirmResult == nil) then goto SELECT_DIFFICULTY; else
|
if (confirmResult == nil) then goto SELECT_DIFFICULTY; else
|
||||||
director = player:GetZone():CreateGuildleveDirector("Guildleve/PrivateGLBattleDetectNormal", glId);
|
director = player:GetZone():CreateGuildleveDirector("Guildleve/PrivateGLBattleTutorial", glId);
|
||||||
player:AddDirector(director);
|
player:AddDirector(director);
|
||||||
director:StartDirector(true, glId)
|
director:StartDirector(true, glId)
|
||||||
end
|
end
|
||||||
|
|
25
data/scripts/directors/Guildleve/PrivateGLBattleTutorial.lua
Normal file
25
data/scripts/directors/Guildleve/PrivateGLBattleTutorial.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
require ("global")
|
||||||
|
require ("guildleve")
|
||||||
|
|
||||||
|
--DirectorId, GuildleveId, Aetheryte Location (6 or ~6), exMarkerX, exMarkerY, exMarkerZ
|
||||||
|
|
||||||
|
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, thisDirector.guildleveId, player, 0); --"You have started the leve..."
|
||||||
|
player:PlayAnimation(getGLStartAnimationFromSheet(guildleveData.borderId, guildleveData.plateId, false));
|
||||||
|
end
|
||||||
|
|
||||||
|
return "/Director/Guildleve/PrivateGLBattleTutorial", 0x4e25, thisDirector.guildleveId, 6, 0, 0, 0;
|
||||||
|
end
|
||||||
|
|
||||||
|
function mainLoop(thisDirector)
|
||||||
|
|
||||||
|
wait(2)
|
||||||
|
thisDirector:StartGuildleve();
|
||||||
|
thisDirector:SyncAllInfo();
|
||||||
|
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue