All pastes #924157 Raw Edit

Someone

public text v1 · immutable
·published 2008-03-01 03:27 UTC
rendered paste body
1. Find your player coordinates (X / Y), on slot 1. (Float)
2. Find your player coordinates (X / Y), on slot 2. (Float)
3. Find the slot difference. (Difference between the hex addresses.)
4. Do the same as above for: Team addresses, alive / dead addresses, slot addresses, and in-game addresses.
5. Declare a new integer, named Target, starting at 1, this will be your enemies slot.
6. Make checks, to make sure that your target is somebody that you can kill (not you, not dead, not on your team, in-game).
If the person is "killable" then:

WriteTYPE(&HADDRESS + (&HSLOTDIFF * (Slot - 1)) , VALUE)

___
In the case of teleporting to your enemy, you would want to have TYPE = Float, ADDRESS = Your X / Y coordinate, SLOTDIFF = The slot difference between slot 1 and slot 2 coordinate addresses, and VALUE = (&HADDRESS + (&HSLOTDIFF * (Target - 1))) ADDRESS = Your X / Y coordinate, SLOTDIFF = The slot difference between slot 1 and slot 2 coordinate addresses.
___

If the person is not "killable" then:

If Target < 32 Then
Target = Target + 1
Else
Target = 1
End If