魔兽姓名版上显示服务器,头像上显示连击点:魔兽7.0用不习惯的看这条代码

这篇博客分享了一段Lua代码,用于将《魔兽世界》7.0版本中连击点的位置恢复到旧版显示在目标头像上的方式。此外,还提供了血条显示距离和DeBuff显示设置的还原命令。脚本适用于不习惯新版连击点位置的玩家,只需在游戏中输入相应命令即可生效,且设置会保存在游戏配置文件中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[摘要]7.0新版用不习惯的看这里,感谢SonofBlizzard给大家带来的代码。

使用前

2087c07ff82182cdce7800dfc973d282.png

使用后

bb54422924f52da1dd18683dd9b8db53.png

1222f810d0e4ffa8cfa86c3150e9412a.png

恢复到原来的连击点的方法:

在目标头像上显示连击点,输入下面这条命令,然后小退即可:

/run SetCVar("comboPointLocation",1)

如需恢复默认设置(即显示在自己头像下),输入下面这条命令,然后小退即可:

/run SetCVar("comboPointLocation",GetCVarDefault("comboPointLocation"))

注:该命令是游戏本身的设置,该设置参数是保存在游戏文件夹WTF\Config.wtf中的,同一电脑输入一次即可,会对所有账号生效,无需再次输入。

此帖终结!

此帖终结!

此帖终结!

重要的话说三遍,已经无需任何插件了。

附送几个其他还原命令:

1、血条显示距离还原成40码,超过40码则隐藏(7.0默认是60码):

/run SetCVar("nameplateMaxDistance",40)

如需恢复默认,则输入:

/run SetCVar("nameplateMaxDistance",GetCVarDefault("nameplateMaxDistance"))

2、血条固定(不会漂移、乱动):

/run SetCVar("nameplateOtherTopInset",-1)SetCVar("nameplateOtherBottomInset",-1)

如需恢复默认,则输入:

/run SetCVar("nameplateOtherTopInset",GetCVarDefault("nameplateOtherTopInset"))SetCVar("nameplateOtherBottomInset",GetCVarDefault("nameplateOtherBottomInset"))

3、在目标头像下显示所有DeBuff(7.0默认只显示与自己相关的)

/run SetCVar("noBuffDebuffFilterOnTarget",1)

如需恢复默认,则输入:

/run SetCVar("noBuffDebuffFilterOnTarget",GetCVarDefault("noBuffDebuffFilterOnTarget"))

注:以上3个命令是游戏本身的设置,该设置参数是保存在服务器上的,同一账号输入一次即可,无需再次输入。

7.0的新版连击点是显示在玩家自己头像下面,十分不习惯,特制作一段Lua脚本,恢复到以前的样子,有需要的拿走。

7月24日晚,更新到v1.2版,修复了与队友决斗时不显示连击点的BUG。

效果:

5星:

3b5af80705650d4af9ba32d1ff9d359e.png

6星:

a2d2467b2f6c02079a7bb1cc98b276da.png

8星:

675402dd844307bd66fab8a3fa1147f9.png

Code lua:

1:localMCP = CreateFrame("Frame")

2:

3:MCP:RegisterEvent("PLAYER_ENTERING_WORLD")

4:MCP:RegisterEvent("PLAYER_TARGET_CHANGED")

5:MCP:RegisterEvent("PLAYER_TALENT_UPDATE")

6:MCP:RegisterEvent("UPDATE_SHAPESHIFT_FORM")

7:MCP:RegisterEvent("UNIT_POWER_FREQUENT")

8:MCP:RegisterEvent("UNIT_MAXPOWER")

9:functionMCPF(self, event)

10:ifevent =="PLAYER_ENTERING_WORLD"then

11:TargetFrame:SetToplevel()

12:PlayerFrame:Hide()

13:PlayerFrame:Show()

14:end

15:ifnotUnitExists("target")or(UnitIsFriend("player","target")andnotUnitIsEnemy("player","target"))then

16:ComboPointPlayerFrame.Combo1:SetAlpha(0)

17:ComboPointPlayerFrame.Combo2:SetAlpha(0)

18:ComboPointPlayerFrame.Combo3:SetAlpha(0)

