mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 22:53:26 +02:00
Updated to OTCv8 3.1 rev 150
This commit is contained in:
@@ -17,10 +17,11 @@ autoFinishNextServerWalk = 0
|
||||
turnKeys = {}
|
||||
|
||||
function init()
|
||||
connect(g_game, { onTeleport = onTeleport })
|
||||
|
||||
connect(LocalPlayer, {
|
||||
onPositionChange = onPositionChange,
|
||||
onWalk = onWalk,
|
||||
onTeleport = onTeleport,
|
||||
onWalkFinish = onWalkFinish,
|
||||
onCancelWalk = onCancelWalk
|
||||
})
|
||||
@@ -30,10 +31,11 @@ function init()
|
||||
end
|
||||
|
||||
function terminate()
|
||||
disconnect(g_game, { onTeleport = onTeleport })
|
||||
|
||||
disconnect(LocalPlayer, {
|
||||
onPositionChange = onPositionChange,
|
||||
onWalk = onWalk,
|
||||
onTeleport = onTeleport,
|
||||
onWalkFinish = onWalkFinish
|
||||
})
|
||||
removeEvent(autoWalkEvent)
|
||||
|
Reference in New Issue
Block a user