mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Fixed up some lua scripts. Fleshed out the dream stuff for Hildie quests. NOTE: Finish player.lua as it has pseudo code.
This commit is contained in:
parent
c3b4735cc5
commit
5c0d2c1d7f
7 changed files with 84 additions and 21 deletions
|
@ -3,7 +3,7 @@ require("global");
|
|||
local initClassItems, initRaceItems;
|
||||
|
||||
function onBeginLogin(player)
|
||||
--New character, set the initial quest
|
||||
-- New character, set the initial quest
|
||||
if (player:GetPlayTime(false) == 0) then
|
||||
initialTown = player:GetInitialTown();
|
||||
if (initialTown == 1 and player:HasQuest(110001) == false) then
|
||||
|
@ -18,8 +18,29 @@ function onBeginLogin(player)
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
-- Set Dream Packet if waking up in the inn
|
||||
if (player.CurrentArea.ZoneId == 244) then
|
||||
local dreamCode = 35;
|
||||
|
||||
-- In Plain Sight wakeup dream
|
||||
if (player:HasItem(10011243) and not player:HasQuest(110829)) then
|
||||
dreamCode = 1;
|
||||
-- The Usual Suspect wakeup dream
|
||||
elseif (player:HasItem(10011252) and not player:HasQuest(110849)) then
|
||||
dreamCode = 2;
|
||||
-- Nael Van Darnus nightmare
|
||||
elseif (player:???) then
|
||||
dreamCode = 20;
|
||||
-- Random item
|
||||
elseif (player:???) then
|
||||
dreamCode = math.random(21, 33);
|
||||
end
|
||||
|
||||
player:SetLoginDreamCode(dreamCode);
|
||||
end
|
||||
|
||||
--For Opening. Set Director and reset position incase d/c
|
||||
-- For Opening. Set Director and reset position incase d/c
|
||||
if (player:HasQuest(110001) == true and player.CurrentArea.ZoneId == 193) then
|
||||
director = player.CurrentArea:CreateDirector("OpeningDirector", false);
|
||||
player:AddDirector(director);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue