Скрипты Neilyo и не только  
Автор Сообщение

0
Сообщение Скрипты Neilyo и не только

не помогло =(

Мб дело в спеле граундинга ?



26 авг 2012, 19:36
Профиль



<Имя Говорит Само за Себя>


Сервер: Гордунни
0
Сообщение Скрипты Neilyo и не только

Dillinger писал(а):

не помогло =(

Мб дело в спеле граундинга ?

Обычно когда что-то неправильно, выдает ошибки в игре. Включи отображение ошибок луа и скинь сюда скрин.



26 авг 2012, 19:43
Профиль

0
Сообщение Скрипты Neilyo и не только

Message: ...Widgets\AceGUI-3.0-SharedMediaWidgets\prototypes.lua:16: Cannot find a library instance of "LibSharedMedia-3.0".
Time: 08/26/12 20:51:31
Count: 1
Stack: [C]: in function `error'
Interface\AddOns\Ace3\LibStub\LibStub.lua:23: in function `LibStub'
...Widgets\AceGUI-3.0-SharedMediaWidgets\prototypes.lua:16: in main chunk

Locals: (*temporary) = "Cannot find a library instance of "LibSharedMedia-3.0"."

 

 

это единственная ошибка, и со скриптом никак не связана =(



26 авг 2012, 19:52
Профиль



<Имя Говорит Само за Себя>


Сервер: Гордунни
0
Сообщение Скрипты Neilyo и не только

Тогда не знаю, скинь сюда весь скрипт, может в нем есть ошибки еще.



26 авг 2012, 20:04
Профиль

0
Сообщение Скрипты Neilyo и не только

Код:

---------------------------------------------------------------------------------------
--EnemyCooldowns--
---------------------------------------------------------------------------------------
USS="UNIT_SPELLCAST_SUCCEEDED";OE="OnEvent";PvP="Interface\\Icons\\inv_jewelry_trinketpvp_01";F="Frame";CF=CreateFrame;BO="Border";PvPT="PvP Trinket";EMFH="Every Man For Himself";UC=UnitClass;SCM=SendChatMessage;RW="RAID_WARNING"
function TrS(f,x,y,cd,T,s,h) f:SetPoint("BOTTOMLEFT",x,y)f:SetSize(s,s)f.c=CF("Cooldown",cd)f.c:SetAllPoints(f)f.t=f:CreateTexture(nil,BO)f.t:SetAllPoints()f.t:SetTexture(T);if not h then f:Hide(); end f:RegisterEvent(USS) end
function Ts(f,cd,U,N,S,TI)if CPz(N,S,U) then f:Show();CooldownFrame_SetTimer(cd,GetTime(),TI,1) end end
function CPz(N,S,U) if(N==S and (U=="arena1" or U=="arena2" or U=="arena3" or U=="arenapet1" or U=="arenapet2" or U=="arenapet3" or U=="target"))then return true else return false end end

local USS="UNIT_SPELLCAST_SUCCEEDED"
local OE="OnEvent"
local PvP="Interface\\Icons\\inv_jewelry_trinketpvp_01"
local F="Frame"
local CF=CreateFrame
local BO="Border"
local PvPT="PvP Trinket"
local EMFH="Every Man For Himself"
local UC=UnitClass
local SCM=SendChatMessage
local RW="RAID_WARNING"
function TrS(f,x,y,cd,T,s,h)
f:SetPoint("BOTTOMLEFT",x,y)
f:SetSize(s,s)
f.c=CF("Cooldown",cd)
f.c:SetAllPoints(f)
f.t=f:CreateTexture(nil,BO)
f.t:SetAllPoints()
f.t:SetTexture(T);
if not h then
f:Hide();
end
f:RegisterEvent(USS)
end
function Ts(f,cd,U,N,S,TI)
if CPz(N,S,U) then
CooldownFrame_SetTimer(cd,GetTime(),TI,1)
f:Show();
f.elapsed = 0
f:SetScript('OnUpdate', function(self, elapsed)
if self.elapsed > TI then
self:SetScript('OnUpdate', nil)
self:Hide();
else
self.elapsed = self.elapsed + elapsed
end
end)

end
end
function CPz(N,S,U)
if(N==S and
(U=="arena1"
or U=="arena2"
or U=="arena3"
or U=="arenapet1"
or U=="arenapet2"
or U=="arenapet3"
or U=="target"
or U=="focus"))then
return true
else
return false
end
end
--rogue cooldown`s--
t1p="Interface\\Icons\\ability_rogue_shadowdance";t1=CF(F);TrS(t1,950,420,"cd1",t1p,22,true);
t1:SetScript(OE,function(self,event,...) Ts(t1,cd1,select(1,...),select(5,...),51713,60) end);
t2p="Interface\\Icons\\ability_rogue_kidneyshot";t2=CF(F);TrS(t2,972,420,"cd2",t2p,22,false);
t2:SetScript(OE,function(self,event,...) Ts(t2,cd2,select(1,...),select(5,...),408,20) end);
t3p="Interface\\Icons\\spell_shadow_nethercloak";t3=CF(F);TrS(t3,994,420,"cd3",t3p,22,false);
t3:SetScript(OE,function(self,event,...) Ts(t3,cd3,select(1,...),select(5,...),31224,90) end);
t4p="Interface\\Icons\\ability_rogue_combatreadiness";t4=CF(F);TrS(t4,1016,420,"cd4",t4p,22,false);
t4:SetScript(OE,function(self,event,...) Ts(t4,cd4,select(1,...),select(5,...),74001,90) end);
t5p="Interface\\Icons\\ability_vanish";t5=CF(F);TrS(t5,1038,420,"cd5",t5p,22,false);
t5:SetScript(OE,function(self,event,...) Ts(t5,cd5,select(1,...),select(5,...),1856,120) end);
t6p="Interface\\Icons\\ability_rogue_dismantle";t6=CF(F);TrS(t6,1060,420,"cd6",t6p,22,false);
t6:SetScript(OE,function(self,event,...) Ts(t6,cd6,select(1,...),select(5,...),51722,60) end);
t7p="Interface\\Icons\\ability_rogue_shadowstep";t7=CF(F);TrS(t7,1082,420,"cd7",t7p,22,false);
t7:SetScript(OE,function(self,event,...) Ts(t7,cd7,select(1,...),select(5,...),36554,24) end);
t8p="Interface\\Icons\\spell_shadow_mindsteal";t8=CF(F);TrS(t8,1104,420,"cd8",t8p,22,false);
t8:SetScript(OE,function(self,event,...) Ts(t8,cd8,select(1,...),select(5,...),2094,120) end);
t9p="Interface\\Icons\\ability_rogue_smoke";t9=CF(F);TrS(t9,1126,420,"cd9",t9p,22,false);
t9:SetScript(OE,function(self,event,...) Ts(t9,cd9,select(1,...),select(5,...),76577,180) end);
t10p="Interface\\Icons\\ability_rogue_preparation";t10=CF(F);TrS(t10,1148,420,"cd10",t10p,22,true);
t10:SetScript(OE,function(self,event,...) Ts(t10,cd10,select(1,...),select(5,...),14185,300) end);
--Warlock cooldown`s
t11p="Interface\\Icons\\spell_shadow_deathscream";t11=CF(F);TrS(t11,950,390,"cd11",t11p,22,true);
t11:SetScript(OE,function(self,event,...) Ts(t11,cd11,select(1,...),select(5,...),5484,32) end);
t12p="Interface\\Icons\\spell_shadow_deathcoil";t12=CF(F);TrS(t12,972,390,"cd12",t12p,22,false);
t12:SetScript(OE,function(self,event,...) Ts(t12,cd12,select(1,...),select(5,...),6789,90) end);
t13p="Interface\\Icons\\spell_shadow_demoniccircleteleport";t13=CF(F);TrS(t13,994,390,"cd13",t13p,22,false);
t13:SetScript(OE,function(self,event,...) Ts(t13,cd13,select(1,...),select(5,...),48020,25) end);
t14p="Interface\\Icons\\spell_shadow_mindrot";t14=CF(F);TrS(t14,1016,390,"cd14",t14p,22,false);
t14:SetScript(OE,function(self,event,...) Ts(t14,cd14,select(1,...),select(5,...),19647,24) end);
t60p="Interface\\Icons\\spell_warlock_demonsoul";t60=CF(F);TrS(t60,1038,390,"cd61",t60p,22,true);
t60:SetScript(OE,function(self,event,...) Ts(t60,cd60,select(1,...),select(5,...),77801,120) end);
--mage cooldown`s--
t15p="Interface\\Icons\\ability_mage_deepfreeze";t15=CF(F);TrS(t15,950,360,"cd15",t15p,22,true);
t15:SetScript(OE,function(self,event,...) Ts(t15,cd15,select(1,...),select(5,...),44572,30) end);
t16p="Interface\\Icons\\spell_frost_wizardmark";t16=CF(F);TrS(t16,972,360,"cd16",t16p,22,false);
t16:SetScript(OE,function(self,event,...) Ts(t16,cd16,select(1,...),select(5,...),11958,480) end);
t17p="Interface\\Icons\\spell_arcane_blink";t17=CF(F);TrS(t17,994,360,"cd17",t17p,22,false);
t17:SetScript(OE,function(self,event,...) Ts(t17,cd17,select(1,...),select(5,...),1953,15) end);
t59p="Interface\\Icons\\spell_frost_iceshock";t59=CF(F);TrS(t59,1016,360,"cd59",t59p,22,true);
t59:SetScript(OE,function(self,event,...) Ts(t59,cd59,select(1,...),select(5,...),2139,24) end);
--death knight cooldowns--
t18p="Interface\\Icons\\spell_shadow_soulleech_3";t18=CF(F);TrS(t18,950,330,"cd18",t18p,22,true);
t18:SetScript(OE,function(self,event,...) Ts(t18,cd18,select(1,...),select(5,...),47476,120) end);
t19p="Interface\\Icons\\spell_shadow_antimagicshell";t19=CF(F);TrS(t19,972,330,"cd19",t19p,22,false);
t19:SetScript(OE,function(self,event,...) Ts(t19,cd19,select(1,...),select(5,...),48707,45) end);
t20p="Interface\\Icons\\spell_deathknight_iceboundfortitude";t20=CF(F);TrS(t20,994,330,"cd20",t20p,22,false);
t20:SetScript(OE,function(self,event,...) Ts(t20,cd20,select(1,...),select(5,...),48792,180) end);
t21p="Interface\\Icons\\inv_sword_62";t21=CF(F);TrS(t21,1016,330,"cd21",t21p,22,false);
t21:SetScript(OE,function(self,event,...) Ts(t21,cd21,select(1,...),select(5,...),47568,300) end);
t22p="Interface\\Icons\\spell_shadow_raisedead";t22=CF(F);TrS(t22,1038,330,"cd22",t22p,22,false);
t22:SetScript(OE,function(self,event,...) Ts(t22,cd22,select(1,...),select(5,...),49039,120) end);
t23p="Interface\\Icons\\spell_deathknight_strangulate";t23=CF(F);TrS(t23,1060,330,"cd23",t23p,22,false);
t23:SetScript(OE,function(self,event,...) Ts(t23,cd23,select(1,...),select(5,...),49576,25) end);
t24p="Interface\\Icons\\spell_deathknight_antimagiczone";t24=CF(F);TrS(t24,1082,330,"cd24",t24p,22,false);
t24:SetScript(OE,function(self,event,...) Ts(t24,cd24,select(1,...),select(5,...),51052,120) end);
t25p="Interface\\Icons\\ability_deathknight_summongargoyle";t25=CF(F);TrS(t25,1104,330,"cd25",t25p,22,true);
t25:SetScript(OE,function(self,event,...) Ts(t25,cd25,select(1,...),select(5,...),49206,180) end);
--priest cooldown`s--
t26p="Interface\\Icons\\spell_shadow_psychicscream";t26=CF(F);TrS(t26,950,300,"cd26",t26p,22,true);
t26:SetScript(OE,function(self,event,...) Ts(t26,cd26,select(1,...),select(5,...),8122,26) end);
t27p="Interface\\Icons\\spell_shadow_psychicscream";t27=CF(F);TrS(t27,972,300,"cd27",t27p,22,false);
t27:SetScript(OE,function(self,event,...) Ts(t27,cd27,select(1,...),select(5,...),8122,30) end);
t28p="Interface\\Icons\\spell_frost_windwalkon";t28=CF(F);TrS(t28,994,300,"cd28",t28p,22,false);
t28:SetScript(OE,function(self,event,...) Ts(t28,cd28,select(1,...),select(5,...),89485,45) end);
t29p="Interface\\Icons\\spell_holy_painsupression";t29=CF(F);TrS(t29,1016,300,"cd29",t29p,22,false);
t29:SetScript(OE,function(self,event,...) Ts(t29,cd29,select(1,...),select(5,...),33206,45) end);
t30p="Interface\\Icons\\spell_shadow_dispersion";t30=CF(F);TrS(t30,1038,300,"cd30",t30p,22,false);
t30:SetScript(OE,function(self,event,...) Ts(t30,cd30,select(1,...),select(5,...),47585,115) end);
t31p="Interface\\Icons\\spell_shadow_psychichorrors";t31=CF(F);TrS(t31,1060,300,"cd31",t31p,22,false);
t31:SetScript(OE,function(self,event,...) Ts(t31,cd31,select(1,...),select(5,...),64044,90) end);
t32p="Interface\\Icons\\ability_priest_silence";t32=CF(F);TrS(t32,1082,300,"cd32",t32p,22,true);
t32:SetScript(OE,function(self,event,...) Ts(t32,cd32,select(1,...),select(5,...),15487,45) end);
--paladin cooldown`s--
t33p="Interface\\Icons\\spell_holy_sealofvalor";t33=CF(F);TrS(t33,950,270,"cd33",t33p,22,true);
t33:SetScript(OE,function(self,event,...) Ts(t33,cd33,select(1,...),select(5,...),1044,25) end);
t34p="Interface\\Icons\\spell_holy_sealofmight";t34=CF(F);TrS(t34,972,270,"cd34",t34p,22,false);
t34:SetScript(OE,function(self,event,...) Ts(t34,cd34,select(1,...),select(5,...),853,40) end);
t58p="Interface\\Icons\\spell_holy_sealofmight";t58=CF(F);TrS(t58,994,270,"cd58",t58p,22,false);
t58:SetScript(OE,function(self,event,...) Ts(t58,cd58,select(1,...),select(5,...),853,60) end);
t35p="Interface\\Icons\\spell_holy_sealofsacrifice";t35=CF(F);TrS(t35,1016,270,"cd35",t35p,22,false);
t35:SetScript(OE,function(self,event,...) Ts(t35,cd35,select(1,...),select(5,...),6940,90) end);
t36p="Interface\\Icons\\spell_holy_sealofprotection";t36=CF(F);TrS(t36,1038,270,"cd36",t36p,22,false);
t36:SetScript(OE,function(self,event,...) Ts(t36,cd36,select(1,...),select(5,...),1022,180) end);
t37p="Interface\\Icons\\spell_holy_divineshield";t37=CF(F);TrS(t37,1060,270,"cd37",t37p,22,false);
t37:SetScript(OE,function(self,event,...) Ts(t37,cd37,select(1,...),select(5,...),642,300) end);
t38p="Interface\\Icons\\spell_holy_auramastery";t38=CF(F);TrS(t38,1082,270,"cd38",t38p,22,true);
t38:SetScript(OE,function(self,event,...) Ts(t38,cd38,select(1,...),select(5,...),31821,120) end);
--warior cooldown`s--
t39p="Interface\\Icons\\ability_warrior_charge";t39=CF(F);TrS(t39,950,240,"cd39",t39p,22,true);
t39:SetScript(OE,function(self,event,...) Ts(t39,cd39,select(1,...),select(5,...),100,13) end);
t40p="Interface\\Icons\\inv_mace_62";t40=CF(F);TrS(t40,972,240,"cd40",t40p,22,false);
t40:SetScript(OE,function(self,event,...) Ts(t40,cd40,select(1,...),select(5,...),85388,45) end);
t41p="Interface\\Icons\\ability_heroicleap";t41=CF(F);TrS(t41,994,240,"cd41",t41p,22,false);
t41:SetScript(OE,function(self,event,...) Ts(t41,cd41,select(1,...),select(5,...),6544,60) end);
t42p="Interface\\Icons\\spell_nature_ancestralguardian";t42=CF(F);TrS(t42,1016,240,"cd42",t42p,22,false);
t42:SetScript(OE,function(self,event,...) Ts(t42,cd42,select(1,...),select(5,...),18499,30) end);
t43p="Interface\\Icons\\ability_criticalstrike";t43=CF(F);TrS(t43,1038,240,"cd43",t43p,22,false);
t43:SetScript(OE,function(self,event,...) Ts(t43,cd43,select(1,...),select(5,...),1719,300) end);
t44p="Interface\\Icons\\ability_warrior_shieldwall";t44=CF(F);TrS(t44,1060,240,"cd44",t44p,22,true);
t44:SetScript(OE,function(self,event,...) Ts(t44,cd44,select(1,...),select(5,...),871,300) end);
--Druid cooldown`s--
t45p="Interface\\Icons\\ability_hunter_pet_bear";t45=CF(F);TrS(t45,950,210,"cd45",t45p,22,true);
t45:SetScript(OE,function(self,event,...) Ts(t45,cd45,select(1,...),select(5,...),16979,14) end);
t46p="Interface\\Icons\\spell_druid_feralchargecat";t46=CF(F);TrS(t46,972,210,"cd46",t46p,22,false);
t46:SetScript(OE,function(self,event,...) Ts(t46,cd46,select(1,...),select(5,...),49376,28) end);
t47p="Interface\\Icons\\spell_nature_stoneclawtotem";t47=CF(F);TrS(t47,994,210,"cd47",t47p,22,false);
t47:SetScript(OE,function(self,event,...) Ts(t47,cd47,select(1,...),select(5,...),22812,60) end);
t48p="Interface\\Icons\\ability_druid_bash";t48=CF(F);TrS(t48,1016,210,"cd48",t48p,22,false);
t48:SetScript(OE,function(self,event,...) Ts(t48,cd48,select(1,...),select(5,...),5211,60) end);
t49p="Interface\\Icons\\ability_druid_tigersroar";t49=CF(F);TrS(t49,1038,210,"cd49",t49p,22,false);
t49:SetScript(OE,function(self,event,...) Ts(t49,cd49,select(1,...),select(5,...),61336,180) end);
t50p="Interface\\Icons\\ability_druid_berserk";t50=CF(F);TrS(t50,1060,210,"cd50",t50p,22,true);
t50:SetScript(OE,function(self,event,...) Ts(t50,cd50,select(1,...),select(5,...),50334,180) end);
--Hunter cooldown`s--
t51p="Interface\\Icons\\ability_golemstormbolt";t51=CF(F);TrS(t51,950,180,"cd51",t51p,22,true);
t51:SetScript(OE,function(self,event,...) Ts(t51,cd51,select(1,...),select(5,...),19503,30) end);
t52p="Interface\\Icons\\spell_frost_chainsofice";t52=CF(F);TrS(t52,972,180,"cd52",t52p,22,false);
t52:SetScript(OE,function(self,event,...) Ts(t52,cd52,select(1,...),select(5,...),1499,30) end);
t53p="Interface\\Icons\\ability_whirlwind";t53=CF(F);TrS(t53,994,180,"cd53",t53p,22,false);
t53:SetScript(OE,function(self,event,...) Ts(t53,cd53,select(1,...),select(5,...),19263,120) end);
t54p="Interface\\Icons\\ability_rogue_feint";t54=CF(F);TrS(t54,1016,180,"cd54",t54p,22,false);
t54:SetScript(OE,function(self,event,...) Ts(t54,cd54,select(1,...),select(5,...),781,16) end);
--shaman cooldown`s--
t55p="Interface\\Icons\\spell_shaman_hex";t55=CF(F);TrS(t55,950,150,"cd55",t55p,22,true);
t55:SetScript(OE,function(self,event,...) Ts(t55,cd55,select(1,...),select(5,...),51514,35) end);
t56p="Interface\\Icons\\spell_shaman_spiritlink";t56=CF(F);TrS(t56,972,150,"cd56",t56p,22,false);
t56:SetScript(OE,function(self,event,...) Ts(t56,cd56,select(1,...),select(5,...),98008,180) end);
t57p="Interface\\Icons\\spell_nature_tremortotem";t57=CF(F);TrS(t57,994,150,"cd57",t57p,22,true);
t57:SetScript(OE,function(self,event,...) Ts(t57,cd57,select(1,...),select(5,...),8143,60) end);
--t61p:="Interface\\Icons\\spell_nature_groundingtotem";t61=CF(F);Trs(t61,1016,150,"cd61",t61p,22,true);
--t61:SetScript(OE,function(self,event,...) Ts(t61,cd61,select(1,...),select(5,...),8177,25) end);



26 авг 2012, 22:04
Профиль

0
Сообщение Скрипты Neilyo и не только

can someone repost the defaultGladius.rar . 



26 авг 2012, 22:06
Профиль



<Попа в огне>


Сервер: Черный Шрам
2х2: 1822
3х3: 1567
0
Сообщение Скрипты Neilyo и не только

http://www.gamefront.com/files/21525136/DefaultGladius.rar



26 авг 2012, 23:10
Профиль

0
Сообщение Скрипты Neilyo и не только

that link is not working for me dunno why

page not found after the 5 4 3 2 1 count down when u click download



26 авг 2012, 23:13
Профиль



<Имя Говорит Само за Себя>


Сервер: Гордунни
0
Сообщение Скрипты Neilyo и не только

Dillinger писал(а):

Код:

---------------------------------------------------------------------------------------
--EnemyCooldowns--
---------------------------------------------------------------------------------------
USS="UNIT_SPELLCAST_SUCCEEDED";OE="OnEvent";PvP="Interface\\Icons\\inv_jewelry_trinketpvp_01";F="Frame";CF=CreateFrame;BO="Border";PvPT="PvP Trinket";EMFH="Every Man For Himself";UC=UnitClass;SCM=SendChatMessage;RW="RAID_WARNING"
function TrS(f,x,y,cd,T,s,h) f:SetPoint("BOTTOMLEFT",x,y)f:SetSize(s,s)f.c=CF("Cooldown",cd)f.c:SetAllPoints(f)f.t=f:CreateTexture(nil,BO)f.t:SetAllPoints()f.t:SetTexture(T);if not h then f:Hide(); end f:RegisterEvent(USS) end
function Ts(f,cd,U,N,S,TI)if CPz(N,S,U) then f:Show();CooldownFrame_SetTimer(cd,GetTime(),TI,1) end end
function CPz(N,S,U) if(N==S and (U=="arena1" or U=="arena2" or U=="arena3" or U=="arenapet1" or U=="arenapet2" or U=="arenapet3" or U=="target"))then return true else return false end end

local USS="UNIT_SPELLCAST_SUCCEEDED"
local OE="OnEvent"
local PvP="Interface\\Icons\\inv_jewelry_trinketpvp_01"
local F="Frame"
local CF=CreateFrame
local BO="Border"
local PvPT="PvP Trinket"
local EMFH="Every Man For Himself"
local UC=UnitClass
local SCM=SendChatMessage
local RW="RAID_WARNING"
function TrS(f,x,y,cd,T,s,h)
f:SetPoint("BOTTOMLEFT",x,y)
f:SetSize(s,s)
f.c=CF("Cooldown",cd)
f.c:SetAllPoints(f)
f.t=f:CreateTexture(nil,BO)
f.t:SetAllPoints()
f.t:SetTexture(T);
if not h then
f:Hide();
end
f:RegisterEvent(USS)
end
function Ts(f,cd,U,N,S,TI)
if CPz(N,S,U) then
CooldownFrame_SetTimer(cd,GetTime(),TI,1)
f:Show();
f.elapsed = 0
f:SetScript('OnUpdate', function(self, elapsed)
if self.elapsed > TI then
self:SetScript('OnUpdate', nil)
self:Hide();
else
self.elapsed = self.elapsed + elapsed
end
end)

end
end
function CPz(N,S,U)
if(N==S and
(U=="arena1"
or U=="arena2"
or U=="arena3"
or U=="arenapet1"
or U=="arenapet2"
or U=="arenapet3"
or U=="target"
or U=="focus"))then
return true
else
return false
end
end
--rogue cooldown`s--
t1p="Interface\\Icons\\ability_rogue_shadowdance";t1=CF(F);TrS(t1,950,420,"cd1",t1p,22,true);
t1:SetScript(OE,function(self,event,...) Ts(t1,cd1,select(1,...),select(5,...),51713,60) end);
t2p="Interface\\Icons\\ability_rogue_kidneyshot";t2=CF(F);TrS(t2,972,420,"cd2",t2p,22,false);
t2:SetScript(OE,function(self,event,...) Ts(t2,cd2,select(1,...),select(5,...),408,20) end);
t3p="Interface\\Icons\\spell_shadow_nethercloak";t3=CF(F);TrS(t3,994,420,"cd3",t3p,22,false);
t3:SetScript(OE,function(self,event,...) Ts(t3,cd3,select(1,...),select(5,...),31224,90) end);
t4p="Interface\\Icons\\ability_rogue_combatreadiness";t4=CF(F);TrS(t4,1016,420,"cd4",t4p,22,false);
t4:SetScript(OE,function(self,event,...) Ts(t4,cd4,select(1,...),select(5,...),74001,90) end);
t5p="Interface\\Icons\\ability_vanish";t5=CF(F);TrS(t5,1038,420,"cd5",t5p,22,false);
t5:SetScript(OE,function(self,event,...) Ts(t5,cd5,select(1,...),select(5,...),1856,120) end);
t6p="Interface\\Icons\\ability_rogue_dismantle";t6=CF(F);TrS(t6,1060,420,"cd6",t6p,22,false);
t6:SetScript(OE,function(self,event,...) Ts(t6,cd6,select(1,...),select(5,...),51722,60) end);
t7p="Interface\\Icons\\ability_rogue_shadowstep";t7=CF(F);TrS(t7,1082,420,"cd7",t7p,22,false);
t7:SetScript(OE,function(self,event,...) Ts(t7,cd7,select(1,...),select(5,...),36554,24) end);
t8p="Interface\\Icons\\spell_shadow_mindsteal";t8=CF(F);TrS(t8,1104,420,"cd8",t8p,22,false);
t8:SetScript(OE,function(self,event,...) Ts(t8,cd8,select(1,...),select(5,...),2094,120) end);
t9p="Interface\\Icons\\ability_rogue_smoke";t9=CF(F);TrS(t9,1126,420,"cd9",t9p,22,false);
t9:SetScript(OE,function(self,event,...) Ts(t9,cd9,select(1,...),select(5,...),76577,180) end);
t10p="Interface\\Icons\\ability_rogue_preparation";t10=CF(F);TrS(t10,1148,420,"cd10",t10p,22,true);
t10:SetScript(OE,function(self,event,...) Ts(t10,cd10,select(1,...),select(5,...),14185,300) end);
--Warlock cooldown`s
t11p="Interface\\Icons\\spell_shadow_deathscream";t11=CF(F);TrS(t11,950,390,"cd11",t11p,22,true);
t11:SetScript(OE,function(self,event,...) Ts(t11,cd11,select(1,...),select(5,...),5484,32) end);
t12p="Interface\\Icons\\spell_shadow_deathcoil";t12=CF(F);TrS(t12,972,390,"cd12",t12p,22,false);
t12:SetScript(OE,function(self,event,...) Ts(t12,cd12,select(1,...),select(5,...),6789,90) end);
t13p="Interface\\Icons\\spell_shadow_demoniccircleteleport";t13=CF(F);TrS(t13,994,390,"cd13",t13p,22,false);
t13:SetScript(OE,function(self,event,...) Ts(t13,cd13,select(1,...),select(5,...),48020,25) end);
t14p="Interface\\Icons\\spell_shadow_mindrot";t14=CF(F);TrS(t14,1016,390,"cd14",t14p,22,false);
t14:SetScript(OE,function(self,event,...) Ts(t14,cd14,select(1,...),select(5,...),19647,24) end);
t60p="Interface\\Icons\\spell_warlock_demonsoul";t60=CF(F);TrS(t60,1038,390,"cd61",t60p,22,true);
t60:SetScript(OE,function(self,event,...) Ts(t60,cd60,select(1,...),select(5,...),77801,120) end);
--mage cooldown`s--
t15p="Interface\\Icons\\ability_mage_deepfreeze";t15=CF(F);TrS(t15,950,360,"cd15",t15p,22,true);
t15:SetScript(OE,function(self,event,...) Ts(t15,cd15,select(1,...),select(5,...),44572,30) end);
t16p="Interface\\Icons\\spell_frost_wizardmark";t16=CF(F);TrS(t16,972,360,"cd16",t16p,22,false);
t16:SetScript(OE,function(self,event,...) Ts(t16,cd16,select(1,...),select(5,...),11958,480) end);
t17p="Interface\\Icons\\spell_arcane_blink";t17=CF(F);TrS(t17,994,360,"cd17",t17p,22,false);
t17:SetScript(OE,function(self,event,...) Ts(t17,cd17,select(1,...),select(5,...),1953,15) end);
t59p="Interface\\Icons\\spell_frost_iceshock";t59=CF(F);TrS(t59,1016,360,"cd59",t59p,22,true);
t59:SetScript(OE,function(self,event,...) Ts(t59,cd59,select(1,...),select(5,...),2139,24) end);
--death knight cooldowns--
t18p="Interface\\Icons\\spell_shadow_soulleech_3";t18=CF(F);TrS(t18,950,330,"cd18",t18p,22,true);
t18:SetScript(OE,function(self,event,...) Ts(t18,cd18,select(1,...),select(5,...),47476,120) end);
t19p="Interface\\Icons\\spell_shadow_antimagicshell";t19=CF(F);TrS(t19,972,330,"cd19",t19p,22,false);
t19:SetScript(OE,function(self,event,...) Ts(t19,cd19,select(1,...),select(5,...),48707,45) end);
t20p="Interface\\Icons\\spell_deathknight_iceboundfortitude";t20=CF(F);TrS(t20,994,330,"cd20",t20p,22,false);
t20:SetScript(OE,function(self,event,...) Ts(t20,cd20,select(1,...),select(5,...),48792,180) end);
t21p="Interface\\Icons\\inv_sword_62";t21=CF(F);TrS(t21,1016,330,"cd21",t21p,22,false);
t21:SetScript(OE,function(self,event,...) Ts(t21,cd21,select(1,...),select(5,...),47568,300) end);
t22p="Interface\\Icons\\spell_shadow_raisedead";t22=CF(F);TrS(t22,1038,330,"cd22",t22p,22,false);
t22:SetScript(OE,function(self,event,...) Ts(t22,cd22,select(1,...),select(5,...),49039,120) end);
t23p="Interface\\Icons\\spell_deathknight_strangulate";t23=CF(F);TrS(t23,1060,330,"cd23",t23p,22,false);
t23:SetScript(OE,function(self,event,...) Ts(t23,cd23,select(1,...),select(5,...),49576,25) end);
t24p="Interface\\Icons\\spell_deathknight_antimagiczone";t24=CF(F);TrS(t24,1082,330,"cd24",t24p,22,false);
t24:SetScript(OE,function(self,event,...) Ts(t24,cd24,select(1,...),select(5,...),51052,120) end);
t25p="Interface\\Icons\\ability_deathknight_summongargoyle";t25=CF(F);TrS(t25,1104,330,"cd25",t25p,22,true);
t25:SetScript(OE,function(self,event,...) Ts(t25,cd25,select(1,...),select(5,...),49206,180) end);
--priest cooldown`s--
t26p="Interface\\Icons\\spell_shadow_psychicscream";t26=CF(F);TrS(t26,950,300,"cd26",t26p,22,true);
t26:SetScript(OE,function(self,event,...) Ts(t26,cd26,select(1,...),select(5,...),8122,26) end);
t27p="Interface\\Icons\\spell_shadow_psychicscream";t27=CF(F);TrS(t27,972,300,"cd27",t27p,22,false);
t27:SetScript(OE,function(self,event,...) Ts(t27,cd27,select(1,...),select(5,...),8122,30) end);
t28p="Interface\\Icons\\spell_frost_windwalkon";t28=CF(F);TrS(t28,994,300,"cd28",t28p,22,false);
t28:SetScript(OE,function(self,event,...) Ts(t28,cd28,select(1,...),select(5,...),89485,45) end);
t29p="Interface\\Icons\\spell_holy_painsupression";t29=CF(F);TrS(t29,1016,300,"cd29",t29p,22,false);
t29:SetScript(OE,function(self,event,...) Ts(t29,cd29,select(1,...),select(5,...),33206,45) end);
t30p="Interface\\Icons\\spell_shadow_dispersion";t30=CF(F);TrS(t30,1038,300,"cd30",t30p,22,false);
t30:SetScript(OE,function(self,event,...) Ts(t30,cd30,select(1,...),select(5,...),47585,115) end);
t31p="Interface\\Icons\\spell_shadow_psychichorrors";t31=CF(F);TrS(t31,1060,300,"cd31",t31p,22,false);
t31:SetScript(OE,function(self,event,...) Ts(t31,cd31,select(1,...),select(5,...),64044,90) end);
t32p="Interface\\Icons\\ability_priest_silence";t32=CF(F);TrS(t32,1082,300,"cd32",t32p,22,true);
t32:SetScript(OE,function(self,event,...) Ts(t32,cd32,select(1,...),select(5,...),15487,45) end);
--paladin cooldown`s--
t33p="Interface\\Icons\\spell_holy_sealofvalor";t33=CF(F);TrS(t33,950,270,"cd33",t33p,22,true);
t33:SetScript(OE,function(self,event,...) Ts(t33,cd33,select(1,...),select(5,...),1044,25) end);
t34p="Interface\\Icons\\spell_holy_sealofmight";t34=CF(F);TrS(t34,972,270,"cd34",t34p,22,false);
t34:SetScript(OE,function(self,event,...) Ts(t34,cd34,select(1,...),select(5,...),853,40) end);
t58p="Interface\\Icons\\spell_holy_sealofmight";t58=CF(F);TrS(t58,994,270,"cd58",t58p,22,false);
t58:SetScript(OE,function(self,event,...) Ts(t58,cd58,select(1,...),select(5,...),853,60) end);
t35p="Interface\\Icons\\spell_holy_sealofsacrifice";t35=CF(F);TrS(t35,1016,270,"cd35",t35p,22,false);
t35:SetScript(OE,function(self,event,...) Ts(t35,cd35,select(1,...),select(5,...),6940,90) end);
t36p="Interface\\Icons\\spell_holy_sealofprotection";t36=CF(F);TrS(t36,1038,270,"cd36",t36p,22,false);
t36:SetScript(OE,function(self,event,...) Ts(t36,cd36,select(1,...),select(5,...),1022,180) end);
t37p="Interface\\Icons\\spell_holy_divineshield";t37=CF(F);TrS(t37,1060,270,"cd37",t37p,22,false);
t37:SetScript(OE,function(self,event,...) Ts(t37,cd37,select(1,...),select(5,...),642,300) end);
t38p="Interface\\Icons\\spell_holy_auramastery";t38=CF(F);TrS(t38,1082,270,"cd38",t38p,22,true);
t38:SetScript(OE,function(self,event,...) Ts(t38,cd38,select(1,...),select(5,...),31821,120) end);
--warior cooldown`s--
t39p="Interface\\Icons\\ability_warrior_charge";t39=CF(F);TrS(t39,950,240,"cd39",t39p,22,true);
t39:SetScript(OE,function(self,event,...) Ts(t39,cd39,select(1,...),select(5,...),100,13) end);
t40p="Interface\\Icons\\inv_mace_62";t40=CF(F);TrS(t40,972,240,"cd40",t40p,22,false);
t40:SetScript(OE,function(self,event,...) Ts(t40,cd40,select(1,...),select(5,...),85388,45) end);
t41p="Interface\\Icons\\ability_heroicleap";t41=CF(F);TrS(t41,994,240,"cd41",t41p,22,false);
t41:SetScript(OE,function(self,event,...) Ts(t41,cd41,select(1,...),select(5,...),6544,60) end);
t42p="Interface\\Icons\\spell_nature_ancestralguardian";t42=CF(F);TrS(t42,1016,240,"cd42",t42p,22,false);
t42:SetScript(OE,function(self,event,...) Ts(t42,cd42,select(1,...),select(5,...),18499,30) end);
t43p="Interface\\Icons\\ability_criticalstrike";t43=CF(F);TrS(t43,1038,240,"cd43",t43p,22,false);
t43:SetScript(OE,function(self,event,...) Ts(t43,cd43,select(1,...),select(5,...),1719,300) end);
t44p="Interface\\Icons\\ability_warrior_shieldwall";t44=CF(F);TrS(t44,1060,240,"cd44",t44p,22,true);
t44:SetScript(OE,function(self,event,...) Ts(t44,cd44,select(1,...),select(5,...),871,300) end);
--Druid cooldown`s--
t45p="Interface\\Icons\\ability_hunter_pet_bear";t45=CF(F);TrS(t45,950,210,"cd45",t45p,22,true);
t45:SetScript(OE,function(self,event,...) Ts(t45,cd45,select(1,...),select(5,...),16979,14) end);
t46p="Interface\\Icons\\spell_druid_feralchargecat";t46=CF(F);TrS(t46,972,210,"cd46",t46p,22,false);
t46:SetScript(OE,function(self,event,...) Ts(t46,cd46,select(1,...),select(5,...),49376,28) end);
t47p="Interface\\Icons\\spell_nature_stoneclawtotem";t47=CF(F);TrS(t47,994,210,"cd47",t47p,22,false);
t47:SetScript(OE,function(self,event,...) Ts(t47,cd47,select(1,...),select(5,...),22812,60) end);
t48p="Interface\\Icons\\ability_druid_bash";t48=CF(F);TrS(t48,1016,210,"cd48",t48p,22,false);
t48:SetScript(OE,function(self,event,...) Ts(t48,cd48,select(1,...),select(5,...),5211,60) end);
t49p="Interface\\Icons\\ability_druid_tigersroar";t49=CF(F);TrS(t49,1038,210,"cd49",t49p,22,false);
t49:SetScript(OE,function(self,event,...) Ts(t49,cd49,select(1,...),select(5,...),61336,180) end);
t50p="Interface\\Icons\\ability_druid_berserk";t50=CF(F);TrS(t50,1060,210,"cd50",t50p,22,true);
t50:SetScript(OE,function(self,event,...) Ts(t50,cd50,select(1,...),select(5,...),50334,180) end);
--Hunter cooldown`s--
t51p="Interface\\Icons\\ability_golemstormbolt";t51=CF(F);TrS(t51,950,180,"cd51",t51p,22,true);
t51:SetScript(OE,function(self,event,...) Ts(t51,cd51,select(1,...),select(5,...),19503,30) end);
t52p="Interface\\Icons\\spell_frost_chainsofice";t52=CF(F);TrS(t52,972,180,"cd52",t52p,22,false);
t52:SetScript(OE,function(self,event,...) Ts(t52,cd52,select(1,...),select(5,...),1499,30) end);
t53p="Interface\\Icons\\ability_whirlwind";t53=CF(F);TrS(t53,994,180,"cd53",t53p,22,false);
t53:SetScript(OE,function(self,event,...) Ts(t53,cd53,select(1,...),select(5,...),19263,120) end);
t54p="Interface\\Icons\\ability_rogue_feint";t54=CF(F);TrS(t54,1016,180,"cd54",t54p,22,false);
t54:SetScript(OE,function(self,event,...) Ts(t54,cd54,select(1,...),select(5,...),781,16) end);
--shaman cooldown`s--
t55p="Interface\\Icons\\spell_shaman_hex";t55=CF(F);TrS(t55,950,150,"cd55",t55p,22,true);
t55:SetScript(OE,function(self,event,...) Ts(t55,cd55,select(1,...),select(5,...),51514,35) end);
t56p="Interface\\Icons\\spell_shaman_spiritlink";t56=CF(F);TrS(t56,972,150,"cd56",t56p,22,false);
t56:SetScript(OE,function(self,event,...) Ts(t56,cd56,select(1,...),select(5,...),98008,180) end);
t57p="Interface\\Icons\\spell_nature_tremortotem";t57=CF(F);TrS(t57,994,150,"cd57",t57p,22,true);
t57:SetScript(OE,function(self,event,...) Ts(t57,cd57,select(1,...),select(5,...),8143,60) end);
--t61p:="Interface\\Icons\\spell_nature_groundingtotem";t61=CF(F);Trs(t61,1016,150,"cd61",t61p,22,true);
--t61:SetScript(OE,function(self,event,...) Ts(t61,cd61,select(1,...),select(5,...),8177,25) end);

Удали кусок, выделенный жирным. Насчет граундинга хуй знает, нужно через клиент тестить.
А и еще, нужно заменить true на false

Код:
t1p="Interface\\Icons\\ability_rogue_shadowdance";t1=CF(F);TrS(t1,950,420,"cd1",t1p,22,true);
t1:SetScript(OE,function(self,event,...) Ts(t1,cd1,select(1,...),select(5,...),51713,60) end);



26 авг 2012, 23:15
Профиль



<Попа в огне>


Сервер: Черный Шрам
2х2: 1822
3х3: 1567
0
Сообщение Скрипты Neilyo и не только

zarake писал(а):

that link is not working for me dunno why

page not found after the 5 4 3 2 1 count down when u click download

this code of default gladius

Код:

local trinkets = {}
local events = CreateFrame("Frame")

function events:ADDON_LOADED(addonName)
if addonName ~= "Blizzard_ArenaUI" then
return
end
ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame1:SetPoint("CENTER", nil, "CENTER", 209.0, 204.0)
--ArenaEnemyFrames:SetScale(1.1) 
local arenaFrame, trinket
for i = 1, MAX_ARENA_ENEMIES do
arenaFrame = "ArenaEnemyFrame"..i
trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
trinket:SetPoint("TOPRIGHT", arenaFrame, 30, -6)
trinket:SetSize(24, 24)
trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
trinket.icon:SetAllPoints()
trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
trinket:Hide()
trinkets["arena"..i] = trinket
end
self:UnregisterEvent("ADDON_LOADED")
end

function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
if not trinkets[unitID] then
return
end
if spellID == 59752 or spellID == 42292 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
elseif spellID == 7744 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
end
end

function events:PLAYER_ENTERING_WORLD()
local _, instanceType = IsInInstance()
if instanceType == "arena" then
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
for _, trinket in pairs(trinkets) do
trinket:SetCooldown(0, 0)
trinket:Hide()
end
end
end

SLASH_TESTAEF1 = "/testaef"
SlashCmdList["TESTAEF"] = function(msg, editBox)
if not IsAddOnLoaded("Blizzard_ArenaUI") then
LoadAddOn("Blizzard_ArenaUI")
end
ArenaEnemyFrames:Show()
local arenaFrame
for i = 1, 3 do
arenaFrame = _G["ArenaEnemyFrame"..i] 
arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
arenaFrame.name:SetText("Dispelme")
arenaFrame:Show()
CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1) 
end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
frame:RegisterEvent("ARENA_OPPONENT_UPDATE")
frame:RegisterEvent("ADDON_LOADED");

local function DoArenaColorHook()
hooksecurefunc("ArenaEnemyFrame_Unlock",
function(self)
local color=RAID_CLASS_COLORS[select(2,UnitClass(self.unit)) or ""]
if color then
self.healthbar:SetStatusBarColor(color.r,color.g,color.b)
self.healthbar.lockColor=true
end 
end
)
end

local function eventHandler(self, event, arg, ...)
if (event == "UNIT_FACTION" and arg ~= "target" and arg ~= "focus") then return end

if event == "ADDON_LOADED" then
if arg == "Blizzard_ArenaUI" then
self:UnregisterEvent(event);
DoArenaColorHook();
end
end 


end 
if IsAddOnLoaded("Blizzard_ArenaUI") then
DoArenaColorHook();
end 
frame:SetScript("OnEvent", eventHandler)

DRt={{5211,12809,44572,47481,2812,853,408,22570,6785,30283,46968,20549,85388,1833,9005},{118,6770,1776,49203,28272,28271,61305,61721,61780,82691,51514},{5782,8122,5484,20511,2094},{676,51722,64044},{12958,703,2139,50479,34490,13867,15487,19647,47476}} 
drx=86;drs=24;dp="RIGHT";dre="COMBAT_LOG_EVENT_UNFILTERED"drp="PLAYER_ENTERING_WORLD"dra="ARENA_OPPONENT_UPDATE"LoadAddOn("Blizzard_ArenaUI")function gaef(f,n)return _G["ArenaEnemyFrame"..n.."HealthBar"]end 
function rDR(f)f.e=1;f.t:SetTexture(nil)f.c:Hide()end function sDR(f)f.e=f.e+1;f.c:Show()end function gDRt(i,j)return _G["drc"..i..":"..j]end function runDR(f,n)CooldownFrame_SetTimer(f.c,GetTime(),18,1)eDR(f,n)sDR(f)oDR(n)end 
function eDR(f,n)local t=1;f:SetScript("OnUpdate",function(s,e)t=t+e;if(t>=18)then f:SetScript("OnUpdate",nil)rDR(f)oDR(n)end end)end function cDR(f,n,s)if f.e<4 then local _,_,t=GetSpellInfo(s)f.t:SetTexture(t)runDR(f,n)end end 
function oDR(n)local r=1;for j in ipairs(DRt)do local f=gDRt(n,j)f:SetPoint(dp,gaef(f,n),dp,drx+(r-1)*25,-2)r=r+1;end end function uDR(n,s)for i,t in ipairs(DRt)do for _,j in ipairs(t)do if s==j then cDR(gDRt(n,i),n,s)end end end end 
function DRc(i,j)local f=CreateFrame("Frame",nil,UIParent)f:SetSize(drs,drs)f.t=f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.c=CreateFrame("Cooldown",nil,f)f.c:SetAllPoints(f)f.e=1 return f end 
function clDR(_,e,_,_,_,_,_,d,_,_,_,s)if(e=="SPELL_AURA_REMOVED" or e=="SPELL_AURA_REFRESH")then for i=1,5 do local ag=UnitGUID("arena"..i)if(ag ~= nil and d==ag)then uDR(i,s)end end end end 
function iDRt(o,m)for i=1,m do for j in ipairs(DRt)do local f=gDRt(i,j)rDR(f)if o then f:Show()end end end end for i=1,5 do for j in ipairs(DRt)do _G["drc"..i..":"..j]=DRc(i,j)end end 
dt=CreateFrame("Frame")dt:SetScript("OnEvent",function(_,e,...)if e==dre then clDR(...)elseif e==dra then iDRt(1,GetNumArenaOpponents())else iDRt(nil,5)end end)dt:RegisterEvent(dra)dt:RegisterEvent(drp)dt:RegisterEvent(dre)

local f = CreateFrame("Frame")
local function Update(self, event, ...)

local pvpType = GetZonePVPInfo() 
f:UnregisterEvent("ZONE_CHANGED_NEW_AREA") 
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
if UnitInRaid("player") and GetNumRaidMembers() > 5 then channel = "RAID" elseif GetNumPartyMembers() > 0 then channel = "PARTY" else return end
-- local channel = "SAY"
local timestamp, eventType, _, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, _, spellID, spellName, _, extraskillID, extraSkillName = ...
if eventType == "SPELL_INTERRUPT" and sourceName == UnitName("player") then
SendChatMessage("Interrupted -> "..GetSpellLink(extraskillID).."!", channel)
end
end
end
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
f:RegisterEvent("ZONE_CHANGED_NEW_AREA")
f:SetScript("OnEvent", Update)

local function Update(self, event, ...)
if event == "UNIT_SPELLCAST_SUCCEEDED" then
local unit, spellName, spellrank, spelline, spellID = ...
if GetZonePVPInfo() == "arena" then
if UnitIsEnemy("player", unit) and (spellID == 80167 or spellID == 94468 or spellID == 43183 or spellID == 57073 or spellName == "Trinken") then
SendChatMessage(UnitName(unit).." is drinking.", "PARTY")
end
end
end
end

local f = CreateFrame("Frame")
f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
f:SetScript("OnEvent", Update)

 


Кстати, wit4er, почему то на бете вов начинал жутко фризить из за скрипта на скейл дефолтных фреймов пати...Остальное (фреймы игрока/фокуса/таргета/каст бары/экшн бары) скейлится нормально.



26 авг 2012, 23:35
Профиль



<Имя Говорит Само за Себя>


Сервер: Гордунни
0
Сообщение Скрипты Neilyo и не только

Reimu писал(а):

zarake писал(а):

that link is not working for me dunno why

page not found after the 5 4 3 2 1 count down when u click download

this code of default gladius

Код:

local trinkets = {}
local events = CreateFrame("Frame")

function events:ADDON_LOADED(addonName)
if addonName ~= "Blizzard_ArenaUI" then
return
end
ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame1:SetPoint("CENTER", nil, "CENTER", 209.0, 204.0)
--ArenaEnemyFrames:SetScale(1.1) 
local arenaFrame, trinket
for i = 1, MAX_ARENA_ENEMIES do
arenaFrame = "ArenaEnemyFrame"..i
trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
trinket:SetPoint("TOPRIGHT", arenaFrame, 30, -6)
trinket:SetSize(24, 24)
trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
trinket.icon:SetAllPoints()
trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
trinket:Hide()
trinkets["arena"..i] = trinket
end
self:UnregisterEvent("ADDON_LOADED")
end

function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
if not trinkets[unitID] then
return
end
if spellID == 59752 or spellID == 42292 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
elseif spellID == 7744 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
end
end

function events:PLAYER_ENTERING_WORLD()
local _, instanceType = IsInInstance()
if instanceType == "arena" then
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
for _, trinket in pairs(trinkets) do
trinket:SetCooldown(0, 0)
trinket:Hide()
end
end
end

SLASH_TESTAEF1 = "/testaef"
SlashCmdList["TESTAEF"] = function(msg, editBox)
if not IsAddOnLoaded("Blizzard_ArenaUI") then
LoadAddOn("Blizzard_ArenaUI")
end
ArenaEnemyFrames:Show()
local arenaFrame
for i = 1, 3 do
arenaFrame = _G["ArenaEnemyFrame"..i] 
arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
arenaFrame.name:SetText("Dispelme")
arenaFrame:Show()
CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1) 
end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
frame:RegisterEvent("ARENA_OPPONENT_UPDATE")
frame:RegisterEvent("ADDON_LOADED");

local function DoArenaColorHook()
hooksecurefunc("ArenaEnemyFrame_Unlock",
function(self)
local color=RAID_CLASS_COLORS[select(2,UnitClass(self.unit)) or ""]
if color then
self.healthbar:SetStatusBarColor(color.r,color.g,color.b)
self.healthbar.lockColor=true
end 
end
)
end

local function eventHandler(self, event, arg, ...)
if (event == "UNIT_FACTION" and arg ~= "target" and arg ~= "focus") then return end

if event == "ADDON_LOADED" then
if arg == "Blizzard_ArenaUI" then
self:UnregisterEvent(event);
DoArenaColorHook();
end
end 


end 
if IsAddOnLoaded("Blizzard_ArenaUI") then
DoArenaColorHook();
end 
frame:SetScript("OnEvent", eventHandler)

DRt={{5211,12809,44572,47481,2812,853,408,22570,6785,30283,46968,20549,85388,1833,9005},{118,6770,1776,49203,28272,28271,61305,61721,61780,82691,51514},{5782,8122,5484,20511,2094},{676,51722,64044},{12958,703,2139,50479,34490,13867,15487,19647,47476}} 
drx=86;drs=24;dp="RIGHT";dre="COMBAT_LOG_EVENT_UNFILTERED"drp="PLAYER_ENTERING_WORLD"dra="ARENA_OPPONENT_UPDATE"LoadAddOn("Blizzard_ArenaUI")function gaef(f,n)return _G["ArenaEnemyFrame"..n.."HealthBar"]end 
function rDR(f)f.e=1;f.t:SetTexture(nil)f.c:Hide()end function sDR(f)f.e=f.e+1;f.c:Show()end function gDRt(i,j)return _G["drc"..i..":"..j]end function runDR(f,n)CooldownFrame_SetTimer(f.c,GetTime(),18,1)eDR(f,n)sDR(f)oDR(n)end 
function eDR(f,n)local t=1;f:SetScript("OnUpdate",function(s,e)t=t+e;if(t>=18)then f:SetScript("OnUpdate",nil)rDR(f)oDR(n)end end)end function cDR(f,n,s)if f.e<4 then local _,_,t=GetSpellInfo(s)f.t:SetTexture(t)runDR(f,n)end end 
function oDR(n)local r=1;for j in ipairs(DRt)do local f=gDRt(n,j)f:SetPoint(dp,gaef(f,n),dp,drx+(r-1)*25,-2)r=r+1;end end function uDR(n,s)for i,t in ipairs(DRt)do for _,j in ipairs(t)do if s==j then cDR(gDRt(n,i),n,s)end end end end 
function DRc(i,j)local f=CreateFrame("Frame",nil,UIParent)f:SetSize(drs,drs)f.t=f:CreateTexture(nil,"BORDER")f.t:SetAllPoints(true)f.c=CreateFrame("Cooldown",nil,f)f.c:SetAllPoints(f)f.e=1 return f end 
function clDR(_,e,_,_,_,_,_,d,_,_,_,s)if(e=="SPELL_AURA_REMOVED" or e=="SPELL_AURA_REFRESH")then for i=1,5 do local ag=UnitGUID("arena"..i)if(ag ~= nil and d==ag)then uDR(i,s)end end end end 
function iDRt(o,m)for i=1,m do for j in ipairs(DRt)do local f=gDRt(i,j)rDR(f)if o then f:Show()end end end end for i=1,5 do for j in ipairs(DRt)do _G["drc"..i..":"..j]=DRc(i,j)end end 
dt=CreateFrame("Frame")dt:SetScript("OnEvent",function(_,e,...)if e==dre then clDR(...)elseif e==dra then iDRt(1,GetNumArenaOpponents())else iDRt(nil,5)end end)dt:RegisterEvent(dra)dt:RegisterEvent(drp)dt:RegisterEvent(dre)

local f = CreateFrame("Frame")
local function Update(self, event, ...)

local pvpType = GetZonePVPInfo() 
f:UnregisterEvent("ZONE_CHANGED_NEW_AREA") 
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
if UnitInRaid("player") and GetNumRaidMembers() > 5 then channel = "RAID" elseif GetNumPartyMembers() > 0 then channel = "PARTY" else return end
-- local channel = "SAY"
local timestamp, eventType, _, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, _, spellID, spellName, _, extraskillID, extraSkillName = ...
if eventType == "SPELL_INTERRUPT" and sourceName == UnitName("player") then
SendChatMessage("Interrupted -> "..GetSpellLink(extraskillID).."!", channel)
end
end
end
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
f:RegisterEvent("ZONE_CHANGED_NEW_AREA")
f:SetScript("OnEvent", Update)

local function Update(self, event, ...)
if event == "UNIT_SPELLCAST_SUCCEEDED" then
local unit, spellName, spellrank, spelline, spellID = ...
if GetZonePVPInfo() == "arena" then
if UnitIsEnemy("player", unit) and (spellID == 80167 or spellID == 94468 or spellID == 43183 or spellID == 57073 or spellName == "Trinken") then
SendChatMessage(UnitName(unit).." is drinking.", "PARTY")
end
end
end
end

local f = CreateFrame("Frame")
f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
f:SetScript("OnEvent", Update)

 

Кстати, wit4er, почему то на бете вов начинал жутко фризить из за скрипта на скейл дефолтных фреймов пати...Остальное (фреймы игрока/фокуса/таргета/каст бары/экшн бары) скейлится нормально.

ну понятное дело, новый аддон - изменения в коде игры



26 авг 2012, 23:41
Профиль

0
Сообщение Скрипты Neilyo и не только

mind if u give me the PartyTrinkets to please



26 авг 2012, 23:57
Профиль

0
Сообщение Скрипты Neilyo и не только

есть ли что нибудь по улучшению дефолтных неймплейтов? в частности убирание красной рамки при агро, может шрифт уменьшить, а то больно обьемно это.



27 авг 2012, 03:47
Профиль



<Попа в огне>


Сервер: Черный Шрам
2х2: 1822
3х3: 1567
0
Сообщение Скрипты Neilyo и не только

Красную рамку аггро можно и так убрать: Интерфейс -- Изображение -- Предупреждать об угрозе. Ставишь "Никогда" и рамку аггро больше не увидишь.



27 авг 2012, 04:17
Профиль

0
Сообщение Скрипты Neilyo и не только

спасибо. но все равно хотелось бы услышать, есть ли возможность "оптимизировать" дефолтные неймплейты?



27 авг 2012, 08:25
Профиль






Сервер: Outland
Рейтинг поля боя: 1859
2х2: 2438
3х3: 2441
0
Сообщение Скрипты Neilyo и не только

Как скрыть фон таргета и фокуса. 

Код:

TargetFrameNameBackground:Hide()
FocusFrameNameBackground:Hide()

Не помогает уже с патчем.

Некоторые аддоны интерфейс требует отключат, чтобы сменить глифы или таланты.

 



29 авг 2012, 14:13
Профиль



<Oùt of Control>


Сервер: Outland
Рейтинг поля боя: 2156
2х2: 2467
3х3: 2833
Сообщение Скрипты Neilyo и не только

Вот 5.0.4 и настал пиздец, скрипт ваще не работает, чё делать народ как его оживить?:D



29 авг 2012, 17:37
Профиль Skype



<Попа в огне>


Сервер: Черный Шрам
2х2: 1822
3х3: 1567
0
Сообщение Скрипты Neilyo и не только

Ну некоторые все же пашут. Вот то, что работает у меня.

Код:

--Pet Frame
PetActionBarFrame:SetParent(UIParent)
PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetPoint("CENTER", 32,-358)
PetActionBarFrame.SetPoint = function() end
PetActionBarFrame:SetScale(1.1)

--Scaling
MultiBarRight:SetScale (0.95)
BuffFrame:SetScale(0.9)
FocusFrame:SetScale(0.95)
PlayerFrame:SetScale(0.95)
FocusFrameSpellBar:SetScale(1.25)
TargetFrameSpellBar:SetScale(1.25)

--Disable combat text (damage/healing spam) over your and your pets frame

PlayerHitIndicator:SetText(nil)
PlayerHitIndicator.SetText = function() end

PetHitIndicator:SetText(nil)
PetHitIndicator.SetText = function() end

--Class icons instead of portrait

hooksecurefunc("UnitFramePortrait_Update",function(self)
if self.portrait then
if UnitIsPlayer(self.unit) then
local t = CLASS_ICON_TCOORDS[select(2, UnitClass(self.unit))]
if t then
self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
self.portrait:SetTexCoord(unpack(t))
end
else
self.portrait:SetTexCoord(0,1,0,1)
end
end
end)
--Hide gryphons

MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()

--Hide the error (red text) frame

UIErrorsFrame:SetAlpha(0)

--Class colors in the empty bar of the unitframes (name background)

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")

local function eventHandler(self, event, ...)
if UnitIsPlayer("target") then
c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
if UnitIsPlayer("focus") then
c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
end

frame:SetScript("OnEvent", eventHandler)

--Class colors in target name background

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
frame:RegisterEvent("ARENA_OPPONENT_UPDATE")
frame:RegisterEvent("ADDON_LOADED");

local function DoArenaColorHook()
hooksecurefunc("ArenaEnemyFrame_Unlock",
function(self)
local color=RAID_CLASS_COLORS[select(2,UnitClass(self.unit)) or ""]
if color then
self.healthbar:SetStatusBarColor(color.r,color.g,color.b)
self.healthbar.lockColor=true
end
end
)
end

local function eventHandler(self, event, arg, ...)
if (event == "UNIT_FACTION" and arg ~= "target" and arg ~= "focus") then return end

if event == "ADDON_LOADED" then
if arg == "Blizzard_ArenaUI" then
self:UnregisterEvent(event);
DoArenaColorHook();
end
end

--[[if UnitIsPlayer("target") then
_, class = UnitClass("target")
c = RAID_CLASS_COLORS[class]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b )
end
if UnitIsPlayer("focus") then
_, class = UnitClass("focus")
c = RAID_CLASS_COLORS[class]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b )
end ]]--
end


if IsAddOnLoaded("Blizzard_ArenaUI") then
DoArenaColorHook();
end

frame:SetScript("OnEvent", eventHandler)

--Brighter targetname and focusname textures (fix)

for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground})
do
BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end

--Red Hover When OUT OF RANGE

hooksecurefunc("ActionButton_OnEvent",function(self, event, ...)
if ( event == "PLAYER_TARGET_CHANGED" ) then
self.newTimer = self.rangeTimer
end
end)

hooksecurefunc("ActionButton_UpdateUsable",function(self)
local icon = _G[self:GetName().."Icon"]
local valid = IsActionInRange(self.action)

if ( valid == 0 ) then
icon:SetVertexColor(1.0, 0.1, 0.1)
end
end)

hooksecurefunc("ActionButton_OnUpdate",function(self, elapsed)
local rangeTimer = self.newTimer

if ( rangeTimer ) then
rangeTimer = rangeTimer - elapsed

if ( rangeTimer <= 0 ) then
ActionButton_UpdateUsable(self)
rangeTimer = TOOLTIP_UPDATE_TIME
end

self.newTimer = rangeTimer
end
end)

--Arena Trinkets
local trinkets = {}
local events = CreateFrame("Frame")

function events:ADDON_LOADED(addonName)
if addonName ~= "Blizzard_ArenaUI" then
return
end
ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame1:SetPoint("CENTER", nil, "CENTER", 230.0, 50.0)
ArenaEnemyFrame2:ClearAllPoints()
ArenaEnemyFrame2:SetPoint("CENTER", nil, "CENTER", 230.0, 0.0)
ArenaEnemyFrame3:ClearAllPoints()
ArenaEnemyFrame3:SetPoint("CENTER", nil, "CENTER", 230.0, -50.0)
ArenaEnemyFrames:SetScale(1.5)
local arenaFrame, trinket
for i = 1, MAX_ARENA_ENEMIES do
arenaFrame = "ArenaEnemyFrame"..i
trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
trinket:SetPoint("TOPRIGHT", arenaFrame, 18, -4)
trinket:SetSize(27, 27)
trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
trinket.icon:SetAllPoints()
trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
trinket:Hide()
trinkets["arena"..i] = trinket
end
self:UnregisterEvent("ADDON_LOADED")
end

function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
if not trinkets[unitID] then
return
end
if spellID == 59752 or spellID == 42292 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
elseif spellID == 7744 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
end
end

function events:PLAYER_ENTERING_WORLD()
local _, instanceType = IsInInstance()
if instanceType == "arena" then
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
for _, trinket in pairs(trinkets) do
trinket:SetCooldown(0, 0)
trinket:Hide()
end
end
end

SLASH_TESTAEF1 = "/testaef"
SlashCmdList["TESTAEF"] = function(msg, editBox)
if not IsAddOnLoaded("Blizzard_ArenaUI") then
LoadAddOn("Blizzard_ArenaUI")
end
ArenaEnemyFrames:Show()
local arenaFrame
for i = 1, 3 do
arenaFrame = _G["ArenaEnemyFrame"..i]
arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
arenaFrame.name:SetText("Dispelme")
arenaFrame:Show()
CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1)
end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

--Camera Distanse

SetCVar("cameraDistanceMax",30)

--Focuser
local modifier = "alt"
local mouseButton = "1"

local function SetFocusHotkey(frame)
frame:SetAttribute(modifier.."-type"..mouseButton,"focus")
end

local function CreateFrame_Hook(type, name, parent, template)
if template == "SecureUnitButtonTemplate" then
SetFocusHotkey(_G[name])
end
end

