본문 바로가기

PROFILE/Independent project

Wow add on - Utility / LUA Script / June. 2009




< Chatting Log Brief Add On>

< Character Information Add On > 

< Enemy's Cool Time Info Add On >



Title
WOW (World of Warcraft) Add on
Screen capture

Genre
Arcade Mini Game
period
2009.03~2009.06
Environment
Windows 7, Visual Studio 2008
Skill
Lua Script
contents
1. Chatting Log Brief Add On Create add-ons that simplify battle logs in the lower left corner
2. Character Information Add On Create add-ons to view character information at a glance
3. Enemy's Cool Time Info Add On Create add-ons to view enemy cool time information
Source code
-- Set default text color
 COMBATLOG_DEFAULT_COLORS = {
                unitColoring = {
                [COMBATLOG_FILTER_MINE]       
              = {a=1.0,r=0.70,g=0.70,b=0.70};       -- When I hit (gray)
                [COMBATLOG_FILTER_MY_PET]
              = {a=1.0,r=0.70,g=0.70,b=0.70};               -- When my pet hits (gray)
                [COMBATLOG_FILTER_FRIENDLY_UNITS]
              = {a=1.0,r=0.34,g=0.64,b=1.00};               -- When a friend hits (yellow)
                [COMBATLOG_FILTER_HOSTILE_UNITS]
              = {a=1.0,r=0.75,g=0.05,b=0.05};               -- When enemies are hit (red)
                [COMBATLOG_FILTER_HOSTILE_PLAYERS]
              = {a=1.0,r=0.75,g=0.05,b=0.05};               -- When the enemy beats (red)
                [COMBATLOG_FILTER_NEUTRAL_UNITS]
              = {a=1.0,r=0.75,g=0.05,b=0.05};               -- When the NPC hits (red)     };
 };
-- Declare variable to populate window
 local sourceNameStr = "";                      -- Declaration of caster name
 local destNameStr = "";                           -- Target name declaration
 local spellNameStr = spellName;          -- Technical name (copy the variables sent from WOW)
 sourceNameStr, destNameStr = sourceName, destName; -- The names of the caster and the victim
 - Custodian Technical Name Set the order of target names to be created
 lineColor = CombatLog_Color_ColorArrayByUnitType( sourceFlags, filterSettings );   
  if ( sourceEnabled and sourceName ) then         -- Set caster words
                sourceString = format(TEXT_MODE_A_STRING_SOURCE_UNIT, sourceIcon, sourceGUID, sourceName, "<"..sourceNameStr..">");
 End
 if ( spellName ) then                                                  -- Set order word
                spellString = format(TEXT_MODE_A_STRING_ACTION, originalEvent, "<"..spellNameStr..">");                End