mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
onInit was added to all the scripts. Added code for all the Limsa opening event npcs.
This commit is contained in:
parent
bd4e4a293c
commit
95849e1c1c
90 changed files with 662 additions and 91 deletions
|
@ -1,5 +1,38 @@
|
|||
local initClassItems, initRaceItems;
|
||||
|
||||
function onBeginLogin(player)
|
||||
|
||||
--For Opening. Set Director and reset position incase d/c
|
||||
if (player:hasQuest(110001) == true) then
|
||||
--player:setDirector("openingDirector", false);
|
||||
player.positionX = 0.016;
|
||||
player.positionY = 10.35;
|
||||
--player.positionZ = -36.91;
|
||||
player.positionZ = -20.91;
|
||||
player.rotation = 0.025;
|
||||
player:getQuest(110001):ClearQuestData();
|
||||
player:getQuest(110001):ClearQuestFlags();
|
||||
elseif (player:hasQuest(110005) == true) then
|
||||
player:setDirector("openingDirector", false);
|
||||
player.positionX = 356.09;
|
||||
player.positionY = 3.74;
|
||||
player.positionZ = -701.62;
|
||||
player.rotation = -1.4;
|
||||
player:getQuest(110005):ClearQuestData();
|
||||
player:getQuest(110005):ClearQuestFlags();
|
||||
elseif (player:hasQuest(110009) == true) then
|
||||
player:setDirector("openingDirector", false);
|
||||
player.positionX = 12.63;
|
||||
player.positionY = 196.05;
|
||||
player.positionZ = 131.01;
|
||||
player.rotation = -1.34;
|
||||
player:getQuest(110009):ClearQuestData();
|
||||
player:getQuest(110009):ClearQuestFlags();
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
function onLogin(player)
|
||||
player:sendMessage(0x1D,"",">Callback \"onLogin\" for player script running.");
|
||||
|
||||
|
@ -7,8 +40,8 @@ function onLogin(player)
|
|||
player:sendMessage(0x1D,"",">PlayTime == 0, new player!");
|
||||
|
||||
initClassItems(player);
|
||||
initRaceItems(player);
|
||||
end
|
||||
initRaceItems(player);
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue