mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Improve encrypt/decrypt algorithms
This commit is contained in:
@@ -89,9 +89,7 @@ function init()
|
||||
|
||||
-- generate machine uuid, this is a security measure for storing passwords
|
||||
if not g_crypt.setMachineUUID(g_configs.get('uuid')) then
|
||||
local uuid = g_crypt.genUUID()
|
||||
g_crypt.setMachineUUID(uuid)
|
||||
g_configs.set('uuid', uuid)
|
||||
g_configs.set('uuid', g_crypt.getMachineUUID())
|
||||
g_configs.save()
|
||||
end
|
||||
|
||||
|
@@ -553,7 +553,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
player:stopAutoWalk()
|
||||
|
||||
if autoWalkPos and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseLeftButton then
|
||||
player.onAutoWalkFail = function() modules.game_textmessage.displayStatusMessage(tr('There is no way.')) end
|
||||
player.onAutoWalkFail = function() modules.game_textmessage.displayFailureMessage(tr('There is no way.')) end
|
||||
player:autoWalk(autoWalkPos)
|
||||
return true
|
||||
end
|
||||
|
@@ -387,7 +387,7 @@ end
|
||||
function minimapAutoWalk(pos)
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player:autoWalk(pos) then
|
||||
modules.game_textmessage.displayStatusMessage(tr('There is no way.'))
|
||||
player.onAutoWalkFail = function() modules.game_textmessage.displayFailureMessage(tr('There is no way.')) end
|
||||
return false
|
||||
else
|
||||
return true
|
||||
|
Reference in New Issue
Block a user