Added back loading defaulttalk npcs through script. Should speed up warps now! Added loading mapobj ifno through a db table, removing the need for unique scripts. Deleted ported mapobj scripts.

This commit is contained in:
Filip Maj 2022-03-03 19:34:33 -05:00
parent b773098abf
commit 2cb6a9f6bd
74 changed files with 49 additions and 267 deletions

View file

@ -24,13 +24,6 @@ end
function onEventStarted(player, npc, eventType, eventName)
local chosenQuest = nil;
print(tostring(eventType));
print(tostring(eventType));
print(tostring(eventType));
print(tostring(eventType));
print(tostring(eventType));
print(tostring(eventType));
print(tostring(eventType));
if (eventType == 1) then
local defaultTalk = player:GetDefaultTalkQuest(npc);
local tutorialTalk = player:GetTutorialQuest(npc);

View file

@ -128,13 +128,13 @@ function onTalk(player, quest, npc, eventName)
player:EndEvent();
end
function onEmote(player, quest, npc, emoteId, eventName)
function onEmote(player, quest, npc, eventName)
local npcClassId = npc.GetActorClassId();
local seq = quest:GetSequence();
local data = quest:GetData();
local incCounter = false;
if (seq == SEQ_000 and emoteId == 123) then
if (seq == SEQ_000 and eventName == "emoteDefault1") then
if (npcClassId == AERGWNYT) then
if (not data:GetFlag(FLAG_TALKED_AERGWNYT)) then
callClientFunction(player, "delegateEvent", player, quest, "processEventAergwynt");

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0x141, 0xcde;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0x187, 0x2;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB84;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB83;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB81;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB7D;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x14b, 0x14aa;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB7E;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB80;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB7F;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB82;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x96C;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x96A;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x96D;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x970;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x974;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x972;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x83, 0x1B8E;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x83, 0x1B89;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x83, 0x1B90;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x976;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x954;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x956;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x952;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x958;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x960;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x95A;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x95E;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x95C;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x96D;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x94C;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x94E;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x94A;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x950;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x944;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x946;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x942;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x948;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x968;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x962;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x79, 0x966;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0xC4, 0x1C8;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0x187, 0x2;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5142, 323;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5143, 323;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5142, 326;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5143, 326;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5145, 252;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 5144, 201;
end

View file

@ -1,7 +0,0 @@
require ("global")
function onEventStarted(player, npc, triggerName)
defaultSrt = GetStaticActor("DftSrt");
callClientFunction(player, "delegateEvent", player, defaultSrt, "defaultTalkWithPilot_001");
player:endEvent();
end

View file

@ -1,7 +0,0 @@
require ("global")
function onEventStarted(player, npc, triggerName)
defaultSrt = GetStaticActor("DftSrt");
callClientFunction(player, "delegateEvent", player, defaultSrt, "defaultTalkWithPilot_001");
player:endEvent();
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFC8;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFC6;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFC7;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0x101D;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFD7;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFCC;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0x101E;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFCB;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFCA;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFC9;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFD9;
end

View file

@ -1,3 +0,0 @@
function init(npc)
return false, false, 0, 0, 0x1A5, 0xFDB;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0x1af, 0xDC5;
end

View file

@ -1,5 +0,0 @@
require ("global")
function init(npc)
return false, false, 0, 0, 0x1eb, 0x2;
end