mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Repositioned LaNoscea and Shroud Aetherytes. Linked them up too. Teleporting to one now causes you to appear *near* it, and facing it.
This commit is contained in:
parent
844f21d9a4
commit
9505cd71be
7 changed files with 98 additions and 110 deletions
|
@ -21,6 +21,7 @@ eventGLJoin () - Ask to join party leader's leve
|
|||
|
||||
require ("global")
|
||||
require ("aetheryte")
|
||||
require ("utils")
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
|
@ -29,12 +30,19 @@ end
|
|||
function onEventStarted(player, aetheryte, triggerName)
|
||||
|
||||
aetheryteId = aetheryte:GetActorClassId();
|
||||
parentNode = aetheryteParentLinks[aetheryteId];
|
||||
menuChoice = callClientFunction(player, "eventAetheryteChildSelect", true, aetheryteChildLinks[aetheryteId], 100, 1);
|
||||
parentNode = aetheryteChildLinks[aetheryteId];
|
||||
menuChoice = callClientFunction(player, "eventAetheryteChildSelect", true, parentNode, 100, 1);
|
||||
|
||||
--Teleport
|
||||
if (menuChoice == 2) then
|
||||
printf("%ud", parentNode);
|
||||
destination = aetheryteTeleportPositions[parentNode];
|
||||
|
||||
if (destination ~= nil) then
|
||||
randoPos = getRandomPointInBand(destination[2], destination[4], 3, 5);
|
||||
rotation = getAngleFacing(randoPos.x, randoPos.y, destination[2], destination[4]);
|
||||
GetWorldManager():DoZoneChange(player, destination[1], nil, 0, 2, randoPos.x, destination[3], randoPos.y, rotation);
|
||||
end
|
||||
--Init Levequest
|
||||
elseif (menuChoice == -1) then
|
||||
doLevequestInit(player, aetheryte);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue