打战场或者竞技场的时候每次都要标很烦的也,就弄个一键自动标吧
PS:查找内功会造成顿卡几秒,所以呢只能以门派来标了
官方宏:ESC,宏管理,新建宏名字、宏图标,然后粘贴进宏命令,保存。
把宏图标拖到快捷栏,需要标记的时候点一下,就会标记视野内敌对七秀和五毒职业了
/script local bScanMark=function(id)
local tPartyMark = GetClientTeam().GetTeamMark()
for dwID, nIndex in pairs(tPartyMark) do
if nIndex==id and GetPlayer(dwID) then
return false
end
end
return true
end
local tMark={"云","剑","斧","钩","鼓","剪刀","棒槌","如意","镖","扇子"}
local Player=GetClientPlayer()
for i,v in pairs(GetNearbyPlayerList()) do
local hPlayer=GetPlayer(v)
local hTeam = GetClientTeam()
if not Player.IsInParty() or Player.dwID ~= hTeam.GetAuthorityInfo(TEAM_AUTHORITY_TYPE.MARK) then return end
local tPartyMark = hTeam.GetTeamMark()
local pForce=GetForceTitle(hPlayer.dwForceID)
if IsEnemy(v,Player.dwID) and (pForce=="七秀" or pForce=="五毒") then
if tPartyMark[v]==nil then
for i = 1, 10 do
if bScanMark(i) then
hTeam.SetTeamMark(i,v)
Player.Talk(PLAYER_TALK_CHANNEL.RAID,"",{{type = "text", text = "["..hPlayer.szName.."]".."已被标记为["..tMark[i].."]!\n"}})
return
end
end
return
end
end
end