Page 1 of 1
Where is my target?
Posted: Sun May 06, 2012 5:25 pm
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!
Re: Where is my target?
Posted: Sun May 06, 2012 8:25 pm
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
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.
Re: Where is my target?
Posted: Mon May 07, 2012 5:58 am
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

Re: Where is my target?
Posted: Mon May 07, 2012 9:34 am
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.
Re: Where is my target?
Posted: Mon May 07, 2012 1:22 pm
by silinky
thanks!

and now i will go back to my notepad++ to convert my bot into pure awesomeness ^_^