19:ComboPointPlayerFrame.Combo4:SetAlpha(0)

20:ComboPointPlayerFrame.Combo6:SetAlpha(0)

21:ComboPointPlayerFrame.ComboBonus1:SetAlpha(0)

22:ComboPointPlayerFrame.ComboBonus2:SetAlpha(0)

23:ComboPointPlayerFrame.ComboBonus3:SetAlpha(0)

24:else

25:ComboPointPlayerFrame.Combo1:ClearAllPoints()

26:ComboPointPlayerFrame.Combo1:SetPoint("CENTER", TargetFrame,"CENTER", 102, 54)

27:ComboPointPlayerFrame.Combo1:SetScale(0.65)

28:ComboPointPlayerFrame.Combo1:SetAlpha(1)

29:ComboPointPlayerFrame.Combo2:ClearAllPoints()

30:ComboPointPlayerFrame.Combo2:SetPoint("CENTER", ComboPointPlayerFrame.Combo1,"CENTER", 12, -13)

31:ComboPointPlayerFrame.Combo2:SetScale(0.65)

32:ComboPointPlayerFrame.Combo2:SetAlpha(1)

33:ComboPointPlayerFrame.Combo3:ClearAllPoints()

34:ComboPointPlayerFrame.Combo3:SetPoint("CENTER", ComboPointPlayerFrame.Combo2,"CENTER", 7, -16)

35:ComboPointPlayerFrame.Combo3:SetScale(0.65)

36:ComboPointPlayerFrame.Combo3:SetAlpha(1)

37:ComboPointPlayerFrame.Combo4:ClearAllPoints()

38:ComboPointPlayerFrame.Combo4:SetPoint("CENTER", ComboPointPlayerFrame.Combo3,"CENTER", 2, -16)

39:ComboPointPlayerFrame.Combo4:SetScale(0.65)

40:ComboPointPlayerFrame.Combo4:SetAlpha(1)

end

41:ComboPointPlayerFrame.Combo5:ClearAllPoints()

42:ComboPointPlayerFrame.Combo4:SetAlpha(1)

43:ComboPointPlayerFrame.Combo5:ClearAllPoints()

44:ComboPointPlayerFrame.Combo5:SetPoint("CENTER", ComboPointPlayerFrame.Combo4,"CENTER", -1, -17)

45:ComboPointPlayerFrame.Combo5:SetScale(0.65)

46:ComboPointPlayerFrame.Combo5:SetAlpha(1)

47:ComboPointPlayerFrame.Combo6:ClearAllPoints()

48:ComboPointPlayerFrame.Combo6:SetPoint("CENTER", ComboPointPlayerFrame.Combo5,"CENTER", -2, -15)

49:ComboPointPlayerFrame.Combo6:SetScale(0.65)

50:ComboPointPlayerFrame.Combo6:SetAlpha(1)

51:ComboPointPlayerFrame.ComboBonus1:ClearAllPoints()

52:ComboPointPlayerFrame.ComboBonus1:SetPoint("CENTER", ComboPointPlayerFrame.Combo2,"CENTER", 10, 0)

53:ComboPointPlayerFrame.ComboBonus1:SetScale(1)

54:ComboPointPlayerFrame.ComboBonus1:SetAlpha(1)

55:ComboPointPlayerFrame.ComboBonus2:ClearAllPoints()

56:ComboPointPlayerFrame.ComboBonus2:SetPoint("CENTER", ComboPointPlayerFrame.Combo3,"CENTER", 9, 0)

57:ComboPointPlayerFrame.ComboBonus2:SetScale(1)

58:ComboPointPlayerFrame.ComboBonus2:SetAlpha(1)

59:ComboPointPlayerFrame.ComboBonus3:ClearAllPoints()

60:ComboPointPlayerFrame.ComboBonus3:SetPoint("CENTER", ComboPointPlayerFrame.Combo4,"CENTER", 8.5, 0)

61:ComboPointPlayerFrame.ComboBonus3:SetScale(1)

62:ComboPointPlayerFrame.ComboBonus3:SetAlpha(1)

63:end

64:end

65:

66:MCP:SetScript("OnEvent",MCPF)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值