关于Modules/More/AnnounceSystem.lua
q513902026 opened this issue · 8 comments
这里事件传入的是法术id 而FeastSpells计入的当前版本大餐和锅 是物品id而非法术id
参考解决
http://bbs.nga.cn/read.php?tid=15656285&pid=307429755&to=1
通过传入的物品id 然后转换到法术id
或者直接通过
spellName, spellID = GetItemSpell(itemID or "itemString" or "itemName" or "itemLink")
获取法术id
在刚才push的commit中修复了这处问题。
修理机器人同样存在问题
[132514] = true, -- 自動鐵錘
[141333] = true, -- 宁神圣典
[153646] = true, -- 静心圣典
应该是
[199109] = true, --自动铁锤
[226241] = true, --宁神圣典
[256230] = true, --静心圣典
在commit中改正了。同时添加了里弗斯模块对应的法术id,没怎么测试,半小时的冷却测试起来太麻烦。
11/16 16:32:38.640 SPELL_CAST_SUCCESS,Player-851-04F8FC63,"这段是马赛克",0x511,0x0,0000000000000000,nil,0x80000000,0x80000000,200061,"召唤里弗斯",0x1,Player-851-04F8FC63,0000000000000000,156520,156520,6942,6675,1858,0,100000,100000,0,-740.30,4473.70,627,2.8912,381
11/16 16:32:46.029 SPELL_CAST_START,Vehicle-0-3912-1220-31397-101462-00006F61A7,"里弗斯",0x12111,0x0,0000000000000000,nil,0x80000000,0x80000000,200205,"自动铁锤模式",0x1
11/16 16:32:48.162 SPELL_CAST_SUCCESS,Vehicle-0-3912-1220-31397-101462-00006F61A7,"里弗斯",0x12111,0x0,0000000000000000,nil,0x80000000,0x80000000,200205,"自动铁锤模式",0x1,Vehicle-0-3912-1220-31397-101462-00006F61A7,Player-851-04F8FC63,9135,9135,0,0,2700,1,0,0,0,-740.64,4472.60,627,4.8353,381
11/16 16:32:48.163 SPELL_SUMMON,Vehicle-0-3912-1220-31397-101462-00006F61A7,"里弗斯",0x12111,0x0,Creature-0-3912-1220-31397-113831-00006F61AF,"自动铁锤",0xa28,0x0,200205,"自动铁锤模式",0x1
目前里弗斯模块的通告没有正常工作,我这里收集了和里弗斯相关的几处log。
elseif subEvent == "SPELL_SUMMON" then
-- 修理機器人
if Bots[spellID] then
SendChatMessage(format(ASL["PutNormal"], srcName, GetSpellLink(spellID)), CheckChat(true))
end
很奇怪,讲道理应该被这处entry处理并通告才对。