Changeset 1212
- Timestamp:
- 03/07/2010 04:04:26 PM (6 months ago)
- Location:
- Trunk
- Files:
-
- 4 added
- 7 modified
-
lua/0Misc/0LCF_Includes/LCF_Creature.lua (modified) (3 diffs)
-
lua/0Misc/0LCF_Includes/LCF_Extra.lua (modified) (2 diffs)
-
lua/0Misc/0LCF_Includes/LCF_Gameobject.lua (modified) (1 diff)
-
lua/AUCHINDOUN/AUCHENAI_CRYPTS (added)
-
lua/AUCHINDOUN/AUCHENAI_CRYPTS/Instance_ACrypts.lua (added)
-
lua/AUCHINDOUN/AUCHENAI_CRYPTS/maladaar.script (added)
-
lua/AUCHINDOUN/AUCHENAI_CRYPTS/shirrak.script (added)
-
lua/AUCHINDOUN/MANA_TOMBS/Pandemonius.script (modified) (1 diff)
-
src/LuaEngine/FunctionTables.h (modified) (1 diff)
-
src/LuaEngine/GlobalFunctions.h (modified) (3 diffs)
-
src/LuaEngine/UnitFunctions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/lua/0Misc/0LCF_Includes/LCF_Creature.lua
r1208 r1212 52 52 end 53 53 end 54 function CREATURE:SetChannelTarget(target) 55 local guid = nil 56 if(target) then 57 guid = target:GetGUID() 58 end 59 self:SetUInt64Value(LCF.UNIT_FIELD_CHANNEL_OBJECT,guid) 60 end 54 61 function CREATURE:GetChannelTarget() 55 62 local guid = self:GetUInt64Value(LCF.UNIT_FIELD_CHANNEL_OBJECT) 56 63 if(guid) then 57 return self:Get UnitByGUID(guid)64 return self:GetObject(guid) 58 65 end 59 66 return nil … … 79 86 self:SendChatMessage(LCF.CHAT_MSG_MONSTER_WHISPER,LCF.LANG_UNIVERSAL,msg) 80 87 end 88 function CREATURE:BossRaidEmote(msg) 89 self:SendChatMessage(LCF.CHAT_MSG_RAID_BOSS_EMOTE,LCF.LANG_UNIVERSAL,msg) 90 end 81 91 function CREATURE:MoveToUnit(target) 82 92 local x,y,z = target:GetLocation() … … 97 107 end 98 108 function CREATURE:SetCreator(creator) 99 self:SetUInt64Value(LCF.UNIT_FIELD_CREATEDBY,creator:GetGUID()) 109 local guid = nil 110 if(creator) then 111 guid = creator:GetGUID() 112 end 113 self:SetUInt64Value(LCF.UNIT_FIELD_CREATEDBY,guid) 114 self:SetUInt64Value(LCF.UNIT_FIELD_SUMMONEDBY,guid) 100 115 end 101 116 function CREATURE:GetCreator() -
Trunk/lua/0Misc/0LCF_Includes/LCF_Extra.lua
r1208 r1212 37 37 end 38 38 function LCF:HandleOnAreaTrigger(event,player,area_trig) 39 player:SendAreaTriggerMessage("[AREA TRIGGER] "..area_trig) 39 40 local key = "area "..tostring(area_trig) 40 41 local struct = self.areatrigger_hooks[key] … … 112 113 assert(type(arg) == "table","Internal error, arg is not a table.") 113 114 if(delay <= 0) then error("Invalid argument #2, delay must be greater than 0.") end 114 local struct = {evt_typ,{func,delay, repeats,repeats,arg} }115 local struct = {evt_typ,{func,delay,delay,repeats,arg} } 115 116 table.insert(self.call_backs,struct) 116 117 end -
Trunk/lua/0Misc/0LCF_Includes/LCF_Gameobject.lua
r1208 r1212 66 66 self:SetUInt64Value(LCF.OBJECT_FIELD_CREATED_BY,guid) 67 67 end 68 function GAMEOBJECT:GetCreator()69 local guid = self:GetUInt64Value(LCF.OBJECT_FIELD_CREATED_BY)70 return self:GetObject(guid)71 end72 68 function GAMEOBJECT:GetLocalCreature(entry) 73 69 local x,y,z = self:GetLocation() -
Trunk/lua/AUCHINDOUN/MANA_TOMBS/Pandemonius.script
r1208 r1212 57 57 58 58 if(ref.dark_shell <= 0) then 59 unit: MonsterEmote(unit:GetName().." casts dark shell!")59 unit:BossRaidEmote(unit:GetName().." casts dark shell!") 60 60 if(ref.isHeroic) then 61 61 unit:FullCastSpell(38759) -
Trunk/src/LuaEngine/FunctionTables.h
r1207 r1212 525 525 { "GetPlayerMovementFlags", &luaUnit::GetPlayerMovementFlags}, 526 526 { "GetObject", &luaUnit::GetObject }, 527 { "GetSecondHated", &luaUnit::GetSecondHated }, 527 528 { NULL, NULL }, 528 529 }; -
Trunk/src/LuaEngine/GlobalFunctions.h
r1205 r1212 506 506 if(top > 1) 507 507 { 508 for(int i = 2; i < top; ++i)508 for(int i = 2; i <= top; ++i) 509 509 { 510 510 if(lua_isnumber(L,i) ) … … 520 520 if(top > 1) 521 521 { 522 for(int i = 2; i < top; ++i)522 for(int i = 2; i <= top; ++i) 523 523 { 524 524 if(lua_isnumber(L,i) ) … … 534 534 if(top > 1) 535 535 { 536 for(int i = 2; i < top; ++i)536 for(int i = 2; i <= top; ++i) 537 537 { 538 538 if(lua_isnumber(L,i) ) -
Trunk/src/LuaEngine/UnitFunctions.h
r1207 r1212 5866 5866 return 1; 5867 5867 } 5868 int GetSecondHated(lua_State * L, Unit * ptr) 5869 { 5870 TEST_UNIT(); 5871 PUSH_UNIT(L,ptr->GetAIInterface()->GetSecondHated()); 5872 return 1; 5873 } 5868 5874 } 5869 5875 #endif
![(please configure the [header_logo] section in trac.ini)](/trac/arcscripts/chrome/site/your_project_logo.png)