mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
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.
41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
--[[
|
|
|
|
PopulaceCaravanAdviser Script
|
|
|
|
Functions:
|
|
|
|
adviserDeffault() - Not a typo. NPC dialog talking about a chocobo. Resets their sight on you, perhaps used on closing dialog?
|
|
adviserAsk() - Brings up a menu for caravan info, or purchasing gysahl greens
|
|
adviserAdvise() - NPC dialog discussing feeding chocobos
|
|
adviserSales(price) - Gysahl purchase dialog and prompt
|
|
adviserBuy() - Dialog to play after purchasing gysahl greens
|
|
adviserBuyNG() - NPC plays /shrug animation.
|
|
|
|
--]]
|
|
|
|
require ("global")
|
|
|
|
function init(npc)
|
|
return false, false, 0, 0;
|
|
end
|
|
|
|
function onEventStarted(player, npc, triggerName)
|
|
local gysahlPrice = 20;
|
|
local choice = callClientFunction(player, "adviserAsk");
|
|
|
|
if choice == 1 then
|
|
callClientFunction(player, "adviserAdvise");
|
|
elseif choice == 2 then
|
|
local purchaseChoice = callClientFunction(player, "adviserSales", gysahlPrice);
|
|
|
|
if purchaseChoice == 1 then
|
|
callClientFunction(player, "adviserBuy");
|
|
elseif purchaseChoice == 2 then
|
|
callClientFunction(player, "adviserBuyNG");
|
|
end
|
|
elseif choice == 3 then
|
|
callClientFunction(player, "adviserDeffault")
|
|
end
|
|
|
|
player:EndEvent();
|
|
end |