mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-06 01:25:05 +02:00
Scripts for running the various commands/npcs (done so far) are pushed.
This commit is contained in:
parent
e851c767df
commit
e409d3792c
67 changed files with 1447 additions and 0 deletions
28
scripts/zones/133/npcs/pplLinkshel_01@08500.lua
Normal file
28
scripts/zones/133/npcs/pplLinkshel_01@08500.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
function onInstantiate(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceLinkshellManager", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
isNew = false;
|
||||
player:runEventFunction("eventTalkStep1", isNew);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
if (menuOptionSelected == nil) then
|
||||
player:endEvent();
|
||||
return;
|
||||
end
|
||||
|
||||
isNew = false;
|
||||
if (menuOptionSelected == 1) then
|
||||
player:runEventFunction("eventTalkStep2", isNew);
|
||||
elseif (menuOptionSelected == 10) then
|
||||
player:endEvent();
|
||||
return;
|
||||
elseif (menuOptionSelected == 3) then
|
||||
--createLinkshell
|
||||
player:runEventFunction("eventTalkStepMakeupDone", isNew);
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue