|
修正版- /script i=8;X={"★","●","◆","▼","月","█","╳","骷"};SetRaidTarget("target",i);
- /script SendChatMessage(format("集火 %s [ %s ] %s %d%%",X[i],UnitClass("target"),UnitName("target"),(UnitHealth("target")/UnitHealthMax("target")*100)),"RAID_WARNING")
複製代碼 舊版 + 修正小數點問題- /script i=8;SetRaidTarget("target",i);
- /script SendChatMessage("集火 骷 [ "..UnitClass("target").. " ] "..UnitName("target").." " ..format("%d",(UnitHealth("target")/UnitHealthMax("target")*100)).."%","RAID_WARNING")
複製代碼 |
|