mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -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:
parent
5723f77b1f
commit
65389e3362
@ -3,7 +3,9 @@ function init(npc)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function onEventStarted(player, npc)
|
function onEventStarted(player, npc)
|
||||||
player:runEventFunction("welcomeTalk");
|
player:sendMessage(0x20, "", "This PopulaceShopSalesman actor has no event set.")
|
||||||
|
player:endEvent();
|
||||||
|
--player:runEventFunction("welcomeTalk");
|
||||||
end
|
end
|
||||||
|
|
||||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||||
|
19
data/scripts/commands/PartyInviteCommand.lua
Normal file
19
data/scripts/commands/PartyInviteCommand.lua
Normal file
@ -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
|
@ -3,12 +3,12 @@ function onEventStarted(player, actor, triggerName)
|
|||||||
|
|
||||||
man0u0Quest = getStaticActor("Man0u0");
|
man0u0Quest = getStaticActor("Man0u0");
|
||||||
man0l0Quest = getStaticActor("Man0l0");
|
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, "processTtrBtlMagic001");
|
||||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
|
||||||
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
|
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
|
||||||
|
|
||||||
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
--player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
@ -18,11 +18,11 @@ function onBeginLogin(player)
|
|||||||
|
|
||||||
--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) then
|
if (player:hasQuest(110001) == true) then
|
||||||
player:setDirector("openingDirector", false);
|
--player:setDirector("openingDirector", false);
|
||||||
player.positionX = 0.016;
|
player.positionX = 0.016;
|
||||||
player.positionY = 10.35;
|
player.positionY = 10.35;
|
||||||
player.positionZ = -36.91;
|
--player.positionZ = -36.91;
|
||||||
--player.positionZ = -20.91;
|
player.positionZ = -20.91;
|
||||||
player.rotation = 0.025;
|
player.rotation = 0.025;
|
||||||
player:getQuest(110001):ClearQuestData();
|
player:getQuest(110001):ClearQuestData();
|
||||||
player:getQuest(110001):ClearQuestFlags();
|
player:getQuest(110001):ClearQuestFlags();
|
||||||
|
15
data/scripts/unique/fst0Town01/PopulaceStandard/vkorolon.lua
Normal file
15
data/scripts/unique/fst0Town01/PopulaceStandard/vkorolon.lua
Normal file
@ -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
|
15
data/scripts/unique/sea0Town01/PopulaceStandard/mytesyn.lua
Normal file
15
data/scripts/unique/sea0Town01/PopulaceStandard/mytesyn.lua
Normal file
@ -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
|
|
18
data/scripts/zones1/244/npcs/objInnDoor_01@0F400.lua
Normal file
18
data/scripts/zones1/244/npcs/objInnDoor_01@0F400.lua
Normal file
@ -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
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user