local BuffTest = {
10,19,20,56,59,60,61,65,68,75,
76,81,101,102,160,161,197,250,272,374,
477,709,748,761,773,785,807,818,823,825,
832,844,877,887,992,1052,1115,1116,1114,2808,
2958,3017,3179,3226,3642,5959,6409,7950,8060,10485,
10505,10510,10521,10528,10542,10555,10566,10577,10588,18404,
19722,19745,19759,19767,19777,19788,19798,20494,22438,22889,
23071,23155,23673,23722,23746,23939,24059,24265,24422,24482,
24662,24699,24807,24867,24889,24996,25026,30187,31655,32385, --截止72左右
225,233,289,374,22548,451,22964,22988,23240,24170,
797,1221,1269,1411,1423,1447,2685,2741,2808,2822,
2857,2865,2921,2937,2957,3140,5971
}
for i=1,getn(BuffTest) do
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,BuffTest,0)
end
for i=1,100 do
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,i,0)
end
local count,lists =LuaGetbuffID(sceneId,selfId)
PushDebugMessage(sceneId,selfId,"BUFF数量:"..count)
for i=1,1000 do
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,i,0)
end
local MenPaiBUFF = {
225,226, --少林铁布衫
233,234, --少林韦陀杵
289,290, --明教水神下凡
297,298, --明教火神下凡
374,375, --擒龙式
22548,22549,22550,22551,22552,22553,22554,22555,22556,22557,22558,22559, --擒龙式
383,384, --控鹤式
22512,22513,22514,22515,22516,22517,22518,22519,22520,22521,22522,22523, --控鹤式
431,432, --天罡北斗阵
451,452, --斜飞式
22964,22965,22966,22967,22968,22969,22970,22971,22972,22973,22974,22975, --斜飞式
22988,22989,22990,22991,22992,22993,22994,22995,22996,22997,22998,22999, --挑帘式
504,505, --绝剑式
23289,23290,23291,23292,23293,23294,23295,23296,23297,23298,23299,23300, --绝剑式
511,512, --灭剑式
23240,23241,23242,23243,23244,23245,23246,23247,23248,23249,23250,23251, --灭剑式
567,568, --木遁
23892,23893,23894,23895,23896,23897,23898,23899,23900,23901,23902,23903,--木遁
785,786, --水遁
23796,23797,23798,23799,23800,23801,23802,23803,23804,23805,23806,23807,--水遁
643,644, --截拳式
24170,24171,24172,24173,24174,24175,24176,24177,24178,24179,24180,24181,--截拳式
650,651, --破剑式
24121,24122,24123,24124,24125,24126,24127,24128,24129,24130,24131,24132, --破剑式
701,702, --融雪式
1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281, --融雪式
709,710, --折梅式
1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305, --折梅式
752,753, --大风歌
24832,24833,24834,24835,24836,24837,24838,24839,24840,24841,24842,24843, --大风歌
763,764, --洛神图
893,894, --蓄云欲雨
900,901, --心剑交融
24363,24364,24365,24366,24367,24368,24369,24370,24371,24372,24373,24374,--心剑交融
839,833, --震箭式、催箭式
23505,23506,23507,23508,23509,23510,23511,23512,23513,23514,23515,23516, --意纵横
23542,23543,23544,23545,23546,23547,23548,23549,23550,23551,23552,23553,23554, --逍遥游
23555,23556,23557,23558,23559,23560,23561,23562,23563,23564,23565, --逍遥游(怒气+闪避)
13278,13279,13280,13281,13282,13283,13284,13285,13286,13287,13288,13289,13290,13291,13292,13293, --仁以守本
}
for i=1,getn(MenPaiBUFF) do
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,MenPaiBUFF,0)
end
local PetObj = 188
local qhtl_tab = {
11165,7519,7520,7521,7522,7523,7529,7540,8064,8065,
8500,8508,74,75,76,101,106,160,276,278,
280,312,432,445,499,505,512,525,636,815,
10,19,20,56,59,60,61,65,68,75,
76,81,101,102,160,161,197,250,272,374,
477,709,748,761,773,785,807,818,823,825,
832,844,877,887,992,1052,1115,1116,1114,2808,
2958,3017,3179,3226,3642,5959,6409,7950,8060,10485,
10505,10510,10521,10528,10542,10555,10566,10577,10588,18404,
19722,19745,19759,19767,19777,19788,19798,20494,22438,22889,
23071,23155,23673,23722,23746,23939,24059,24265,24422,24482,
24662,24699,24807,24867,24889,24996,25026,30187,31655,32385
}
for i =1, getn(qhtl_tab) do
LuaFnSendSpecificImpactToUnit(sceneId,PetObj,PetObj,PetObj,qhtl_tab,0)
end
local isTable = 0
for i = 1,getn(qhtl_tab) do
local HaveImpact = LuaFnHaveImpactOfSpecificDataIndex(sceneId, PetObj, qhtl_tab)
if HaveImpact == 1 then
isTable = isTable + 1
end
end
PushDebugMessage( sceneId, selfId,"怪物拥有BUFF:"..isTable)