look for a mob in range script

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
longsdale
Posts: 7
Joined: Tue Feb 07, 2012 11:57 am

look for a mob in range script

#1 Post by longsdale »

like the topic says i want a script that looks if a mob (mostly boss) is in range.is there a possibility for this?and which range?someone interested?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: look for a mob in range script

#2 Post by lisa »

--=== moved ===--
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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: look for a mob in range script

#3 Post by rock5 »

When do you want to check if the boss is in range and what do you want to do if it is?

To get the distance to something just use

Code: Select all

something = player:findNearestNameOrId("name of somethings")
dist = distance(player.X, player.Z, player.Y, something.X, something.Z, something.Y)
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
longsdale
Posts: 7
Joined: Tue Feb 07, 2012 11:57 am

Re: look for a mob in range script

#4 Post by longsdale »

if he is there i want to get a whisper window or something like that.or a simple "BOSS" in the chatwindow.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: look for a mob in range script

#5 Post by rock5 »

So at a certain waypoint you want to check if a boss is there and send a whisper to another character? What do you want to do if it's not there?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: look for a mob in range script

#6 Post by lisa »

Sounds like you just want a char to sit 24/7 at hackman (example) and whisper you when he spawns.
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
longsdale
Posts: 7
Joined: Tue Feb 07, 2012 11:57 am

Re: look for a mob in range script

#7 Post by longsdale »

not excactly but good idea :).i quit playing rom for now.the community in the forum fucks me up and the buggy rom too.thanks for the help but im out from this game :).but keep on the good work,u are really good at this programming thing i think.good to know that there are nice poeple how makes life a bit easier.
Post Reply