mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-25 06:07:46 +00:00
Opening changes
This commit is contained in:
parent
92de857cda
commit
460722d3d5
7 changed files with 65 additions and 25 deletions
|
@ -640,7 +640,8 @@ namespace FFXIVClassic_Map_Server
|
|||
battleNpc.dropListId = reader.GetUInt32("dropListId");
|
||||
battleNpc.spellListId = reader.GetUInt32("spellListId");
|
||||
battleNpc.skillListId = reader.GetUInt32("skillListId");
|
||||
|
||||
battleNpc.SetMaxHP(1000);
|
||||
battleNpc.SetHP(1000);
|
||||
battleNpc.SetBattleNpcId(reader.GetUInt32("bnpcId"));
|
||||
battleNpc.CalculateBaseStats();
|
||||
battleNpc.RecalculateStats();
|
||||
|
|
|
@ -603,7 +603,6 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
{
|
||||
if (GetMod((uint)Modifier.Hp) != 0)
|
||||
{
|
||||
|
||||
}
|
||||
// todo: recalculate stats and crap
|
||||
updateFlags |= ActorUpdateFlags.HpTpMp;
|
||||
|
|
|
@ -1,29 +1,33 @@
|
|||
require ("global")
|
||||
require ("modifiers")
|
||||
|
||||
function onCreate(starterPlayer, contentArea, director)
|
||||
--papalymo = contentArea:SpawnActor(2290005, "papalymo", 365.89, 4.0943, -706.72, -0.718);
|
||||
--yda = contentArea:SpawnActor(2290006, "yda", 365.266, 4.122, -700.73, 1.5659);
|
||||
--yda = GetWorldManager().SpawnBattleNpcById(6, contentArea);
|
||||
--papalymo = GetWorldManager().SpawnBattleNpcById(7, contentArea);
|
||||
|
||||
--mob1 = GetWorldManager().SpawnBattleNpcById(3, contentArea);
|
||||
--mob2 = GetWorldManager().SpawnBattleNpcById(4, contentArea);
|
||||
--mob3 = GetWorldManager().SpawnBattleNpcById(5, contentArea);
|
||||
---yda:ChangeState(2);
|
||||
|
||||
--mob1 = contentArea:SpawnActor(2201407, "mob1", 374.427, 4.4, -698.711, -1.942);
|
||||
--mob2 = contentArea:SpawnActor(2201407, "mob2", 375.377, 4.4, -700.247, -1.992);
|
||||
--mob3 = contentArea:SpawnActor(2201407, "mob3", 375.125, 4.4, -703.591, -1.54);
|
||||
yda = GetWorldManager().SpawnBattleNpcById(6, contentArea);
|
||||
papalymo = GetWorldManager().SpawnBattleNpcById(7, contentArea);
|
||||
yda:ChangeState(2);
|
||||
mob1 = GetWorldManager().SpawnBattleNpcById(3, contentArea);
|
||||
mob2 = GetWorldManager().SpawnBattleNpcById(4, contentArea);
|
||||
mob3 = GetWorldManager().SpawnBattleNpcById(5, contentArea);
|
||||
starterPlayer.currentParty.members:Add(yda.actorId);
|
||||
starterPlayer.currentParty.members:Add(papalymo.actorId);
|
||||
starterPlayer:SetMod(modifiersGlobal.MinimumHpLock, 1);
|
||||
|
||||
--openingStoper = contentArea:SpawnActor(1090384, "openingstoper", 356.09, 3.74, -701.62, -1.41);
|
||||
|
||||
--director:AddMember(starterPlayer);
|
||||
--director:AddMember(director);
|
||||
-- director:AddMember(papalymo);
|
||||
--director:AddMember(yda);
|
||||
--director:AddMember(mob1);
|
||||
--director:AddMember(mob2);
|
||||
--director:AddMember(mob3);
|
||||
openingStoper = contentArea:SpawnActor(1090384, "openingstoper", 356.09, 3.74, -701.62, -1.41);
|
||||
|
||||
director:AddMember(starterPlayer);
|
||||
director:AddMember(director);
|
||||
director:AddMember(papalymo);
|
||||
director:AddMember(yda);
|
||||
director:AddMember(mob1);
|
||||
director:AddMember(mob2);
|
||||
director:AddMember(mob3);
|
||||
|
||||
--director:StartContentGroup();
|
||||
|
||||
|
|
|
@ -13,10 +13,10 @@ end
|
|||
function onCreateContentArea(players, director, contentArea, contentGroup)
|
||||
|
||||
local worldManager = GetWorldManager();
|
||||
|
||||
yda = GetWorldManager().SpawnBattleNpcById(6, contentArea);
|
||||
papalymo = GetWorldManager().SpawnBattleNpcById(7, contentArea);
|
||||
|
||||
--[[
|
||||
--yda = GetWorldManager().SpawnBattleNpcById(6, contentArea);
|
||||
--papalymo = GetWorldManager().SpawnBattleNpcById(7, contentArea);
|
||||
--yda:ChangeState(2);
|
||||
mob1 = GetWorldManager().SpawnBattleNpcById(3, contentArea);
|
||||
mob2 = GetWorldManager().SpawnBattleNpcById(4, contentArea);
|
||||
mob3 = GetWorldManager().SpawnBattleNpcById(5, contentArea);
|
||||
|
@ -47,7 +47,6 @@ function onCreateContentArea(players, director, contentArea, contentGroup)
|
|||
print("shittttt2");
|
||||
director:AddMember(player)
|
||||
print("shittttt1");
|
||||
--GetWorldManager():DoZoneChangeContent(player, contentArea, 362.4087, 4, -703.8168, 1.5419, 16);
|
||||
end;
|
||||
print("shit")
|
||||
director:AddMember(director);
|
||||
|
@ -58,7 +57,7 @@ function onCreateContentArea(players, director, contentArea, contentGroup)
|
|||
print("shit6")
|
||||
director:AddMember(mob3);
|
||||
print("dicks")
|
||||
|
||||
]]
|
||||
director:StartContentGroup();
|
||||
end
|
||||
|
||||
|
|
19
data/scripts/spells/blizzara.lua
Normal file
19
data/scripts/spells/blizzara.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
function onSpellPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk")
|
||||
|
||||
action.param = damage;
|
||||
if target.hateContainer then
|
||||
target.hateContainer.AddBaseHate(caster);
|
||||
target.hateContainer.UpdateHate(caster, damage);
|
||||
end;
|
||||
return damage;
|
||||
end;
|
18
data/scripts/spells/thunder.lua
Normal file
18
data/scripts/spells/thunder.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
function onSpellPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk")
|
||||
|
||||
if target.hateContainer then
|
||||
target.hateContainer.AddBaseHate(caster);
|
||||
target.hateContainer.UpdateHate(caster, damage);
|
||||
end;
|
||||
return damage;
|
||||
end;
|
Loading…
Add table
Reference in a new issue