Code: Select all
/if (${doLeash} && !${strikeReady}) {
/if (${leashholder.Equal[Nobody]} && (${Math.Distance[${Me.Y},${Me.X}:${stakeY},${stakeX}]}>20)) {
/if (!${Me.Standing}) /stand
/echo Moving closer to the Stake... ${Math.Distance[${Me.Y},${Me.X}:${stakeY},${stakeX}]} ft. away
/face nolook loc ${stakeY},${stakeX}
/keypress forward hold
/delay 1s ${Math.Distance[${Me.Y},${Me.X}:${stakeY},${stakeX}]}<20
/keypress forward
/if (${Math.Distance[${Me.Y},${Me.X}:${stakeY},${stakeX}]}<20) {
/echo Arrived near the Stake, Flopping.
/if (${Me.AbilityReady["Feign Death"]}) {
/doability "Feign Death"
} else {
/delay 5
/doability "Feign Death"
}
/face fast nolook away loc ${stakeY},${stakeX}
}
}
/if (!${leashholder.Equal[Nobody]} && ${Spawn[${leashholder}].ID} && (${Spawn[${leashholder}].Distance}>21)) {
/if (!${Me.Standing}) /stand
/echo Moving closer to ${leashholder}... ${Spawn[${leashholder}].Distance} ft. away
/if (${Target.ID}!=${Spawn[${leashholder}].ID}) /target id ${Spawn[${leashholder}].ID}
/if (${Me.Combat}) /attack off
/face nolook
/keypress forward hold
/delay 1s ${Spawn[${leashholder}].Distance}<21
/keypress forward
/if (${Spawn[${leashholder}].Distance}<21) { /echo Arrived near Master (${leashholder}) , Flopping.
/if (${Me.AbilityReady["Feign Death"]}) {
/doability "Feign Death"
}
}
}
|- Broken leash check
/if (!${leashholder.Equal[Nobody]} && !${Spawn[${leashholder}].ID}) {
/echo ** Master DEAD or ZONED! Leash is BROKEN!
/varset doLeash FALSE
/varset leashholder Nobody
/ini "RHSettings.ini" "General" "Leashing" "${doLeash}"
/ini "RHSettings.ini" "General" "LeashHolder" "${leashholder}"
}
}
the first section is if the anchor is a location (that part works fine) the second part is if they are following a person thats the part that is messin up. im kinda new at this so if im missin something obvious warn me 8)

