mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Added scripts for the inn keepers. Added default event conditions to almost all actors. Updated sql for actorClass, spawnLocations, and new zoneEntrances.
This commit is contained in:
1 parent
5723f77b1f
commit
65389e3362
106 files changed
+776
-750
No files matched your search
@@ -3,7 +3,9 @@ function init(npc)
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("welcomeTalk");
|
||||
player:sendMessage(0x20, "", "This PopulaceShopSalesman actor has no event set.")
|
||||
player:endEvent();
|
||||
--player:runEventFunction("welcomeTalk");
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
--[[
|
||||
|
||||
PartyInviteCommand Script
|
||||
|
||||
Handles what happens when you invite
|
||||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor, triggerName, name, arg1, arg2, arg3, actorId)
|
||||
|
||||
if (name ~= nil) then
|
||||
getWorldManager():CreateInvitePartyGroup(player, name);
|
||||
elseif (actorId ~= nil) then
|
||||
getWorldManager():CreateInvitePartyGroup(player, actorId);
|
||||
end
|
||||
|
||||
player:endCommand();
|
||||
|
||||
end
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -3,12 +3,12 @@ function onEventStarted(player, actor, triggerName)
|
||||
|
||||
man0u0Quest = getStaticActor("Man0u0");
|
||||
man0l0Quest = getStaticActor("Man0l0");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
|
||||
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtlMagic001");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
|
||||
|
||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
||||
--player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
||||
|
||||
end
|
||||
|
||||
@@ -18,11 +18,11 @@ function onBeginLogin(player)
|
||||
|
||||
--For Opening. Set Director and reset position incase d/c
|
||||
if (player:hasQuest(110001) == true) then
|
||||
player:setDirector("openingDirector", false);
|
||||
--player:setDirector("openingDirector", false);
|
||||
player.positionX = 0.016;
|
||||
player.positionY = 10.35;
|
||||
player.positionZ = -36.91;
|
||||
--player.positionZ = -20.91;
|
||||
--player.positionZ = -36.91;
|
||||
player.positionZ = -20.91;
|
||||
player.rotation = 0.025;
|
||||
player:getQuest(110001):ClearQuestData();
|
||||
player:getQuest(110001):ClearQuestFlags();
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
function onEventStarted(player, npc)
|
||||
defaultFst = getStaticActor("DftFst");
|
||||
player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_Desk", nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, blah, menuSelect)
|
||||
|
||||
if (menuSelect == 1) then
|
||||
getWorldManager():DoZoneChange(player, 13);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
function init(npc)
|
||||
return false, false, 0, 0, 0x141, 0xB85;
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
function onEventStarted(player, npc)
|
||||
defaultSea = getStaticActor("DftSea");
|
||||
player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, blah, menuSelect)
|
||||
|
||||
if (menuSelect == 1) then
|
||||
getWorldManager():DoZoneChange(player, 12);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
function onEventStarted(player, npc)
|
||||
defaultWil = getStaticActor("DftWil");
|
||||
player:runEventFunction("delegateEvent", player, defaultWil, "defaultTalkWithInn_Desk_2", nil, nil, nil); --BTN
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, blah, menuSelect)
|
||||
|
||||
if (menuSelect == 1) then
|
||||
getWorldManager():DoZoneChange(player, 11);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
@@ -1,9 +0,0 @@
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,18 @@
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
defaultFst = getStaticActor("DftFst");
|
||||
player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId, isExitYes)
|
||||
|
||||
if (isExitYes ~= nil and isExitYes == 1) then
|
||||
getWorldManager():DoZoneChange(player, 1);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
||||
File renamed without changes.
File renamed without changes.
Loaded 100 of 106 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user