Неактуально Lua [ARZ] - Хелпер для прохождения квестов на десятилетие

Joce

Участник
30
7
А можешь подсказать как сюда можно впихнуть, чтобы сначала стрелка вверх нажималась? То есть чтобы скрипт брал самый нижний ресурс.
Код:
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 27149 and autoCollect[0] then
        sampSendDialogResponse(dialogId, 1, 0, '')
        return false
    end
end

попробуй вот так вот сделать

lua:
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 27149 and autoCollect[0] then
        local lines = {}
        for line in text:gmatch("[^\r\n]+") do
            table.insert(lines, line)
        end
        local numOptions = #lines  -- получение кол-тво строк
        if numOptions > 0 then
            sampSendDialogResponse(dialogId, 1, numOptions - 1, '')  -- последний строка в окне
        else
            sampSendDialogResponse(dialogId, 1, 0, '')  -- если в диалоге нет строк
        end
        return false
    end
end
 
Последнее редактирование:

MrRazrab

Известный
Автор темы
496
241
попробуй вот так вот сделать

lua:
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == 27149 and autoCollect[0] then
        local lines = {}
        for line in text:gmatch("[^\r\n]+") do
            table.insert(lines, line)
        end
        local numOptions = #lines  -- получение кол-тво строк
        if numOptions > 0 then
            sampSendDialogResponse(dialogId, 1, numOptions - 1, '')  -- последний строка в окне
        else
            sampSendDialogResponse(dialogId, 1, 0, '')  -- если в диалоге нет строк
        end
        return false
    end
end
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if dialogId == 27149 and autoCollect[0] then
sampSendDialogResponse(dialogId, 1, sampGetListboxItemsCount()-1, '')
return false
end
end

и всё
 

SampBaku

Известный
42
1
2 бага нашёл на этом скрипте


1. Когда включил скрипт пропали ники
2. Автоподнятие для ресов с бомжей иногда вообще не поднимает ящик а просто открывает диалоговое окно
 

Boyfriend1304207

Новичок
3
0
че делать если кикает за парашют в 9 или 10 квесте, я включаю того бота на bdb 2 но все равно кикает
 

Chapocherry

Новичок
6
0
[16:08:24.097485] (system) Session started.
[16:08:24.097485] (debug) Module handle: 707E0000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team
https://www.blast.hk/moonloader/

[16:08:24.097485] (info) Working directory: C:\Program Files (x86)\Windows Portal\moonloader
[16:08:24.097485] (debug) FP Control: 0109001F
[16:08:24.097485] (debug) Game: GTA SA 1.0.0.0 US
[16:08:24.097485] (system) Installing pre-game hooks...
[16:08:24.100483] (system) Hooks installed.
[16:08:52.843633] (debug) Initializing opcode handler table
[16:08:52.843633] (debug) package.path = C:\Program Files (x86)\Windows Portal\moonloader\lib\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\lib\?\init.lua;C:\Program Files (x86)\Windows Portal\moonloader\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\?\init.lua;.\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\lib\?.luac;C:\Program Files (x86)\Windows Portal\moonloader\lib\?\init.luac;C:\Program Files (x86)\Windows Portal\moonloader\?.luac;C:\Program Files (x86)\Windows Portal\moonloader\?\init.luac;.\?.luac
[16:08:52.843633] (debug) package.cpath = C:\Program Files (x86)\Windows Portal\moonloader\lib\?.dll;
[16:08:52.847635] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\10th helper.lua'...
[16:08:52.847635] (debug) New script: 128CCDEC
[16:08:52.852635] (error) 10th helper.lua: ...am Files (x86)\Windows Portal\moonloader\10th helper.lua:1: module 'mimgui' not found:
no field package.preload['mimgui']
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui\init.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui\init.lua'
no file '.\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui\init.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui\init.luac'
no file '.\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.dll'
stack traceback:
[C]: in function 'require'
...am Files (x86)\Windows Portal\moonloader\10th helper.lua:1: in main chunk
[16:08:52.852635] (error) 10th helper.lua: Script died due to an error. (128CCDEC)
[16:08:52.853636] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\3dtextwh3.0.lua'...
[16:08:52.853636] (debug) New script: 128CCDEC
[16:08:53.030676] (system) 3dtextwh3.0.lua: Loaded successfully.
[16:08:53.030676] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\antiP_v2.lua'...
[16:08:53.030676] (debug) New script: 057A68B4
[16:08:53.047679] (system) antiP_v2.lua: Loaded successfully.
[16:08:53.047679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\AutoReboot.lua'...
[16:08:53.047679] (debug) New script: 1D75ED6C
[16:08:53.048679] (system) ML-AutoReboot: Loaded successfully.
[16:08:53.048679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\BubbleSniffer.lua'...
[16:08:53.048679] (debug) New script: 1D760EFC
[16:08:53.051679] (system) BubbleSniffer: Loaded successfully.
[16:08:53.051679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\call id.lua'...
[16:08:53.051679] (debug) New script: 1D761084
[16:08:53.054681] (system) call id.lua: Loaded successfully.
[16:08:53.054681] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\check-moonloader-updates.lua'...
[16:08:53.054681] (debug) New script: 1D76521C
[16:08:53.061682] (system) Check MoonLoader Updates: Loaded successfully.
[16:08:53.061682] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\jail.lua'...
[16:08:53.061682] (debug) New script: 1D7653A4
[16:08:53.067684] (system) jail.lua: Loaded successfully.
[16:08:53.067684] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\money_separator.lua'...
[16:08:53.067684] (debug) New script: 1D774AF4
[16:08:53.070684] (system) money_separator.lua: Loaded successfully.
[16:08:53.070684] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\SF Integration.lua'...
[16:08:53.070684] (debug) New script: 1D774C7C
[16:08:53.072685] (system) SF Integration: Loaded successfully.
[16:08:53.072685] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\smk.lua'...
[16:08:53.072685] (debug) New script: 1D774E04
[16:08:53.072685] (system) smk.lua: Loaded successfully.
[16:08:53.072685] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\UltraFuck 2.37-1.luac'...
[16:08:53.072685] (debug) New script: 1D776F94
[16:08:53.089689] (system) UltraFuck: Loaded successfully.
[16:08:53.089689] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\zTeleport v3.lua'...
[16:08:53.089689] (debug) New script: 1D7AE464
[16:08:53.092689] (system) zTeleport v3.lua: Loaded successfully.
[16:09:04.096350] (system) Installing post-load hooks...
[16:09:04.096350] (system) Hooks installed.
[16:09:05.567697] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\config\UltraFuck\Scripts\speed.lua'...
[16:09:05.567697] (debug) New script: 1E5DC09C
[16:09:05.568697] (error) speed.lua: ...ows Portal\moonloader\config\UltraFuck\Scripts\speed.lua:4: module 'SAMemory' not found:
no field package.preload['SAMemory']
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory\init.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory\init.lua'
no file '.\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory\init.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory\init.luac'
no file '.\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.dll'
stack traceback:
[C]: in function 'require'
...ows Portal\moonloader\config\UltraFuck\Scripts\speed.lua:4: in main chunk
[16:09:05.568697] (error) speed.lua: Script died due to an error. (1E5DC09C)
[16:09:26.845819] (system) Unloading...
[16:09:26.845819] (system) 3dtextwh3.0.lua: Script terminated. (128CCDEC)
[16:09:26.846819] (system) antiP_v2.lua: Script terminated. (057A68B4)
[16:09:26.847819] (system) ML-AutoReboot: Script terminated. (1D75ED6C)
[16:09:26.847819] (system) BubbleSniffer: Script terminated. (1D760EFC)
[16:09:26.847819] (system) call id.lua: Script terminated. (1D761084)
[16:09:26.848819] (system) Check MoonLoader Updates: Script terminated. (1D76521C)
[16:09:26.848819] (system) jail.lua: Script terminated. (1D7653A4)
[16:09:26.849820] (system) money_separator.lua: Script terminated. (1D774AF4)
[16:09:26.849820] (system) SF Integration: Script terminated. (1D774C7C)
[16:09:26.850820] (system) smk.lua: Script terminated. (1D774E04)
[16:09:26.850820] (system) UltraFuck: Script terminated. (1D776F94)
[16:09:26.854820] (system) zTeleport v3.lua: Script terminated. (1D7AE464)
[16:09:26.919836] (system) Session terminated.
 

MrRazrab

Известный
Автор темы
496
241
[16:08:24.097485] (system) Session started.
[16:08:24.097485] (debug) Module handle: 707E0000

MoonLoader v.026.5-beta loaded.
Developers: FYP, hnnssy, EvgeN 1137

Copyright (c) 2016, BlastHack Team

[16:08:24.097485] (info) Working directory: C:\Program Files (x86)\Windows Portal\moonloader
[16:08:24.097485] (debug) FP Control: 0109001F
[16:08:24.097485] (debug) Game: GTA SA 1.0.0.0 US
[16:08:24.097485] (system) Installing pre-game hooks...
[16:08:24.100483] (system) Hooks installed.
[16:08:52.843633] (debug) Initializing opcode handler table
[16:08:52.843633] (debug) package.path = C:\Program Files (x86)\Windows Portal\moonloader\lib\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\lib\?\init.lua;C:\Program Files (x86)\Windows Portal\moonloader\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\?\init.lua;.\?.lua;C:\Program Files (x86)\Windows Portal\moonloader\lib\?.luac;C:\Program Files (x86)\Windows Portal\moonloader\lib\?\init.luac;C:\Program Files (x86)\Windows Portal\moonloader\?.luac;C:\Program Files (x86)\Windows Portal\moonloader\?\init.luac;.\?.luac
[16:08:52.843633] (debug) package.cpath = C:\Program Files (x86)\Windows Portal\moonloader\lib\?.dll;
[16:08:52.847635] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\10th helper.lua'...
[16:08:52.847635] (debug) New script: 128CCDEC
[16:08:52.852635] (error) 10th helper.lua: ...am Files (x86)\Windows Portal\moonloader\10th helper.lua:1: module 'mimgui' not found:
no field package.preload['mimgui']
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui\init.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui\init.lua'
no file '.\mimgui.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui\init.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\mimgui\init.luac'
no file '.\mimgui.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\mimgui.dll'
stack traceback:
[C]: in function 'require'
...am Files (x86)\Windows Portal\moonloader\10th helper.lua:1: in main chunk
[16:08:52.852635] (error) 10th helper.lua: Script died due to an error. (128CCDEC)
[16:08:52.853636] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\3dtextwh3.0.lua'...
[16:08:52.853636] (debug) New script: 128CCDEC
[16:08:53.030676] (system) 3dtextwh3.0.lua: Loaded successfully.
[16:08:53.030676] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\antiP_v2.lua'...
[16:08:53.030676] (debug) New script: 057A68B4
[16:08:53.047679] (system) antiP_v2.lua: Loaded successfully.
[16:08:53.047679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\AutoReboot.lua'...
[16:08:53.047679] (debug) New script: 1D75ED6C
[16:08:53.048679] (system) ML-AutoReboot: Loaded successfully.
[16:08:53.048679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\BubbleSniffer.lua'...
[16:08:53.048679] (debug) New script: 1D760EFC
[16:08:53.051679] (system) BubbleSniffer: Loaded successfully.
[16:08:53.051679] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\call id.lua'...
[16:08:53.051679] (debug) New script: 1D761084
[16:08:53.054681] (system) call id.lua: Loaded successfully.
[16:08:53.054681] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\check-moonloader-updates.lua'...
[16:08:53.054681] (debug) New script: 1D76521C
[16:08:53.061682] (system) Check MoonLoader Updates: Loaded successfully.
[16:08:53.061682] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\jail.lua'...
[16:08:53.061682] (debug) New script: 1D7653A4
[16:08:53.067684] (system) jail.lua: Loaded successfully.
[16:08:53.067684] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\money_separator.lua'...
[16:08:53.067684] (debug) New script: 1D774AF4
[16:08:53.070684] (system) money_separator.lua: Loaded successfully.
[16:08:53.070684] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\SF Integration.lua'...
[16:08:53.070684] (debug) New script: 1D774C7C
[16:08:53.072685] (system) SF Integration: Loaded successfully.
[16:08:53.072685] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\smk.lua'...
[16:08:53.072685] (debug) New script: 1D774E04
[16:08:53.072685] (system) smk.lua: Loaded successfully.
[16:08:53.072685] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\UltraFuck 2.37-1.luac'...
[16:08:53.072685] (debug) New script: 1D776F94
[16:08:53.089689] (system) UltraFuck: Loaded successfully.
[16:08:53.089689] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\zTeleport v3.lua'...
[16:08:53.089689] (debug) New script: 1D7AE464
[16:08:53.092689] (system) zTeleport v3.lua: Loaded successfully.
[16:09:04.096350] (system) Installing post-load hooks...
[16:09:04.096350] (system) Hooks installed.
[16:09:05.567697] (system) Loading script 'C:\Program Files (x86)\Windows Portal\moonloader\config\UltraFuck\Scripts\speed.lua'...
[16:09:05.567697] (debug) New script: 1E5DC09C
[16:09:05.568697] (error) speed.lua: ...ows Portal\moonloader\config\UltraFuck\Scripts\speed.lua:4: module 'SAMemory' not found:
no field package.preload['SAMemory']
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory\init.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory\init.lua'
no file '.\SAMemory.lua'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory\init.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\SAMemory\init.luac'
no file '.\SAMemory.luac'
no file 'C:\Program Files (x86)\Windows Portal\moonloader\lib\SAMemory.dll'
stack traceback:
[C]: in function 'require'
...ows Portal\moonloader\config\UltraFuck\Scripts\speed.lua:4: in main chunk
[16:09:05.568697] (error) speed.lua: Script died due to an error. (1E5DC09C)
[16:09:26.845819] (system) Unloading...
[16:09:26.845819] (system) 3dtextwh3.0.lua: Script terminated. (128CCDEC)
[16:09:26.846819] (system) antiP_v2.lua: Script terminated. (057A68B4)
[16:09:26.847819] (system) ML-AutoReboot: Script terminated. (1D75ED6C)
[16:09:26.847819] (system) BubbleSniffer: Script terminated. (1D760EFC)
[16:09:26.847819] (system) call id.lua: Script terminated. (1D761084)
[16:09:26.848819] (system) Check MoonLoader Updates: Script terminated. (1D76521C)
[16:09:26.848819] (system) jail.lua: Script terminated. (1D7653A4)
[16:09:26.849820] (system) money_separator.lua: Script terminated. (1D774AF4)
[16:09:26.849820] (system) SF Integration: Script terminated. (1D774C7C)
[16:09:26.850820] (system) smk.lua: Script terminated. (1D774E04)
[16:09:26.850820] (system) UltraFuck: Script terminated. (1D776F94)
[16:09:26.854820] (system) zTeleport v3.lua: Script terminated. (1D7AE464)
[16:09:26.919836] (system) Session terminated.
у тебя mimgui нет
 

MrRazrab

Известный
Автор темы
496
241
Подскажи, почему то заметил что во многих квестах багаетсч диалог и тупо экран остается на месте а персонаж бегает, это можно как то фиксить? Дело не в тВоем сКрипте, скрипт шикарный
Подскажи, почему то заметил что во многих квестах багаетсч диалог и тупо экран остается на месте а персонаж бегает, это можно как то фиксить? Дело не в тВоем сКрипте, скрипт шикарный
это разрабы похоже налажали. Как я понял, в тот момент должно играться видео-сюжет. Но оно не проигрывается, а персонаж зависает. Решение есть: просто стоять и ждать 0-3 минуты пока "видео" не закончится
 
  • Нравится
Реакции: ALCOR

ALCOR

Известный
121
35
это разрабы похоже налажали. Как я понял, в тот момент должно играться видео-сюжет. Но оно не проигрывается, а персонаж зависает. Решение есть: просто стоять и ждать 0-3 минуты пока "видео" не закончится
Мда... Удивляет проект , такая аудитория и так косячат
 
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if dialogId == 27149 and autoCollect[0] then
sampSendDialogResponse(dialogId, 1, sampGetListboxItemsCount()-1, '')
return false
end
end

и всё
И первый и второй вариант не работает

AutoDialog.lua:4: attempt to index global 'autoCollect' (a nil value)
stack traceback:
...ames\ARIZONA GAMES\bin\Arizona\moonloader\AutoDialog.lua:4: in function 'callback'
...NA GAMES\bin\Arizona\moonloader\lib\samp\events\core.lua:79: in function <...NA GAMES\bin\Arizona\moonloader\lib\samp\events\core.lua:53>
[07:39:19.749801] (error) AutoDialog.lua: Script died due to an error. (2F35C304)
 

MrRazrab

Известный
Автор темы
496
241
И первый и второй вариант не работает

AutoDialog.lua:4: attempt to index global 'autoCollect' (a nil value)
stack traceback:
...ames\ARIZONA GAMES\bin\Arizona\moonloader\AutoDialog.lua:4: in function 'callback'
...NA GAMES\bin\Arizona\moonloader\lib\samp\events\core.lua:79: in function <...NA GAMES\bin\Arizona\moonloader\lib\samp\events\core.lua:53>
[07:39:19.749801] (error) AutoDialog.lua: Script died due to an error. (2F35C304)
так я написал код для своего скрипта, в отдельном скрипте он работать не будет