mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 20:57:47 +00:00
Forgot the aetheryte script.
This commit is contained in:
parent
c7acef20a9
commit
bfaa25cb39
1 changed files with 15 additions and 2 deletions
|
@ -26,6 +26,7 @@ eventGLJoin () - Ask to join party leader's leve
|
||||||
require ("global")
|
require ("global")
|
||||||
require ("aetheryte")
|
require ("aetheryte")
|
||||||
require ("utils")
|
require ("utils")
|
||||||
|
require ("guildleve")
|
||||||
|
|
||||||
function init(npc)
|
function init(npc)
|
||||||
return false, false, 0, 0;
|
return false, false, 0, 0;
|
||||||
|
@ -99,17 +100,29 @@ function onEventStarted(player, aetheryte, triggerName)
|
||||||
end
|
end
|
||||||
|
|
||||||
function doLevequestInit(player, aetheryte)
|
function doLevequestInit(player, aetheryte)
|
||||||
|
local worldMaster = GetWorldMaster();
|
||||||
::SELECT_LOOP::
|
::SELECT_LOOP::
|
||||||
unknown, glId = callClientFunction(player, "eventGLSelect", 0x0);
|
unknown, glId = callClientFunction(player, "eventGLSelect", 0x0);
|
||||||
if (glId ~= 0) then
|
if (glId ~= 0) then
|
||||||
::SELECT_DETAIL::
|
::SELECT_DETAIL::
|
||||||
|
guildleveData = GetGuildleveGamedata(glId);
|
||||||
|
|
||||||
|
if (guildleveData == nil) then
|
||||||
|
player:SendMessage(0x20, "", "An error has occured... aborting.");
|
||||||
|
return;
|
||||||
|
end
|
||||||
|
|
||||||
unknown, begin = callClientFunction(player, "eventGLSelectDetail", glId, 0xa, 0xf4241, 1000, 0, 0, 0, true, false);
|
unknown, begin = callClientFunction(player, "eventGLSelectDetail", glId, 0xa, 0xf4241, 1000, 0, 0, 0, true, false);
|
||||||
if (begin) then
|
if (begin) then
|
||||||
::SELECT_DIFFICULTY::
|
::SELECT_DIFFICULTY::
|
||||||
|
player:SendGameMessage(worldMaster, 50014, 0x20); --"Please select a difficulty level. This may be lowered later."
|
||||||
difficulty = callClientFunction(player, "eventGLDifficulty", glId);
|
difficulty = callClientFunction(player, "eventGLDifficulty", glId);
|
||||||
if (difficulty == nil) then goto SELECT_DETAIL; end
|
if (difficulty == nil) then goto SELECT_DETAIL; end
|
||||||
confirmResult = callClientFunction(player, "eventGLStart", glId, difficulty, 1, 10, 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():CreateDirector("Guildleve/PrivateGLBattleDetectNormal");
|
||||||
|
player:AddDirector(director);
|
||||||
|
director:StartDirector(true, glId)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
goto SELECT_LOOP;
|
goto SELECT_LOOP;
|
||||||
|
|
Loading…
Add table
Reference in a new issue