fixed method casing in lua

This commit is contained in:
Tahir Akhlaq
2016-06-15 03:41:23 +01:00
parent ba13d5798d
commit 884a26dc52
368 changed files with 1121 additions and 1121 deletions

View File

@@ -1,33 +1,33 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc.GetActorClassId(), false, false, 0, 1, "TEST";
end
function onSpawn(player, npc)
npc:setQuestGraphic(player, 0x2);
npc:SetQuestGraphic(player, 0x2);
end
function onEventStarted(player, npc, triggerName)
man0u0Quest = player:getQuest("man0u0");
man0u0Quest = player:GetQuest("man0u0");
if (triggerName == "talkDefault") then
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
npc:setQuestGraphic(player, 0x0);
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
npc:SetQuestGraphic(player, 0x0);
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
man0u0Quest:SaveData();
player:getDirector():onTalked(npc);
player:GetDirector():OnTalked(npc);
else
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
end
else
player:endEvent();
player:EndEvent();
end
end
function onEventUpdate(player, npc)
player:endEvent();
player:EndEvent();
end