mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +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
57
data/scripts/commands/PartyTargetCommand.lua
Normal file
57
data/scripts/commands/PartyTargetCommand.lua
Normal file
|
@ -0,0 +1,57 @@
|
|||
--[[
|
||||
|
||||
PartyTargetCommand Script
|
||||
|
||||
Handles placing marks on targets
|
||||
|
||||
--]]
|
||||
require("global")
|
||||
|
||||
markers = { -- [id] = {overheadIcon, textIcon}
|
||||
[0] = {0, 0}, -- Clear
|
||||
[1] = {1000, 304},-- Watch my HP!
|
||||
[2] = {2000, 305},-- Watch my MP!
|
||||
[3] = {3000, 306},-- Watch my TP!
|
||||
[5] = {5000, 308},-- I need enhancing magic!
|
||||
[6] = {6000, 309},-- I am enfeebled!
|
||||
[7] = {7000, 310},-- Good!
|
||||
[8] = {8000, 311},-- Bad!
|
||||
|
||||
[100] = {-7000, 296}, -- Attack this target!
|
||||
[101] = {-6000, 297}, -- Focus on this target!
|
||||
[102] = {-5000, 298}, -- Stop this target!
|
||||
[104] = {-4000, 299}, -- Do not attack this target!
|
||||
[105] = {-3000, 300}, -- General mark Spade
|
||||
[106] = {-2000, 301}, -- General mark Club
|
||||
[107] = {-1000, 302}, -- General mark Diamond
|
||||
}
|
||||
|
||||
|
||||
function onEventStarted(player, actor, triggerName, commandValue, category, unk1, unk2, targetActor, unk3, unk4, unk5, unk6)
|
||||
|
||||
workName = "charaWork.parameterTemp.targetInformation";
|
||||
uiFunc = "charaWork/stateForAll";
|
||||
|
||||
markerIndex = markers[commandValue][1] or 0;
|
||||
iconIndex = markers[commandValue][2] or 0;
|
||||
categoryKind = tonumber(category) or -1;
|
||||
worldMaster = GetWorldMaster();
|
||||
|
||||
if categoryKind == -1 then
|
||||
return
|
||||
end
|
||||
|
||||
player:SetWorkValue(player, workName, uiFunc, markerIndex);
|
||||
|
||||
if iconIndex != 0 then
|
||||
if categoryKind == 1 then
|
||||
player:SendGameMessage(player, worldMaster, 30422, 0x20, player, iconIndex);
|
||||
elseif categoryKind == 2 then
|
||||
player:SendGameMessage(player, worldMaster, 30412, 0x20, player, iconIndex);
|
||||
end
|
||||
elseif iconIndex == 0 then
|
||||
player:SendGameMessage(player, worldMaster, 30413, 0x20, player, 0);
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue