FANDOM


Created by Piysta on the RealmCrafter: Community Edition forums.

This script will find the range of the target, I used to use it in a spell. Afterwards, on another script, i made it a ingame command.

Good for debugging ranges from player to target, can also be used to do min/max range of spells and attacks.

Using "RC_Core.rcm"
; Ithis Online
; Date/Time: 7:13:52 PM on 12/3/2010
; By Dillan Cobb on COBB-PC

Function Main()
Player = Actor()
Target = ContextActor()
Distance# = ActorDistance(Player, Target)


If Target = 1
    Output(Player, "Distance is: " + Distance#)
Else
    Output(Player, "You need a target.")
EndIf

Return
End Function