是否还在为集火不够齐,转火不够快而烦恼啊?
标记者指哪打哪,那才叫集火,速度来下个吧
本宏功能:
团队标记权限者,只需按一下宏就会自动标记目标(标记更改第一行);
而DPS们在指挥叫集火的时候按一下宏,就自动选中指挥所标记的目标进行集火。
推荐场上同时有多个需要集火的目标时使用此宏,本宏不影响FPS。
例如天蛛老人时场上出现多只巨尸,需集火指定的其中一只时,很多野团无法做到指哪打哪,造成集火混乱。
/script local aMark="云"
local player = GetClientPlayer()
local tPartyMark = GetClientTeam().GetTeamMark()
if not tPartyMark then return end
local tMark={"云","剑","斧","钩","鼓","剪刀","棒槌","如意","镖","扇子"}
local setMark=function(dwID,szMark)
for nIndex,sMark in pairs(tMark) do
if sMark==szMark then
GetClientTeam().SetTeamMark(nIndex,dwID)
player.Talk(PLAYER_TALK_CHANNEL.NEARBY,"",{{type = "text", text="大家速度集火 ["..szMark.."]!!! \n"}})
end
end
end
local tType, tID = player.GetTarget()
if player.IsInParty() and player.dwID == GetClientTeam().GetAuthorityInfo(TEAM_AUTHORITY_TYPE.MARK) then
setMark(tID,aMark)
return
end
for dwID,nMark in pairs(tPartyMark) do
if tMark[nMark]==aMark then
if GetPlayer(dwID) then
SelectTarget(TARGET.PLAYER,dwID)
elseif GetNpc(dwID) then
SelectTarget(TARGET.NPC,dwID)
end
break
end
end