Using v8
I started learning some otclient coding style and right away i meet a brick wall
Here is the code i started with just wanted to see if this function is gonna get called
And its not working, i was thinking maybe im going giga retard mode but i try with function onWalk() and it was working so my guess is i have not meet some requirments to use the function ?
Can anybody provide me some info.
I started learning some otclient coding style and right away i meet a brick wall
Here is the code i started with just wanted to see if this function is gonna get called
Lua:
function init()
connect(g_game, {
onGameStart = online,
onGameEnd = offline,
onMousePress = onMousePress,
})
end
function terminate()
disconnect(g_game, {
onGameStart = online,
onGameEnd = offline,
onMousePress = onMousePress,
})
destroy()
end
function onMousePress(mousePos, button)
print("pizza grande")
--print(mousePos.x, mousePos.y, mousePos.z)
--print(button)
end
Can anybody provide me some info.