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:
Filip Maj 2016-06-12 21:30:47 -04:00
parent 5723f77b1f
commit 65389e3362
106 changed files with 776 additions and 750 deletions

View file

@ -0,0 +1,24 @@
function init(npc)
return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";
end
function onEventStarted(player, npc, triggerName)
player:runEventFunction("askLogout", player);
end
function onEventUpdate(player, npc, eventStep, menuOptionSelected)
if (menuOptionSelected == 1) then
player:endEvent();
return;
elseif (menuOptionSelected == 2) then
player:quitGame();
elseif (menuOptionSelected == 3) then
player:logout();
elseif (menuOptionSelected == 4) then
player:sendMessage(33, "", "Heck the bed");
end
player:endEvent();
end

View 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

View file

@ -0,0 +1,9 @@
function init(npc)
return "/Chara/Npc/Object/ObjectItemStorage", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";
end
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
end

View file

@ -0,0 +1,9 @@
function init(npc)
return "/Chara/Npc/Populace/PopulaceCutScenePlayer", false, false, false, false, false, 0x107B38, false, false, 0, 1, "TEST";
end
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
end

View file

@ -0,0 +1,9 @@
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
end
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
end