hooksecurefunc("CreateFrame", CreateFrame_Hook)

local f = CreateFrame("CheckButton", "FocuserButton", UIParent, "SecureActionButtonTemplate")
f:SetAttribute("type1","macro")
f:SetAttribute("macrotext","/focus mouseover")
SetOverrideBindingClick(FocuserButton,true,modifier.."-BUTTON"..mouseButton,"FocuserButton")

local duf = {
PlayerFrame,
PetFrame,
PartyMemberFrame1,
PartyMemberFrame2,
PartyMemberFrame3,
PartyMemberFrame4,
PartyMemberFrame1PetFrame,
PartyMemberFrame2PetFrame,
PartyMemberFrame3PetFrame,
PartyMemberFrame4PetFrame,
TargetFrame,
TargetofTargetFrame,
ArenaEnemyFrame1,
ArenaEnemyFrame2,
ArenaEnemyFrame3,
ArenaEnemyFrame4,
ArenaEnemyFrame5,
ArenaEnemyFrame1PetFrame,
ArenaEnemyFrame2PetFrame,
ArenaEnemyFrame3PetFrame,
ArenaEnemyFrame4PetFrame,
ArenaEnemyFrame5PetFrame,
}

for i,frame in pairs(duf) do
SetFocusHotkey(frame)
end

--eAlign

SLASH_EA1 = "/align"

local f

SlashCmdList["EA"] = function()
if f then
f:Hide()
f = nil
else
f = CreateFrame('Frame', nil, UIParent)
f:SetAllPoints(UIParent)
local w = GetScreenWidth() / 64
local h = GetScreenHeight() / 36
for i = 0, 64 do
local t = f:CreateTexture(nil, 'BACKGROUND')
if i == 32 then
t:SetTexture(1, 0, 0, 0.5)
else
t:SetTexture(0, 0, 0, 0.5)
end
t:SetPoint('TOPLEFT', f, 'TOPLEFT', i * w - 1, 0)
t:SetPoint('BOTTOMRIGHT', f, 'BOTTOMLEFT', i * w + 1, 0)
end
for i = 0, 36 do
local t = f:CreateTexture(nil, 'BACKGROUND')
if i == 18 then
t:SetTexture(1, 0, 0, 0.5)
else
t:SetTexture(0, 0, 0, 0.5)
end
t:SetPoint('TOPLEFT', f, 'TOPLEFT', 0, -i * h + 1)
t:SetPoint('BOTTOMRIGHT', f, 'TOPRIGHT', 0, -i * h - 1)
end
end
end

--Dark Frames

local ef=CreateFrame("Frame")

ef:RegisterEvent("ADDON_LOADED")
ef:SetScript("OnEvent", function(self, event, addon)
if(addon=="Blizzard_TimeManager") then
for i,v in pairs({

PlayerFrameTexture,
TargetFrameTextureFrameTexture,
PetFrameTexture,
PartyMemberFrame1Texture,
PartyMemberFrame2Texture,
PartyMemberFrame3Texture,
PartyMemberFrame4Texture,
PartyMemberFrame1PetFrameTexture,
PartyMemberFrame2PetFrameTexture,
PartyMemberFrame3PetFrameTexture,
PartyMemberFrame4PetFrameTexture,
FocusFrameTextureFrameTexture,
TargetFrameToTTextureFrameTexture,
FocusFrameToTTextureFrameTexture,
BonusActionBarFrameTexture0,
BonusActionBarFrameTexture1,
BonusActionBarFrameTexture2,
BonusActionBarFrameTexture3,
BonusActionBarFrameTexture4,
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,
MinimapBorder,
CastingBarFrameBorder,
FocusFrameSpellBarBorder,
TargetFrameSpellBarBorder,
MiniMapTrackingButtonBorder,
MiniMapLFGFrameBorder,
MiniMapBattlefieldBorder,
MiniMapMailBorder,

select(1, TimeManagerClockButton:GetRegions()),
--select(1, GameTimeFrame:GetRegions()),
}) do
v:SetVertexColor(.4, .4, .4)
end
for i,v in pairs({
select(2, TimeManagerClockButton:GetRegions()),
}) do
v:SetVertexColor(1, 1, 1)
end
self:UnregisterEvent("ADDON_LOADED")
ef:SetScript("OnEvent", nil)
end
end)
for i,v in pairs({
MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,
}) do
v:SetVertexColor(.35, .35, .35)
end

--Cast timer for the player cast bar

CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil);
CastingBarFrame.timer:SetFont(STANDARD_TEXT_FONT,12,"OUTLINE");
CastingBarFrame.timer:SetPoint("TOP", CastingBarFrame, "BOTTOM", 0, 0);
CastingBarFrame.update = .1;

hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
if not self.timer then return end
if self.update and self.update < elapsed then
if self.casting then
self.timer:SetText(format("%2.1f/%1.1f", max(self.maxValue - self.value, 0), self.maxValue))
elseif self.channeling then
self.timer:SetText(format("%.1f", max(self.value, 0)))
else
self.timer:SetText("")
end
self.update = .1
else
self.update = self.update - elapsed
end
end)

 

 

 

Дефолт Гладиус жутко фризит игру, видимо куском кода с диминишингами. Портрет таймерс так же фризит игру. ФПС падает до 4 хД



29 авг 2012, 18:13
Профиль






Сервер: Outland
Рейтинг поля боя: 1859
2х2: 2438
3х3: 2441
0
Сообщение Скрипты Neilyo и не только

Reimu писал(а):

Ну некоторые все же пашут. Вот то, что работает у меня.

Код:

--Pet Frame
PetActionBarFrame:SetParent(UIParent)
PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetPoint("CENTER", 32,-358)
PetActionBarFrame.SetPoint = function() end
PetActionBarFrame:SetScale(1.1)

--Scaling
MultiBarRight:SetScale (0.95)
BuffFrame:SetScale(0.9)
FocusFrame:SetScale(0.95)
PlayerFrame:SetScale(0.95)
FocusFrameSpellBar:SetScale(1.25)
TargetFrameSpellBar:SetScale(1.25)

--Disable combat text (damage/healing spam) over your and your pets frame

PlayerHitIndicator:SetText(nil)
PlayerHitIndicator.SetText = function() end

PetHitIndicator:SetText(nil)
PetHitIndicator.SetText = function() end

--Class icons instead of portrait

hooksecurefunc("UnitFramePortrait_Update",function(self)
if self.portrait then
if UnitIsPlayer(self.unit) then
local t = CLASS_ICON_TCOORDS[select(2, UnitClass(self.unit))]
if t then
self.portrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
self.portrait:SetTexCoord(unpack(t))
end
else
self.portrait:SetTexCoord(0,1,0,1)
end
end
end)
--Hide gryphons

MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()

--Hide the error (red text) frame

UIErrorsFrame:SetAlpha(0)

--Class colors in the empty bar of the unitframes (name background)

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")

local function eventHandler(self, event, ...)
if UnitIsPlayer("target") then
c = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
if UnitIsPlayer("focus") then
c = RAID_CLASS_COLORS[select(2, UnitClass("focus"))]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b)
end
end

frame:SetScript("OnEvent", eventHandler)

--Class colors in target name background

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:RegisterEvent("PARTY_MEMBERS_CHANGED")
frame:RegisterEvent("PLAYER_TARGET_CHANGED")
frame:RegisterEvent("PLAYER_FOCUS_CHANGED")
frame:RegisterEvent("UNIT_FACTION")
frame:RegisterEvent("ARENA_OPPONENT_UPDATE")
frame:RegisterEvent("ADDON_LOADED");

local function DoArenaColorHook()
hooksecurefunc("ArenaEnemyFrame_Unlock",
function(self)
local color=RAID_CLASS_COLORS[select(2,UnitClass(self.unit)) or ""]
if color then
self.healthbar:SetStatusBarColor(color.r,color.g,color.b)
self.healthbar.lockColor=true
end
end
)
end

local function eventHandler(self, event, arg, ...)
if (event == "UNIT_FACTION" and arg ~= "target" and arg ~= "focus") then return end

if event == "ADDON_LOADED" then
if arg == "Blizzard_ArenaUI" then
self:UnregisterEvent(event);
DoArenaColorHook();
end
end

--[[if UnitIsPlayer("target") then
_, class = UnitClass("target")
c = RAID_CLASS_COLORS[class]
TargetFrameNameBackground:SetVertexColor(c.r, c.g, c.b )
end
if UnitIsPlayer("focus") then
_, class = UnitClass("focus")
c = RAID_CLASS_COLORS[class]
FocusFrameNameBackground:SetVertexColor(c.r, c.g, c.b )
end ]]--
end


if IsAddOnLoaded("Blizzard_ArenaUI") then
DoArenaColorHook();
end

frame:SetScript("OnEvent", eventHandler)

--Brighter targetname and focusname textures (fix)

for _, BarTextures in pairs({TargetFrameNameBackground, FocusFrameNameBackground})
do
BarTextures:SetTexture("Interface\\TargetingFrame\\UI-StatusBar")
end

