minghua009 发表于 2023-3-13 13:01:12

二楼正解,谢谢大佬们分享心得

lr87753979 发表于 2023-3-20 13:59:48

感谢楼主,投石引玉,又学习了新的知识

天空白云 发表于 2023-6-10 09:34:09

学习中。谢谢楼主,不过也为了伸手费。

uu321 发表于 2023-7-22 09:07:15

谢谢楼主 为了LUACN 为了伸手费 {:5_251:}

yah1111 发表于 2023-7-22 15:44:46

第一次发帖,前来学习

美女要黄瓜吗 发表于 2023-8-3 11:24:30

--[[
圣骑士、战士、死亡骑士、潜行者、猎人"
--]]
--自动判断party还是raid
local grouptype=""
if GetNumRaidMembers()>0
then
    grouptype="raid"
    local dwz= BeeGroupMinScript('BeeRange(unit)<=40 andBeeUnitBuff("强效力量祝福",unit,2,1)<10 and BeeUnitBuff("力量祝福",unit,2,1)<10 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit) and (BeeUnitClassBase(unit)=="战士" or BeeUnitClassBase(unit)=="死亡骑士" or BeeUnitClassBase(unit)=="潜行者" or BeeUnitClassBase(unit)=="猎人" or BeeUnitClassBase(unit)=="圣骑士")',"BeeUnitHealth(unit)",grouptype)
    if dwz and UnitExists(dwz) and BeeRange(dwz)<=40 and BeeIsRun("强效力量祝福",dwz)
    then
      BeeRun("强效力量祝福",dwz);
      return;
    end;
else
    grouptype="party"
    local wz= BeeGroupMinScript('BeeRange(unit)<=40 andBeeUnitBuff("强效力量祝福",unit,2,1)<10 and BeeUnitBuff("力量祝福",unit,2,1)<10 and UnitCanAssist("player",unit) and not UnitIsDeadOrGhost(unit) and (BeeUnitClassBase(unit)=="战士" or BeeUnitClassBase(unit)=="死亡骑士" or BeeUnitClassBase(unit)=="潜行者" or BeeUnitClassBase(unit)=="猎人" or BeeUnitClassBase(unit)=="圣骑士")',"BeeUnitHealth(unit)",grouptype)
    if wz and UnitExists(wz) and BeeRange(wz)<=40 and BeeIsRun("力量祝福",wz)
    then
      BeeRun("力量祝福",wz);
      return;
    end;
end;

xueying 发表于 2023-8-3 12:52:26

本帖最后由 xueying 于 2023-8-3 12:54 PM 编辑

local n,Unit = BeeGroupCountScript('class=="法师',"BeeIsRun('智慧祝福',unit)","BeeUnitBuff('智慧祝福',unit)<2 and not UnitIsDeadOrGhost(unit)",grouptype)没记错的话BeeGroupCountScript 应该只要3个参数, 你这个写法,o(╯□╰)o~ ,冒出来4个了
local n,Unit = BeeGroupCountScript('class=="法师",BeeIsRun("智慧祝福",unit)',"BeeUnitBuff('智慧祝福',unit)<2 and not UnitIsDeadOrGhost(unit)",grouptype)

0415asd 发表于 2023-12-4 18:27:14

55555555555477477774444444444

隔壁家甄叔叔 发表于 2023-12-28 17:50:54

来学习的。。看看大佬们怎么解决
页: 1 2 [3]
查看完整版本: 魔蜂判断职业写法 有没有吊大的回复一下。[回帖有奖]