roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hello, im using this code in otclient in modules/client/client.lua:
and it print:
Roris 0
Player Test 0
It return 0, for all vocations, how can i correct it? In tfs getVocation() works fine, but in OTclient dont work.
Lua:
function onGameStart()
local player = g_game.getLocalPlayer()
if not player then return end
g_window.setTitle(g_app.getName() .. " - " .. player:getName())
print(player:getName(), player:getVocation())
end
and it print:
Roris 0
Player Test 0
It return 0, for all vocations, how can i correct it? In tfs getVocation() works fine, but in OTclient dont work.
Last edited: