1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
SLASH_COMMANDS = { }
end
end
else
end
end
if numFields > 0 then
line = line .. " - "
for i = 1 , numFields do
if i > 1 then
line = line .. ", "
end
line = line .. field
end
end
end
if args == "format" then
CHAT_ROUTER : AddSystemMessage ( string . format ( "Encounter log version |cffffff%u|r documentation:" , GetEncounterLogVersion ( ) ) )
CHAT_ROUTER : AddSystemMessage ( "All lines begin with the time in MS since logging began and the line type." )
CHAT_ROUTER : AddSystemMessage ( "<unitState> refers to the following fields for a unit: unitId, health/max, magicka/max, stamina/max, ultimate/max, werewolf/max, shield, map NX, map NY, headingRadians." )
CHAT_ROUTER : AddSystemMessage ( "<targetUnitState> is replaced with an asterisk if the source and target are the same." )
CHAT_ROUTER : AddSystemMessage ( "<equipmentInfo> refers to the following fields for a piece of equipment: slot, id, isCP, level, trait, displayQuality, setId, enchantType, isEnchantCP, enchantLevel, enchantQuality." )
PrintLineTypeInfo ( "BEGIN_LOG" , "timeSinceEpochMS" , "logVersion" , "realmName" , "language" , "gameVersion" )
PrintLineTypeInfo ( "PLAYER_INFO" , "unitId" , "[longTermEffectAbilityId,...]" , "[longTermEffectStackCounts,...]" , "[<equipmentInfo>,...]" , "[primaryAbilityId,...]" , "[backupAbilityId,...]" )
PrintLineTypeInfo ( "BEGIN_CAST" , "durationMS" , "channeled" , "castTrackId" , "abilityId" , "<sourceUnitState>" , "<targetUnitState>" )
PrintLineTypeInfo ( "END_CAST" , "endReason" , "castTrackId" , "interruptingAbilityId:optional" , "interruptingUnitId:optional" )
PrintLineTypeInfo ( "COMBAT_EVENT" , "actionResult" , "damageType" , "powerType" , "hitValue" , "overflow" , "castTrackId" , "abilityId" , "<sourceUnitState>" , "<targetUnitState>" )
PrintLineTypeInfo ( "UNIT_ADDED" , "unitId" , "unitType" , "isLocalPlayer" , "playerPerSessionId" , "monsterId" , "isBoss" , "classId" , "raceId" , "name" , "displayName" , "characterId" , "level" , "championPoints" , "ownerUnitId" , "reaction" , "isGroupedWithLocalPlayer" )
PrintLineTypeInfo ( "UNIT_CHANGED" , "unitId" , "classId" , "raceId" , "name" , "displayName" , "characterId" , "level" , "championPoints" , "ownerUnitId" , "reaction" , "isGroupedWithLocalPlayer" )
PrintLineTypeInfo ( "EFFECT_CHANGED" , "changeType" , "stackCount" , "castTrackId" , "abilityId" , "<sourceUnitState>" , "<targetUnitState>" , "playerInitiatedRemoveCastTrackId:optional" )
PrintLineTypeInfo ( "EFFECT_INFO" , "abilityId" , "effectType" , "statusEffectType" , "effectBarDisplayBehaviour" , "grantsSynergyAbilityId:optional" )
PrintLineTypeInfo ( "TRIAL_INIT" , "id" , "inProgress" , "completed" , "startTimeMS" , "durationMS" , "success" , "finalScore" )
elseif args == "verbose" then
else
end
elseif args == "inline" then
else
end
elseif args == "" then
else
end
else
CHAT_ROUTER : AddSystemMessage ( "|cffffffverbose|r - toggle between the normal line format and a verbose format that names each field." )
CHAT_ROUTER : AddSystemMessage ( "|cffffffinline|r - toggle between ability infomation being inline and in its own line." )
end
end
end
if txt == "" then
CHAT_ROUTER : AddSystemMessage ( zo_strformat ( SI_GROUP_INVITE_REQUEST_EMPTY_MESSAGE , ZO_GetPlatformAccountLabel ( ) ) )
else
CHAT_ROUTER : AddSystemMessage ( zo_strformat ( GetString ( "SI_GROUPINVITERESPONSE" , GROUP_INVITE_RESPONSE_INVITED ) , txt ) )
end
end
end
end
end
end
end
local playedTime = ZO_FormatTime ( GetSecondsPlayed ( ) , TIME_FORMAT_STYLE_DESCRIPTIVE , TIME_FORMAT_PRECISION_SECONDS )
CHAT_ROUTER : AddSystemMessage ( zo_strformat ( SI_CHAT_MESSAGE_PLAYED_TIME , GetRawUnitName ( "player" ) , playedTime ) )
end
end
end
end
end
else
end
end
else
end
end
else
HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD : OpenAskForHelp ( CUSTOMER_SERVICE_ASK_FOR_HELP_IMPACT_REPORT_PLAYER , CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_CATEGORY_BAD_ACTIONS )
end
end
else
end
end
else
end
end
end
do
local RANDOM_ROLL_COMMAND_HELP_HINT = zo_strformat ( SI_RANDOM_ROLL_HELP_HINT , string . format ( "%s ?|r" , RANDOM_ROLL_COMMAND_FORMATTED ) )
local g_savedVars = nil
local savedVarsDefaults =
{
helpHintShown = nil ,
}
local SAVED_VARS_VERSION = 1
g_savedVars = ZO_SavedVars : NewAccountWide ( "ZO_Ingame_SavedVariables" , SAVED_VARS_VERSION , "RandomRollCommand" , savedVarsDefaults )
end
if g_savedVars and not g_savedVars . helpHintShown then
g_savedVars . helpHintShown = true
end
end
if args then
else
args = ""
end
if args == "?" then
OutputSystemMessage ( " %s %s" , RANDOM_ROLL_TEXTURE , zo_strformat ( SI_RANDOM_ROLL_RANGE_RESULT , characterNameParam , ZO_SELECTED_TEXT : Colorize ( "44" ) , ZO_SELECTED_TEXT : Colorize ( "1" ) , ZO_SELECTED_TEXT : Colorize ( "100" ) ) )
OutputSystemMessage ( " %s %s" , RANDOM_ROLL_TEXTURE , zo_strformat ( SI_RANDOM_ROLL_RANGE_RESULT , characterNameParam , ZO_SELECTED_TEXT : Colorize ( "39" ) , ZO_SELECTED_TEXT : Colorize ( "1" ) , ZO_SELECTED_TEXT : Colorize ( "50" ) ) )
OutputSystemMessage ( " %s %s" , RANDOM_ROLL_TEXTURE , zo_strformat ( SI_RANDOM_ROLL_RANGE_RESULT , characterNameParam , ZO_SELECTED_TEXT : Colorize ( "7" ) , ZO_SELECTED_TEXT : Colorize ( "2" ) , ZO_SELECTED_TEXT : Colorize ( "12" ) ) )
return
end
local result = nil
-- Match any of the following patterns and disregard ancillary whitespace:
-- #d
-- #d#
-- #d#-#
-- #d#+#
-- Underflow and overflow conditions must be checked prior to invoking the API.
if numRolls > RANDOM_ROLL_MAX_NUM_ROLLS then
result = RANDOM_ROLL_RESULT_INVALID_NUM_ROLLS
elseif maxRoll < 1 or maxRoll > RANDOM_ROLL_MAX_RESULT or
modifier < RANDOM_ROLL_MIN_RESULT or modifier > RANDOM_ROLL_MAX_RESULT then
result = RANDOM_ROLL_RESULT_INVALID_RESULT
else
end
else
-- Match any of the following patterns and disregard ancillary whitespace:
-- #
-- # #
-- #-#
if not maxValue then
-- Either zero or one arguments were received; assume the argument, if specified, is the maximum value.
maxValue = minValue or 100
minValue = 1 -- Default to a minimum value of 1.
elseif not minValue then
-- Only a maximum argument was received; default to a minimum value of 1.
minValue = 1
end
if minValue < 1 or maxValue < 1 or minValue > RANDOM_ROLL_MAX_RESULT or maxValue > RANDOM_ROLL_MAX_RESULT then
-- Check domain conditions prior to invoking the API.
result = RANDOM_ROLL_RESULT_INVALID_RESULT
else
end
end
if result ~= RANDOM_ROLL_RESULT_SUCCESS then
end
return result
end
local function OnRandomDiceRoll ( _ , displayName , characterName , maxValue , numRolls , modifier , rollResult )
local message
if modifier ~= 0 then
local modifierParam = ZO_SELECTED_TEXT : Colorize ( string . format ( "%s%d" , modifier > 0 and "+" or "-" , zo_abs ( modifier ) ) )
message = zo_strformat ( SI_RANDOM_ROLL_DICE_WITH_MODIFIER_RESULT , playerName , rollResultParam , numRollsParam , maxValueParam , modifierParam )
else
message = zo_strformat ( SI_RANDOM_ROLL_DICE_RESULT , playerName , rollResultParam , numRollsParam , maxValueParam )
end
end
local message = zo_strformat ( SI_RANDOM_ROLL_RANGE_RESULT , playerName , rollResultParam , minValueParam , maxValueParam )
end
if addonName == "ZO_Ingame" then
end
end
end
else
else
end
end
end
|