mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-22 02:26:07 +02:00
Added trigger name to all the scripts that had params. Implemented the Gridania opening stoper.
This commit is contained in:
parent
2048d8d188
commit
3162bedb17
23 changed files with 44 additions and 21 deletions
|
@ -24,7 +24,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Object/Aetheryte/AetheryteParent", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:runEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0);
|
||||
end
|
||||
|
||||
|
|
13
scripts/zones/166/npcs/openingStop_fstBtl03_03@0A600.lua
Normal file
13
scripts/zones/166/npcs/openingStop_fstBtl03_03@0A600.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
function onInstantiate(npc)
|
||||
return "/Chara/Npc/Object/OpeningStoperF0B1", false, false, false, false, false, 0x10A350, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
if (triggerName == "caution") then
|
||||
worldMaster = getWorldMaster();
|
||||
player:sendGameMessage(player, worldMaster, 34109, 0x20);
|
||||
elseif (triggerName == "exit") then
|
||||
getWorldManager():DoPlayerMoveInZone(player, 5);
|
||||
end
|
||||
player:endEvent();
|
||||
end
|
10
scripts/zones/166/zone.lua
Normal file
10
scripts/zones/166/zone.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
function onZoneInit(zone)
|
||||
end
|
||||
|
||||
function onZoneIn(zone, player)
|
||||
end
|
||||
|
||||
function onZoneOut(zone, player)
|
||||
end
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
--player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithFrithuric_002", nil, nil, nil); --LTW
|
||||
|
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:runEventFunction("askLogout", player);
|
||||
end
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
|
@ -2,7 +2,7 @@ function onInstantiate(npc)
|
|||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue