2016-06-12 19:06:03 -04:00
|
|
|
function init(npc)
|
|
|
|
return false, false, 0, 0;
|
|
|
|
end
|
|
|
|
|
|
|
|
function onEventStarted(player, npc)
|
|
|
|
isNew = false;
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("eventTalkStep1", isNew);
|
2016-06-12 19:06:03 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
|
|
|
|
|
|
|
if (menuOptionSelected == nil) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-06-12 19:06:03 -04:00
|
|
|
return;
|
|
|
|
end
|
|
|
|
|
|
|
|
isNew = false;
|
|
|
|
if (menuOptionSelected == 1) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("eventTalkStep2", isNew);
|
2016-06-12 19:06:03 -04:00
|
|
|
elseif (menuOptionSelected == 10) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-06-12 19:06:03 -04:00
|
|
|
return;
|
|
|
|
elseif (menuOptionSelected == 3) then
|
|
|
|
--createLinkshell
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("eventTalkStepMakeupDone", isNew);
|
2016-06-12 19:06:03 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|