Версия для печати темы

Нажмите сюда для просмотра этой темы в обычном формате

UoKit.com Форумы _ UO Pilot _ Постоянное чтение адреса памяти

Автор: neves 8.1.2020, 12:58

Hello.
I have that simple code where I have one while loop.
The idea is to 'send F3' while the value from the given memory address isn't equals to 5.
I am wondering if there's a way to not using readmem in every while cycle, but to read the memory address continuously.
Is it possible to do?
Thank you and sorry for the English.
You can answer in Russian, I will use translator.

Код

readmem #q 0x12631E80 d
while (#q != 5)
send F3
readmem #q 0x12631E80 d
end_while

Автор: cirus 8.1.2020, 13:20

Only using Lua syntax.

Код
--lua

while readmem (0x12631E80, "D") ~= 5 do
    send ("F3")
    wait (10)
end

Автор: neves 8.1.2020, 19:48

Цитата(cirus @ 8.1.2020, 12:20) *

Only using Lua syntax.
Код
--lua

while readmem (0x12631E80, "D") ~= 5 do
    send ("F3")
    wait (10)
end


Спасибо!

Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)