mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
Actor script fixes, documented populace classes and misc things
Base - gcseals.lua Helper functions for GC seals. Tables the seal caps per rank and checks against it when adding seals. Commands - PartyTargetCommand.lua : Handles markers above head. Basic documentation, only works on self. "Heart" doesn't work, client bug? Eventually will need an object in the party class to handle tracking marked players/targets for the group. Class Scripts - PopulaceCaravanAdviser.lua Documented. Can purchase gysahl greens from them, unsure what else their use is. - PopulaceCaravanGuide.lua Documented the Caravan Guide NPC, who escorts the chocobos with you. - PopulaceCaravanManager.lua NPC who handles signing up for Caravan escort, among other functions. - PopulaceSpecialEventCryer.lua Covers three NPCs for the Foundation Event. They handle trading specific items in exchange for GC seals. Unique ID Script fixes - flame_private_sisimuza_tetemuza.lua Foundation Event NPC functions laid out. - flame_sergeant_mimio_mio.lua Foundation Event NPC functions laid out. - serpent_lieutenant_marette.lua Foundation Event NPC functions laid out. - serpent_private_tristelle.lua Foundation Event NPC functions laid out. - serpent_sergeant_frilaix.lua Foundation Event NPC functions laid out. - serpent_sergeant_nelhah.lua Removed unique script. PopulaceSpecialEventCryer handles it. - ansgor.lua Had incorrect defaultTalk value - ne_of_eshtaimes.lua Door @ !warp 209 -139 206.113 195 Had incorrect mapObj value.
This commit is contained in:
parent
88233cf6d2
commit
359ea8a40e
14 changed files with 389 additions and 20 deletions
|
@ -1,7 +1,18 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultFst = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, defaultFst, "processEventELNAURE", 1,1,1);
|
||||
player:endEvent();
|
||||
Spl = GetStaticActor("Spl000");
|
||||
magickedPrism = 3020615;
|
||||
|
||||
if not player:GetInventory(INVENTORY_NORMAL):HasItem(magickedPrism) then
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventELNAURE", 2);
|
||||
local invCheck = player:GetInventory(INVENTORY_NORMAL):AddItem(magickedPrism, 10, 1);
|
||||
if invCheck == INV_ERROR_SUCCESS then
|
||||
player:SendGameMessage(player, GetWorldMaster(), 25246, MESSAGE_TYPE_SYSTEM, magickedPrism, 10);
|
||||
end
|
||||
else
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventELNAURE", 1);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultFst = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, defaultFst, "processEventMERLIE", 1,1,1);
|
||||
Spl = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventMERLIE");
|
||||
player:endEvent();
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultFst = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, defaultFst, "processEventARISMONT", 1, 1, 1);
|
||||
Spl = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventARISMONT");
|
||||
player:endEvent();
|
||||
end
|
|
@ -1,7 +0,0 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultFst = GetStaticActor("DftFst");
|
||||
callClientFunction(player, "delegateEvent", player, defaultFst, "defaultTalkWithSerpent_sergeant_nelhah_001", nil, nil, nil);
|
||||
player:endEvent();
|
||||
end
|
|
@ -2,6 +2,6 @@ require ("global")
|
|||
|
||||
function onEventStarted(player, npc)
|
||||
defaultSea = GetStaticActor("DftSea");
|
||||
callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithAnsgor_001");
|
||||
callClientFunction(player, "delegateEvent", player, defaultSea, "defaultTalkWithANSGOR_100");
|
||||
player:endEvent();
|
||||
end
|
|
@ -1,7 +1,7 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultWil = GetStaticActor("DftWil");
|
||||
callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithFlameprivatesisimuzatetemuza_001", nil, nil, nil);
|
||||
Spl = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventSISIMUZA");
|
||||
player:endEvent();
|
||||
end
|
|
@ -1,8 +1,8 @@
|
|||
require ("global")
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
defaultWil = GetStaticActor("DftWil");
|
||||
callClientFunction(player, "delegateEvent", player, defaultWil, "defaultTalkWithFlamesergeantmimiomio_001", nil, nil, nil);
|
||||
Spl = GetStaticActor("Spl000");
|
||||
callClientFunction(player, "delegateEvent", player, Spl, "processEventMIMIO");
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0, 0x1A5, 0xFC7;
|
||||
return false, false, 0, 0, 0x1A5, 0xFD9;
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue