Hey,
I was wondering if there is an option to use lua function to make a character shine like he use 'utevo lux' or what so ever in type of light hack.
I have access to g_game, g_map, g_window and so on, but I believe I do not have access to classes. I have never used them in my code.
I successfully used Cheat engine, but I would prefer to use (lua) something like:
player.setLight() or player.setCreatureLight()
but in my case, none of those two works (getLight, getCreatureLight do not work neither). Even tough I see the functions in x32dbg I can not use them. Other functions works though.
Those are my function examples:
function lightInfo1()
local player = g_game.getLocalPlayer()
local lightValue = player.getCreatureLight()
printConsole('Light value: ' .. lightValue)
end
function lightInfo2()
local player = g_game.getLocalPlayer()
local lightValue = player.getLight()
printConsole('Light value: ' .. lightValue)
end
What is more due to the fact I do not have access to classes I was trying to hard code some values. There was no success in using such a functions:
function setLightOn()
local player = g_game.getLocalPlayer()
local light = player:getLight()
if light then
light.intensity = math.max(light.intensity, 6)
if light.color == 0 or light.color > 215 then
light.color = 215
end
player:setLight(light)
else
printConsole('No light data to update.')
end
end
I was wondering if someone was using functions like: generateLightBubble.
PS. I am not interested in increasing AmbientLight.
I was wondering if there is an option to use lua function to make a character shine like he use 'utevo lux' or what so ever in type of light hack.
I have access to g_game, g_map, g_window and so on, but I believe I do not have access to classes. I have never used them in my code.
I successfully used Cheat engine, but I would prefer to use (lua) something like:
player.setLight() or player.setCreatureLight()
but in my case, none of those two works (getLight, getCreatureLight do not work neither). Even tough I see the functions in x32dbg I can not use them. Other functions works though.
Those are my function examples:
function lightInfo1()
local player = g_game.getLocalPlayer()
local lightValue = player.getCreatureLight()
printConsole('Light value: ' .. lightValue)
end
function lightInfo2()
local player = g_game.getLocalPlayer()
local lightValue = player.getLight()
printConsole('Light value: ' .. lightValue)
end
What is more due to the fact I do not have access to classes I was trying to hard code some values. There was no success in using such a functions:
function setLightOn()
local player = g_game.getLocalPlayer()
local light = player:getLight()
if light then
light.intensity = math.max(light.intensity, 6)
if light.color == 0 or light.color > 215 then
light.color = 215
end
player:setLight(light)
else
printConsole('No light data to update.')
end
end
I was wondering if someone was using functions like: generateLightBubble.
PS. I am not interested in increasing AmbientLight.