If you like this site and you like coffee, why not buy me one. Because I love it

Click to buy coffe
avatar
Untitled

Guest 54 21st Nov, 2022

MARKUP 1.76 KB
                                           
                         Waypoint Maker :

set $mode W
set $sqm 5

auto 200 dontlist | foreach 'newmessages' $reset if [$reset.content == 'reset' && $reset.sender == $self.name] {filedelete "[$self.name] Temp-Waypoints.txt" | statusmessage "Waypoints cleared."}
auto 200 dontlist | foreach 'newmessages' $start if [$start.content == 'start' && $start.sender == $self.name] {set $px $posx | set $py $posy | set $pz $posz | set $rec 1 | statusmessage "Waypoint recording started."}
auto 200 dontlist | foreach 'newmessages' $stop if [$stop.content == 'stop' && $stop.sender == $self.name] {set $rec 0 | statusmessage "Waypoint recording stopped."}
auto 200 dontlist | if [$rec == 1 && $posx >= ($px+$sqm)] {set $px $posx | set $py $posy | set $pz $posz | filewriteline "[$self.name] Temp-Waypoints.txt" "$mode $px $py $pz" | statusmessage "Waypoint $px $py [$pz] added."}
auto 200 dontlist | if [$rec == 1 && $posx =< ($px-$sqm)] {set $px $posx | set $py $posy | set $pz $posz | filewriteline "[$self.name] Temp-Waypoints.txt" "$mode $px $py $pz" | statusmessage "Waypoint $px $py [$pz] added."}
auto 200 dontlist | if [$rec == 1 && $posy >= ($py+$sqm)] {set $px $posx | set $py $posy | set $pz $posz | filewriteline "[$self.name] Temp-Waypoints.txt" "$mode $px $py $pz" | statusmessage "Waypoint $px $py [$pz] added."}
auto 200 dontlist | if [$rec == 1 && $posy =< ($py-$sqm)] {set $px $posx | set $py $posy | set $pz $posz | filewriteline "[$self.name] Temp-Waypoints.txt" "$mode $px $py $pz" | statusmessage "Waypoint $px $py [$pz] added."}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM