mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Added party to Gridania opening, fixed BattleActionx18 and made it so x18 is used for packets with more than 10 targets. Changed how death works. Added respawn time and roam modifiers. Added TryAggro functions and moved aggroing out of roaming and helpplayers. Fixed high cpu usage in zone's OnUpdate function. Fixed work value in player update
This commit is contained in:
parent
520ae7a119
commit
1275c8b5da
61 changed files with 1226 additions and 223 deletions
|
@ -19,4 +19,9 @@ function onRoam(ally, contentGroupCharas)
|
|||
ally.neutral = false
|
||||
ally.animationId = 0
|
||||
allyGlobal.onCombatTick(ally, nil, nil, contentGroupCharas)
|
||||
end
|
||||
|
||||
|
||||
function tryAggro(ally, contentGroupCharas)
|
||||
allyGlobal.tryAggro(ally, contentGroupCharas)
|
||||
end
|
|
@ -13,10 +13,14 @@ function onCombatTick(ally, target, tick, contentGroupCharas)
|
|||
allyGlobal.onCombatTick(ally, target, tick, contentGroupCharas)
|
||||
end
|
||||
|
||||
function tryAggro(ally, contentGroupCharas)
|
||||
allyGlobal.tryAggro(ally, contentGroupCharas)
|
||||
end
|
||||
|
||||
function onRoam(ally, contentGroupCharas)
|
||||
ally.detectionType = 0xFF
|
||||
ally.isMovingToSpawn = false
|
||||
ally.neutral = false
|
||||
ally.animationId = 0
|
||||
allyGlobal.onCombatTick(ally, contentGroupCharas)
|
||||
--allyGlobal.onCombatTick(ally, contentGroupCharas)
|
||||
end
|
|
@ -7,10 +7,9 @@ end
|
|||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0g0Quest = player:GetQuest("Man0g0");
|
||||
print("hi");
|
||||
if (man0g0Quest ~= nil) then
|
||||
|
||||
print("hi2");
|
||||
print("Got Quest Man0g0");
|
||||
if (man0g0Quest ~= nil) then
|
||||
print("Man0g0Quest is not nil");
|
||||
if (triggerName == "pushDefault") then
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
|
@ -23,8 +22,8 @@ function onEventStarted(player, npc, triggerName)
|
|||
man0g0Quest:SaveData();
|
||||
player:GetDirector("OpeningDirector"):onTalkEvent(player, npc);
|
||||
--Was she talked to after papalymo?
|
||||
print("hi3");
|
||||
else
|
||||
print("Making content area");
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
|
||||
|
||||
player:EndEvent();
|
||||
|
@ -37,14 +36,15 @@ function onEventStarted(player, npc, triggerName)
|
|||
end
|
||||
|
||||
director = contentArea:GetContentDirector();
|
||||
player:AddDirector(director);
|
||||
player:AddDirector(director);
|
||||
director:StartDirector(false);
|
||||
|
||||
player:KickEvent(director, "noticeEvent", true);
|
||||
player:SetLoginDirector(director);
|
||||
|
||||
print("hi5");
|
||||
print("Content area and director made");
|
||||
GetWorldManager():DoZoneChangeContent(player, contentArea, 362.4087, 4, -703.8168, 1.5419, 16);
|
||||
print("Zone Change");
|
||||
return;
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent000_1", nil, nil, nil);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue