- 27
- 2
- Версия MoonLoader
- .026-beta
почему то у меня не появляется сообщение test при проверки работает ли указанный диалог с нпс:
script:
local hook = require('samp.events')
local event = require('arizona-events')
local farm = false
-- answer.npcDialog|1
-- window.executeEvent('event.setActiveView', `["NpcDialog"]`);
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('farm',function ()
farm = not farm
if farm then
lua_thread.create(function ()
while true do
wait(0)
function event.onArizonaDisplay(packet)
if packet.text:find('window.executeEvent("event.setActiveView", `["NpcDialog"]`);') then
sampAddChatMessage('test', -1)
end
end
end
end)
end
end)
wait(-1)
end