mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-22 18:46:06 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
|
@ -0,0 +1,41 @@
|
|||
--[[
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue