魔兽世界跳过动画 宏里有没有跳过指令

最经典 魔兽世界宏命令完全教程 2011年修正版_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
最经典 魔兽世界宏命令完全教程 2011年修正版
上传于||文档简介
&&最​经​典​ ​魔​兽​世​界​宏​命​令​完​全​教​程​ 01​年​修​正​版
阅读已结束,如果下载本文需要使用3下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩43页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢作者:oyg123|时间: 15:49:42
代码拯救魔兽:宏命令开启角色属性栏被隐藏属性
摘要:代码拯救魔兽:简单宏命令开启属性栏被隐藏属性,/run table.insert(PAPERDOLL_STATCATEGORIES[1].stats,{ stat = "ATTACK_DAMAGE" })这串神奇的宏命令就能帮你还原以前人物界面中的属性。
  Codec:
  PAPERDOLL_STATCATEGORIES= {
  [1] = {
  categoryFrame ="AttributesCategory",
  stats = {
  [1] = { stat ="STRENGTH", primary = LE_UNIT_STAT_STRENGTH },
  [2] = { stat ="AGILITY", primary = LE_UNIT_STAT_AGILITY },
  [3] = { stat ="INTELLECT", primary = LE_UNIT_STAT_INTELLECT },
  [4] = { stat ="STAMINA"},
  [5] = { stat ="ARMOR"},
  [6] = { stat ="MANAREGEN",},
  [2] = {
  categoryFrame ="EnhancementsCategory",
  stats = {
  [1] = { stat ="CRITCHANCE", hideAt = 0 },
  [2] = { stat ="HASTE", hideAt = 0 },
  [3] = { stat ="MASTERY", hideAt = 0 },
  [4] = { stat ="VERSATILITY", hideAt = 0 },
  [5] = { stat ="LIFESTEAL", hideAt = 0 },
  [6] = { stat ="***OIDANCE", hideAt = 0 },
  [7] = { stat ="DODGE", roles ={"TANK"} },
  [8] = { stat ="PARRY", hideAt = 0, roles ={"TANK"} },
  [9] = { stat ="BLOCK", hideAt = 0, roles ={"TANK"} },
  下面是我修改的一个范例:
  适用于物理dps的,显示了伤害攻速能量恢复和移动速度
  Codec:
  PAPERDOLL_STATCATEGORIES= {
  [1] = {
  categoryFrame ="AttributesCategory",
  stats = {
  [1] = { stat ="ATTACK_DAMAGE"},
  [2] = { stat ="STRENGTH", primary = LE_UNIT_STAT_STRENGTH },
  [3] = { stat ="AGILITY", primary = LE_UNIT_STAT_AGILITY },
  [4] = { stat ="INTELLECT", primary = LE_UNIT_STAT_INTELLECT },
  [5] = { stat ="STAMINA"},
  [6] = { stat ="ARMOR"},
  [7] = { stat ="ENERGY_REGEN", hideAt = 0 },
  [8] = { stat ="RUNE_REGEN", hideAt = 0 },
  [9] = { stat ="FOCUS_REGEN", hideAt = 0 },
  [10] = { stat ="MANAREGEN", roles ={"HEALER"} },
  [2] = {
  categoryFrame ="EnhancementsCategory",
  stats = {
  [1] = { stat ="CRITCHANCE", hideAt = 0 },
  [2] = { stat ="HASTE", hideAt = 0 },
  [3] = { stat ="MASTERY", hideAt = 0 },
  [4] = { stat ="VERSATILITY", hideAt = 0 },
  [5] = { stat ="LIFESTEAL", hideAt = 0 },
  [6] = { stat ="***OIDANCE", hideAt = 0 },
  [7] = { stat ="DODGE", roles ={"TANK"} },
  [8] = { stat ="PARRY", hideAt = 0, roles ={"TANK"} },
  [9] = { stat ="BLOCK", hideAt = 0, roles ={"TANK"} },
  ---修改,若能量值获取不到。就设置为0,就能套用hideAt了
  PAPERDOLL_STATINFO["ENERGY_REGEN"].updateFunc = function(statFrame, unit) statFrame.numericValue=0; PaperDollFrame_SetEnergyRegen(statFrame, unit); end
  PAPERDOLL_STATINFO["RUNE_REGEN"].updateFunc = function(statFrame, unit) statFrame.numericValue=0; PaperDollFrame_SetRuneRegen(statFrame, unit); end
  PAPERDOLL_STATINFO["FOCUS_REGEN"].updateFunc = function(statFrame, unit) statFrame.numericValue=0; PaperDollFrame_SetFocusRegen(statFrame, unit); end
  --增加移动速度的代码(被暴雪删掉了)
  PAPERDOLL_STATINFO["MOVESPEED"].updateFunc =function(statFrame, unit) PaperDollFrame_SetMovementSpeed(statFrame, unit); end
  --根据职业,做一些改动
  local _,_,classid = UnitClass("player")
  if(classid==1)then --战士
  elseif (classid==2)then --圣骑
  elseif (classid==3)then --猎人
  elseif (classid==4)then --盗贼
  elseif (classid==5)then --牧师
  PAPERDOLL_STATCATEGORIES[1].stats[1].roles={} --隐藏伤害
  elseif (classid==6)then --DK
  elseif (classid==7)then --萨满
  elseif (classid==8)then --法师,加上回蓝显示
  PAPERDOLL_STATCATEGORIES[1].stats[1].roles={}
  table.insert(PAPERDOLL_STATCATEGORIES[1].stats,{ stat ="MANAREGEN"})
  elseif (classid==9)then --术士
  PAPERDOLL_STATCATEGORIES[1].stats[1].roles={} --隐藏伤害
  elseif (classid==10)then --武僧
  elseif (classid==11)then --德鲁伊
  elseif (classid==12)then --DH
  --加上移动速度(加最后)
  table.insert(PAPERDOLL_STATCATEGORIES[1].stats,{ stat ="MOVESPEED"})
  --关于移动速度代码(不然会出现错乱)
  local tempstatFrame
  hooksecurefunc("PaperDollFrame_SetMovementSpeed",function(statFrame, unit)
  if(tempstatFrame and tempstatFrame~=statFrame)then
  tempstatFrame:SetScript("OnUpdate",nil);
  statFrame:SetScript("OnUpdate", MovementSpeed_OnUpdate);
  tempstatFrame = statF
  statFrame:Show();
  作者:
新浪声明:新浪网登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
15:24:51 15:15:06 15:06:07 13:45:07 13:39:26 11:16:24 13:06:10 12:49:15
搜索需要的信息:
不再自动弹出

参考资料

 

随机推荐