2016-03-12 02:54:03 -05:00
|
|
|
function onInstantiate(npc)
|
|
|
|
return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
|
|
|
end
|
|
|
|
|
2016-03-20 21:19:40 -04:00
|
|
|
function onEventStarted(player, npc, triggerName)
|
2016-04-01 23:32:52 -04:00
|
|
|
|
2016-03-12 02:54:03 -05:00
|
|
|
man0l0Quest = getStaticActor("Man0l0");
|
2016-04-01 23:32:52 -04:00
|
|
|
|
|
|
|
if (triggerName == "pushDefault") then
|
|
|
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
|
|
|
player:setEventStatus(npc, "pushDefault", false, 0x2);
|
|
|
|
elseif (triggerName == "talkDefault") then
|
|
|
|
--if () then
|
|
|
|
-- player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
|
|
|
--else
|
|
|
|
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil);
|
|
|
|
--end
|
|
|
|
else
|
|
|
|
player:endEvent();
|
|
|
|
end
|
|
|
|
|
2016-03-12 02:54:03 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
function onEventUpdate(player, npc)
|
2016-04-01 23:32:52 -04:00
|
|
|
player:endEvent();
|
2016-03-12 02:54:03 -05:00
|
|
|
end
|