--Red Hover When OUT OF RANGE

hooksecurefunc("ActionButton_OnEvent",function(self, event, ...)
if ( event == "PLAYER_TARGET_CHANGED" ) then
self.newTimer = self.rangeTimer
end
end)

hooksecurefunc("ActionButton_UpdateUsable",function(self)
local icon = _G[self:GetName().."Icon"]
local valid = IsActionInRange(self.action)

if ( valid == 0 ) then
icon:SetVertexColor(1.0, 0.1, 0.1)
end
end)

hooksecurefunc("ActionButton_OnUpdate",function(self, elapsed)
local rangeTimer = self.newTimer

if ( rangeTimer ) then
rangeTimer = rangeTimer - elapsed

if ( rangeTimer <= 0 ) then
ActionButton_UpdateUsable(self)
rangeTimer = TOOLTIP_UPDATE_TIME
end

self.newTimer = rangeTimer
end
end)

--Arena Trinkets
local trinkets = {}
local events = CreateFrame("Frame")

function events:ADDON_LOADED(addonName)
if addonName ~= "Blizzard_ArenaUI" then
return
end
ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame1:SetPoint("CENTER", nil, "CENTER", 230.0, 50.0)
ArenaEnemyFrame2:ClearAllPoints()
ArenaEnemyFrame2:SetPoint("CENTER", nil, "CENTER", 230.0, 0.0)
ArenaEnemyFrame3:ClearAllPoints()
ArenaEnemyFrame3:SetPoint("CENTER", nil, "CENTER", 230.0, -50.0)
ArenaEnemyFrames:SetScale(1.5)
local arenaFrame, trinket
for i = 1, MAX_ARENA_ENEMIES do
arenaFrame = "ArenaEnemyFrame"..i
trinket = CreateFrame("Cooldown", arenaFrame.."Trinket", ArenaEnemyFrames)
trinket:SetPoint("TOPRIGHT", arenaFrame, 18, -4)
trinket:SetSize(27, 27)
trinket.icon = trinket:CreateTexture(nil, "BACKGROUND")
trinket.icon:SetAllPoints()
trinket.icon:SetTexture("Interface\\Icons\\inv_jewelry_trinketpvp_01")
trinket:Hide()
trinkets["arena"..i] = trinket
end
self:UnregisterEvent("ADDON_LOADED")
end

function events:UNIT_SPELLCAST_SUCCEEDED(unitID, spell, rank, lineID, spellID)
if not trinkets[unitID] then
return
end
if spellID == 59752 or spellID == 42292 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 120, 1)
SendChatMessage("Trinket used by: "..GetUnitName(unitID, true), "PARTY")
elseif spellID == 7744 then
CooldownFrame_SetTimer(trinkets[unitID], GetTime(), 45, 1)
SendChatMessage("WotF used by: "..GetUnitName(unitID, true), "PARTY")
end
end

function events:PLAYER_ENTERING_WORLD()
local _, instanceType = IsInInstance()
if instanceType == "arena" then
self:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")
elseif self:IsEventRegistered("UNIT_SPELLCAST_SUCCEEDED") then
self:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")
for _, trinket in pairs(trinkets) do
trinket:SetCooldown(0, 0)
trinket:Hide()
end
end
end

SLASH_TESTAEF1 = "/testaef"
SlashCmdList["TESTAEF"] = function(msg, editBox)
if not IsAddOnLoaded("Blizzard_ArenaUI") then
LoadAddOn("Blizzard_ArenaUI")
end
ArenaEnemyFrames:Show()
local arenaFrame
for i = 1, 3 do
arenaFrame = _G["ArenaEnemyFrame"..i]
arenaFrame.classPortrait:SetTexture("Interface\\TargetingFrame\\UI-Classes-Circles")
arenaFrame.classPortrait:SetTexCoord(unpack(CLASS_ICON_TCOORDS["WARRIOR"]))
arenaFrame.name:SetText("Dispelme")
arenaFrame:Show()
CooldownFrame_SetTimer(trinkets["arena"..i], GetTime(), 120, 1)
end
end

events:SetScript("OnEvent", function(self, event, ...) return self[event](self, ...) end)
events:RegisterEvent("ADDON_LOADED")
events:RegisterEvent("PLAYER_ENTERING_WORLD")

--Camera Distanse

SetCVar("cameraDistanceMax",30)

--Focuser
local modifier = "alt"
local mouseButton = "1"

local function SetFocusHotkey(frame)
frame:SetAttribute(modifier.."-type"..mouseButton,"focus")
end

local function CreateFrame_Hook(type, name, parent, template)
if template == "SecureUnitButtonTemplate" then
SetFocusHotkey(_G[name])
end
end

hooksecurefunc("CreateFrame", CreateFrame_Hook)

local f = CreateFrame("CheckButton", "FocuserButton", UIParent, "SecureActionButtonTemplate")
f:SetAttribute("type1","macro")
f:SetAttribute("macrotext","/focus mouseover")
SetOverrideBindingClick(FocuserButton,true,modifier.."-BUTTON"..mouseButton,"FocuserButton")

local duf = {
PlayerFrame,
PetFrame,
PartyMemberFrame1,
PartyMemberFrame2,
PartyMemberFrame3,
PartyMemberFrame4,
PartyMemberFrame1PetFrame,
PartyMemberFrame2PetFrame,
PartyMemberFrame3PetFrame,
PartyMemberFrame4PetFrame,
TargetFrame,
TargetofTargetFrame,
ArenaEnemyFrame1,
ArenaEnemyFrame2,
ArenaEnemyFrame3,
ArenaEnemyFrame4,
ArenaEnemyFrame5,
ArenaEnemyFrame1PetFrame,
ArenaEnemyFrame2PetFrame,
ArenaEnemyFrame3PetFrame,
ArenaEnemyFrame4PetFrame,
ArenaEnemyFrame5PetFrame,
}

for i,frame in pairs(duf) do
SetFocusHotkey(frame)
end

--eAlign

SLASH_EA1 = "/align"

local f

SlashCmdList["EA"] = function()
if f then
f:Hide()
f = nil
else
f = CreateFrame('Frame', nil, UIParent)
f:SetAllPoints(UIParent)
local w = GetScreenWidth() / 64
local h = GetScreenHeight() / 36
for i = 0, 64 do
local t = f:CreateTexture(nil, 'BACKGROUND')
if i == 32 then
t:SetTexture(1, 0, 0, 0.5)
else
t:SetTexture(0, 0, 0, 0.5)
end
t:SetPoint('TOPLEFT', f, 'TOPLEFT', i * w - 1, 0)
t:SetPoint('BOTTOMRIGHT', f, 'BOTTOMLEFT', i * w + 1, 0)
end
for i = 0, 36 do
local t = f:CreateTexture(nil, 'BACKGROUND')
if i == 18 then
t:SetTexture(1, 0, 0, 0.5)
else
t:SetTexture(0, 0, 0, 0.5)
end
t:SetPoint('TOPLEFT', f, 'TOPLEFT', 0, -i * h + 1)
t:SetPoint('BOTTOMRIGHT', f, 'TOPRIGHT', 0, -i * h - 1)
end
end
end

--Dark Frames

local ef=CreateFrame("Frame")

ef:RegisterEvent("ADDON_LOADED")
ef:SetScript("OnEvent", function(self, event, addon)
if(addon=="Blizzard_TimeManager") then
for i,v in pairs({

PlayerFrameTexture,
TargetFrameTextureFrameTexture,
PetFrameTexture,
PartyMemberFrame1Texture,
PartyMemberFrame2Texture,
PartyMemberFrame3Texture,
PartyMemberFrame4Texture,
PartyMemberFrame1PetFrameTexture,
PartyMemberFrame2PetFrameTexture,
PartyMemberFrame3PetFrameTexture,
PartyMemberFrame4PetFrameTexture,
FocusFrameTextureFrameTexture,
TargetFrameToTTextureFrameTexture,
FocusFrameToTTextureFrameTexture,
BonusActionBarFrameTexture0,
BonusActionBarFrameTexture1,
BonusActionBarFrameTexture2,
BonusActionBarFrameTexture3,
BonusActionBarFrameTexture4,
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,
MinimapBorder,
CastingBarFrameBorder,
FocusFrameSpellBarBorder,
TargetFrameSpellBarBorder,
MiniMapTrackingButtonBorder,
MiniMapLFGFrameBorder,
MiniMapBattlefieldBorder,
MiniMapMailBorder,

select(1, TimeManagerClockButton:GetRegions()),
--select(1, GameTimeFrame:GetRegions()),
}) do
v:SetVertexColor(.4, .4, .4)
end
for i,v in pairs({
select(2, TimeManagerClockButton:GetRegions()),
}) do
v:SetVertexColor(1, 1, 1)
end
self:UnregisterEvent("ADDON_LOADED")
ef:SetScript("OnEvent", nil)
end
end)
for i,v in pairs({
MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,
}) do
v:SetVertexColor(.35, .35, .35)
end

--Cast timer for the player cast bar

CastingBarFrame.timer = CastingBarFrame:CreateFontString(nil);
CastingBarFrame.timer:SetFont(STANDARD_TEXT_FONT,12,"OUTLINE");
CastingBarFrame.timer:SetPoint("TOP", CastingBarFrame, "BOTTOM", 0, 0);
CastingBarFrame.update = .1;

hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
if not self.timer then return end
if self.update and self.update < elapsed then
if self.casting then
self.timer:SetText(format("%2.1f/%1.1f", max(self.maxValue - self.value, 0), self.maxValue))
elseif self.channeling then
self.timer:SetText(format("%.1f", max(self.value, 0)))
else
self.timer:SetText("")
end
self.update = .1
else
self.update = self.update - elapsed
end
end)

 

 

 

Дефолт Гладиус жутко фризит игру, видимо куском кода с диминишингами. Портрет таймерс так же фризит игру. ФПС падает до 4 хД

Включи отображение луа ошибок и будет видно, что не так работает, скорее всего от них и фризит. Сразу скажу, что от одно портрет таймерса их over 9000.

 



29 авг 2012, 18:37
Профиль



<Попа в огне>


Сервер: Черный Шрам
2х2: 1822
3х3: 1567
0
Сообщение Скрипты Neilyo и не только

Да знаю, включал.  Там и правда один портрет таймерс выдет тонну ошибок. 



29 авг 2012, 18:45
Профиль
Начать новую тему Ответить на тему


Перейти:  

На сайте использованы материалы, принадлежащие Blizzard Entertainment. Копирование материалов возможно только c разрешения портала. В противном случае это будет называться уже другим словом.
Рейтинг@Mail.ru