Page 1 of 1
look for a mob in range script
Posted: Wed Mar 21, 2012 4:09 pm
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?
Re: look for a mob in range script
Posted: Wed Mar 21, 2012 8:43 pm
by lisa
--=== moved ===--
Re: look for a mob in range script
Posted: Wed Mar 21, 2012 11:44 pm
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)
Re: look for a mob in range script
Posted: Thu Mar 22, 2012 3:30 am
by longsdale
if he is there i want to get a whisper window or something like that.or a simple "BOSS" in the chatwindow.
Re: look for a mob in range script
Posted: Thu Mar 22, 2012 4:12 am
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?
Re: look for a mob in range script
Posted: Thu Mar 22, 2012 4:47 am
by lisa
Sounds like you just want a char to sit 24/7 at hackman (example) and whisper you when he spawns.
Re: look for a mob in range script
Posted: Thu Mar 22, 2012 9:11 am
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.