Помогите с модом на автоматическую рыбалку

sssilvian

Активный
Автор темы
230
25
Версия MoonLoader
.026-beta
Привет, я хочу сделать LUA-мод, который нажимает рыб на Fish Job в зависимости от того, какой цвет он говорит, чтобы ударить по нему в текстовом отрисовке. Мне нужна помощь в создании этого мода, если это возможно. Спасибо.
Также здесь есть видео с идентификаторами textdraw и некоторыми цветами рыб.
 

Vespan

loneliness
Проверенный
2,105
1,639
White: -0000001 etc, not HEX colors.
these are the colors of decimal
use bit.tohex(BIT) / bit.tobix(HEX)


The colors are random, whether it is green, it has two random colors for each colored fish. I don't know how to make it complex, I'm new to LUA.

Lua:
int box, uint color, float sizeX, float sizeY = sampTextdrawGetBoxEnabledColorAndSize(int id)  -- 0C53
int align = sampTextdrawGetAlign(int id)  -- 0C54
int prop = sampTextdrawGetProportional(int id)  -- 0C55
int style = sampTextdrawGetStyle(int id)  -- 0C56
int shadow, uint color = sampTextdrawGetShadowColor(int id)  -- 0C57
int outline, uint color = sampTextdrawGetOutlineColor(int id)  -- 0C58
int model, float rotX, float rotY, float rotZ, float zoom, int clr1, int clr2 = sampTextdrawGetModelRotationZoomVehColor(int id)  -- 0C59
zstring text = sampTextdrawGetString(int id)  -- 0C5A
float posX, float posY = sampTextdrawGetPos(int id)  -- 0C5B
float letSizeX, float letSizeY, uint color = sampTextdrawGetLetterSizeAndColor(int id)  -- 0C5C
bool result = sampTextdrawIsExists(int id)  -- 0C5D
sampTextdrawDelete(int id)  -- 0C5E
do a check on the model, according to the location on the screen
if true then send RPC that you clicked on textdraw
sampSendClickTextdraw(id)

Lua:
sw,sh = getScreenResolution()

for id = 1,3000 do
    if sampTextdrawIsExists(id) then
        local x, y = convertGameScreenCoordsToWindowScreenCoords(sampTextdrawGetPos(id))
        if x >= sw/4 and x <= sw-100 and y >= sh /1.5 and sh <= sh/4 then
--example - since the fish appear in the middle of the screen, then such a check(this is just an example)
 
  • Влюблен
Реакции: Deanytb