|
发表于 2021-11-9 11:01:43
|
显示全部楼层
大佬,用了你的解锁器和WBE,范围施法报错,我的脚本如下:
- if IsControlKeyDown() and BeeIsRun("/cast 乱射","nogoal") and BeePlayerBuffTime("乱射")==-1 then
- CastSpellByName(tostring(GetSpellInfo("乱射"),nil));
- if SpellIsTargeting() then
- CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
- end
- return
- end
- if BeeUnitCastSpellName("player")=="乱射" then
- return
- end
复制代码
报错代码:
- Date: 2021-11-09 10:59:30
- ID: 1
- Error occured in: AddOn: WBE
- Count: 1
- Message: Error: AddOn WBE attempted to call a forbidden function (CastSpellByName()) from a tainted execution path.
- Debug:
- [C]: CastSpellByName()
- [string "local V={};local C={};..."]:37: in main chunk
- [C]: pcall()
- WBE\WowBee.Script.lua:966: WowBeeHelper_OnScript()
- WBE\WowBee.Script.lua:1180: WowBeeHelper_OnAutoScript()
- WBE\WowBee.Script.lua:1369:
- WBE\WowBee.Script.lua:1315
复制代码 |
|