- 4,751
- 1,814
- Версия MoonLoader
- .026-beta
Доброго времени суток)
Три недели уже пытаюсь нопнуть этих аризиновских новых NPC ( охранников ). Моя цель - визуально удалить лаунчерских охранников.Сначала хотел эмулировать HideActor, потом юзал deleteChar ( с ним вообще крашило, хотя хендл правильный указывал ), но ничего не работало.
Чапо подсказал что это не самповские актеры, так и оказалось ( также проверял 54 пакет в onReceiveRpc, при спавне охранника - не срабатывал этот RPC )
Узнал что при спавне охранников вызывается 252 rpc, а при виде охранника всегда отправляются ( и приходят ) 221 пакеты. Также return false пробовал, но оно не влияет никак на спавн охранников. От Yondime слышал что некоторые cef диалоги тоже могут не "взаимодействовать" с return false ( cef это 220 лаунчерский пакет, а у меня 221 лаунчерский пакет )
Мой код:
Lua:
addEventHandler('onReceiveRpc', function(id, bs)
if id == 252 then
sampAddChatMessage('252 onReceiveRPC', -1) --вызывается только при спавнах охранника
local v = {}
for i = 1, raknetBitStreamGetNumberOfBytesUsed(bs) do --взял у Chapo https://www.blast.hk/threads/164325/#post-1234188
table.insert(v, raknetBitStreamReadInt8(bs))
end
print("252 ReceiveRPC: "..table.concat(v, ', '))
return false--не влияет
end
end)
addEventHandler('onReceivePacket', function(id, bs, ...)
if id == 221 then
sampAddChatMessage('221 onReceivePacket', -1) --вызывается всегда при виде охранников
local v = {}
for i = 1, raknetBitStreamGetNumberOfBytesUsed(bs) do
table.insert(v, raknetBitStreamReadInt8(bs))
end
print("221 ReceivePacket: "..table.concat(v, ', '))
return false--не влияет
end
end)
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 193, 33, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 19, 36, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 41, 38, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 86, 40, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 94, 42, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 137, 44, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 82, 21
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 199, 2
TEST for YarikVL.lua: 221 ReceivePacket: 221, 51, 0, 10, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 96, 6
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 184, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 50, 0, 10, 0, 103, 66, 47, 85, 31, 68, 188, 6, 155, 196, 138, 12, 128, 68, 117, 223, 90, 63, 25, 233, 179, 162, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 131, 128, 0, 0, 44, 176, 185, 52, 181, 171, 38, 0, 127, 255, 229, 18, 139, 0, 0, 0, 103, 122, 248, 112, 118, 246, 244, 117, 16, 44, 185, 52, 181, 175, 171, 54, 48, 185, 178, 183, 53, 183, 128, 0, 127, 255, 128
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 201, 46, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 67, 0, 10, 0, 230, 112, 31, 68, 188, 254, 154, 196, 138, 12, 128, 68, 7, 0, 16, 39, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 219, 48, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 251, 16
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 93, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 125, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 130, 15
TEST for YarikVL.lua: 252 ReceiveRPC: 10, 60, 15, 0, 0, 0, 0, 0, 0, 2, 54, 1, 0, 0, 0, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 67, 1
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 118, 23
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 33, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 232, 18
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 107, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 50, 15
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 160, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 229, 19
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 197, 3
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 168, 23
TEST for YarikVL.lua: 252 ReceiveRPC: 10, 100, 7, 0, 0, 0, 0, 0, 0, 2, 74, 1, 0, 0, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 35, 51, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 54, 53, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 67, 0, 10, 0, 237, 225, 31, 68, 12, 204, 154, 196, 138, 12, 128, 68, 7, 0, 16, 39, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 141, 55, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 160, 57, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 214, 59, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 227, 61, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 13, 64, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 91, 66, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 93, 68, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 85, 0, 10, 0, 29, 0, 0, 0, 204, 237, 229, 32, 237, 229, 245, 238, 240, 238, 248, 238, 44, 32, 228, 224, 233, 32, 236, 237, 229, 32, 224, 239, 242, 229, 247, 234, 243, 255, 255, 255, 255, 0, 0, 112, 65, 16, 39, 0, 0
и так далее
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 19, 36, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 41, 38, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 86, 40, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 94, 42, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 137, 44, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 82, 21
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 199, 2
TEST for YarikVL.lua: 221 ReceivePacket: 221, 51, 0, 10, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 96, 6
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 184, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 50, 0, 10, 0, 103, 66, 47, 85, 31, 68, 188, 6, 155, 196, 138, 12, 128, 68, 117, 223, 90, 63, 25, 233, 179, 162, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 131, 128, 0, 0, 44, 176, 185, 52, 181, 171, 38, 0, 127, 255, 229, 18, 139, 0, 0, 0, 103, 122, 248, 112, 118, 246, 244, 117, 16, 44, 185, 52, 181, 175, 171, 54, 48, 185, 178, 183, 53, 183, 128, 0, 127, 255, 128
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 201, 46, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 67, 0, 10, 0, 230, 112, 31, 68, 188, 254, 154, 196, 138, 12, 128, 68, 7, 0, 16, 39, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 219, 48, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 251, 16
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 93, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 125, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 130, 15
TEST for YarikVL.lua: 252 ReceiveRPC: 10, 60, 15, 0, 0, 0, 0, 0, 0, 2, 54, 1, 0, 0, 0, 0
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 67, 1
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 118, 23
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 33, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 232, 18
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 107, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 50, 15
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 160, 2
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 229, 19
TEST for YarikVL.lua: 252 ReceiveRPC: 12, 197, 3
TEST for YarikVL.lua: 252 ReceiveRPC: 11, 168, 23
TEST for YarikVL.lua: 252 ReceiveRPC: 10, 100, 7, 0, 0, 0, 0, 0, 0, 2, 74, 1, 0, 0, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 35, 51, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 54, 53, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 67, 0, 10, 0, 237, 225, 31, 68, 12, 204, 154, 196, 138, 12, 128, 68, 7, 0, 16, 39, 0, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 141, 55, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 160, 57, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 214, 59, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 227, 61, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 13, 64, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 91, 66, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 52, 0, 10, 0, 93, 68, 91, 205, 153, 233, 179, 162, 0, 32, 75, 162, 0, 0, 0, 0, 0, 0, 61, 34, 0
TEST for YarikVL.lua: 221 ReceivePacket: 221, 85, 0, 10, 0, 29, 0, 0, 0, 204, 237, 229, 32, 237, 229, 245, 238, 240, 238, 248, 238, 44, 32, 228, 224, 233, 32, 236, 237, 229, 32, 224, 239, 242, 229, 247, 234, 243, 255, 255, 255, 255, 0, 0, 112, 65, 16, 39, 0, 0
и так далее
Yondime предположил что в пакете передается не текст.
Прошу помочь)