i need some help with the waypoints
Explanation:
waypoint = marker
i have a LUA file which teleports me to the waypoint (RMB click on the map - that marker), but i need to teleport into a checkpoint and it will take a lot of time if i place the waypoiint manually.
maybe this will help
i want when i type /placemarkk to place a waypoint in the checkpoint position and after i reach that position to place the character inside of the checkpoint
Explanation:
waypoint = marker
i have a LUA file which teleports me to the waypoint (RMB click on the map - that marker), but i need to teleport into a checkpoint and it will take a lot of time if i place the waypoiint manually.
maybe this will help
Code:
{
call @getTargetMarkerHandle 0 returnTo: 0@
}
:getTargetMarkerHandle
0A8D: 0@ = read_memory 0xBA6774 size 4 virtual_protect 0
ret 1 0@
{
call @setStateTargetMarker 1 state 0
}
:setStateTargetMarker
call @getTargetMarkerHandle 0 return: 1@
if 1@ > 0
then
if 0@ == 0
then
0AA5: call_function 0x587CE0 num_params 1 pop 1 1@ // CRadar::removeBlip
0A8C: write_memory 0xBA6774 size 4 value 0 virtual_protect 0 // CMenuManager::m_targetMarker
end
else
if 0@ == 1
then
0AA7: call_function 0x583820 num_params 6 pop 6 2 0 0 0 0 4 1@ // CRadar::createBlip
0AA5: call_function 0x583D70 num_params 2 pop 2 41 1@ // CRadar::setBlipSprite
0A8C: write_memory 0xBA6774 size 4 value 1@ virtual_protect 0 // CMenuManager::m_targetMarker
end
end
ret 0
{
call @setTargetMarkerPosition 3 x 1@ y 2@ z 3@
}
:setTargetMarkerPosition
call @getTargetMarkerHandle 0 return: 3@
if 075C: marker 3@ enabled
then
0B10: 4@ = 3@ AND 0xFFFF
0012: 4@ *= 40
0A8E: 5@ = 0xBA86F8 + 4@
0A8C: write_memory 5@ size 4 value 1@ virtual_protect 0
5@ += 4
0A8C: write_memory 5@ size 4 value 2@ virtual_protect 0
5@ += 4
0A8C: write_memory 5@ size 4 value 3@ virtual_protect 0
end
0AB2: ret 0
i want when i type /placemarkk to place a waypoint in the checkpoint position and after i reach that position to place the character inside of the checkpoint