Where is my target?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Where is my target?

#1 Post by silinky »

heeey, people :)

forgive my nubish question, i have a feeling there is an easy answer for this, but i am asking for some info nonetheless :)

how can i find out the coordinates of my target?
and also, how can i do this:
i run around with my bot normally, and when i aquire a target, and reach combat distance, to teleport on top of the mob, maybe a little off of it, then start combat.
thanks for any answers!
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Where is my target?

#2 Post by lisa »

This is what you want.

http://www.solarstrike.net/phpBB3/viewt ... =27&t=3713

Just have MM running with commandline and when you have a target call the function

Code: Select all

telefollow(50)
if you call it once then it will teleport to a distance of 50 and behind mob, if you want to actually follow the mob then you will need to do a little loop.

Code: Select all

for i = 1,10 telefollow(50) end
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Where is my target?

#3 Post by silinky »

lol thx, Lisa i was really a nub, i even have that userfunction installed:)))))
is there a way to execute this at the moment the fight would begin, but not at every skill?
i think if i put it to onskillcast, it would teleport way too often.
or onPreSkillCast does exactly this?

wow i feel emberassed :oops:
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Where is my target?

#4 Post by lisa »

onskillcast event occurs after a skill is used.
preskillcast is code done before the skill is used.

As for using the function just to start combat, I guess you could add it into the onpreskillcast and do a check for not in combat and skill type is damage.

untested but might work

Code: Select all

	<onPreSkillCast>
	if ( not player.Battling ) and arg1.Type == STYPE_DAMAGE then
		telefollow(50)
	end
   </onPreSkillCast>
It might try to move in range before doing this though, prob need to rethink it. Give it a test anyway just in case it does work.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Where is my target?

#5 Post by silinky »

thanks! :)
and now i will go back to my notepad++ to convert my bot into pure awesomeness ^_^ :D
Post Reply