Page 1 of 1

Three Playful Brothers - Richies Quest

Posted: Thu Sep 06, 2012 5:39 am
by zeljomir
i heard that ppl find screpat for findig him... mayve you know some thing abot that...

****

http://www.theromwiki.com/Update_for_Th ... hers_Quest

Re: Three Playful Brothers - Richies Quest

Posted: Thu Sep 06, 2012 8:22 am
by Ego95
It's not a script, that you can use on your computer. It's an script that is started by the server.

Re: Three Playful Brothers - Richies Quest

Posted: Thu Sep 06, 2012 9:33 am
by zeljomir
That's what I'm afraid of :S

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 6:41 am
by dx876234
Its quite simple to find actually, each Richie has 3 different locations.
If u do a dump of the objects around u can see his locations.

-dx

Code: Select all

function DumpObjects()
	local objectList = CObjectList();
	objectList:update();
	local objSize = objectList:size()
	for i = 0,objSize do 
		local obj = objectList:getObject(i);
		local d   = distance(player.X, player.Z, obj.X, obj.Z)
		cprintf(cli.yellow, "Name: %s ID: %d, distance %d\n", obj.Name, obj.Id, d) 
	end
end

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 7:41 am
by rock5
I remember once I wrote some code that would beep as the object comes in range and beep faster and faster as you got closer. Like a geiger counter. I wonder what I did with it.

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 9:02 am
by silinky
rock5 wrote:I remember once I wrote some code that would beep as the object comes in range and beep faster and faster as you got closer. Like a geiger counter. I wonder what I did with it.
wow u gave me a good idea :D
could you post that function? i wanna implement it in gm monitor, and some boss scripts :)

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 9:17 am
by rock5
Ok I found it but it's set up to detect a certain list of names. I'll quickly modify it into a more general purpose function that can accept a list of names. What were you thinking of? Detecting GMs as well?

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 10:05 am
by rock5
The function name is DectectPawns. It can accept a name, id or list of names and ids in a table. It will start beeping as soon as a pawn is visible in memory and print it's distance in the MM window.

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 3:58 pm
by zeljomir
im new whit this things soo i ask dumb questoin, how to use that lua file rock5?
wher i need to put it work? in micromacro?

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 4:10 pm
by rock5
You put userfunctions into the userfunctions folder. They get loaded automatically. Then you have the function available to you.

The easiest way to use this function is start up the 'commandline' waypoint file and type the command at the prompt.

Re: Three Playful Brothers - Richies Quest

Posted: Fri Sep 07, 2012 4:41 pm
by zeljomir
done that its works but not on richie :S cent find him.. but tx for new toy :D i like it

Re: Three Playful Brothers - Richies Quest

Posted: Sat Sep 08, 2012 12:05 am
by rock5
zeljomir wrote:done that its works but not on richie :S cent find him.. but tx for new toy :D i like it
Well you can't detect something that isn't there. From what I read online, the Richies are a bit buggy.

Re: Three Playful Brothers - Richies Quest

Posted: Sun Sep 09, 2012 9:57 am
by silinky
rock5 wrote:The function name is DectectPawns. It can accept a name, id or list of names and ids in a table. It will start beeping as soon as a pawn is visible in memory and print it's distance in the MM window.
thanks mate :)