Page 3 of 14

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Sat Jul 14, 2012 10:22 am
by rooster1620
wow, this is awesome, unfortunately i need to upgrade my cpu. currently running amd athlon 64 (single core, 4gb ram and a 1 gig gfx card and this wp is most assuradly very taxing on my cpu usage it spike to 100 pct. On the upside i did get the title for worst score ever :o
will be upgrading to a 3 ghz dual core shortly, i really hopes that helps. and rock most def 4 gigs is enought to run 2-4 bots with minimal probs even on my crappy system (GO EMACHINES) :?

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Sun Jul 15, 2012 6:34 am
by gloover
Hey Rock,

its may a game bug, where sometimes one or more balls seems to be growing, even if the converter is not in usage - so today on our server ALL converters on ALL channels have one or more balls growing on all unoccuped converters.

This cause the error message "..no converter are available..

Is there any way to solve this problem?

Thx you in advance!

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Sun Jul 15, 2012 7:04 am
by lisa
gloover wrote:Hey Rock,

its may a game bug, where sometimes one or more balls seems to be growing, even if the converter is not in usage - so today on our server ALL converters on ALL channels have one or more balls growing on all unoccuped converters.

This cause the error message "..no converter are available..

Is there any way to solve this problem?

Thx you in advance!
Ask a GM to reset the machines?

If you use a machine with a bugged orb the bot will constantly try to use that orb which will result in many -1 and eventually blow up the machine.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Sun Jul 15, 2012 10:19 am
by rooster1620
If you use a machine with a bugged orb the bot will constantly try to use that orb which will result in many -1 and eventually blow up the machine.
On the upside atleast you get a title for that :o

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Sun Jul 15, 2012 10:37 am
by rock5
I doubt it would blow up the machine. You'll probably just get a lousy score.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Tue Jul 17, 2012 7:14 pm
by lisa
machines must have been moved elsewhere, some other event thing now, unless they just got rid of them.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Tue Jul 17, 2012 7:34 pm
by Hidden
New events I found a weaving machine in Vara central that gives Funtional mat packages (this events certs) but no idea about the water elements

Ok just scored a perfect run on it and recieved a Goddess Weaving Material Package (Purple) so it could be worthwhile trying to script it. seems to be used for wings / costumes

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 1:20 am
by rock5
I'd say the machines have been removed because the event is over.

With the Zodiac Pets, at least they were unique and gave a valuable extra luck for farmers.

If all this new event gives you is costumes and wings, I'm not interested. You can buy those. Unless maybe they have some special unique attribute.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 2:00 am
by romaniac
The zodiac pets are still on. This time the element.is water and its a crab.

Playing the game with the loom on Varanas square gives you packages that you can exchange for items and water elements according to the forum.

Theres another game in front of the bridge every hour at 20 minutes past which supposedly gives you water elements and those packages.

So in order to farm for zodiac pets it might be helpful to script both. But this event is not fully explored yet.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 2:07 am
by rock5
Ah ok. I'll have a look at them then.

Edit: A bit complex and I can't be bothered. I'll wait for someone else to figure it out and provide more info before revisiting this.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 2:29 am
by silinky
the new event is near the resurrect place at varanas bridge.
as i saw it you have to use skills on some colors also, but they can be targeted by targetobject.
sadly didnt have time to get more info, i had to go out.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 3:42 am
by lisa
I'll have a poke at the ones near resurrect point, at work so don't expect anything soon.

One at resurrect point is #:20 and one on bridge is #:40


--=== Resurection spot ===--

Code: Select all

Ayna Rett 120888


Blue Element 103015
Yellow Element 103014
Red Element 103013

Even though I saw purple ones nothing printed with the name purple, this had unknown though /shrug
<UNKNOWN>103080

couple other things I don't know what they are for, could be anything even there normally.

Code: Select all

Kibensty's Stone Tablet110190
Aguar's Stone Tablet110189
Tador's Stone Tablet110188
Henolid's Stone Tablet110187

121045
120887
Not sure how to determine what colour is current colour yet.
Basically 2 skills, if colour is yellow you use 1 skill on yellow and the other skill on blue and red. ignore purple.

That's all I have worked out at this stage.

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 6:50 am
by lisa
This is really crude but for testing it might be ok.
Add this to a userfunction file and start MM using commandline

Then work out what colour that event is and type

wind("yell")
or
wind("red")
or
wind("blue")

It will just do 1 round and then print that round of objects is done and you can just press up arrow and hit enter to do again, like I said purely for testing for now.

Code: Select all

function wind(_type)

	local obj = nil;
	local objectList = CObjectList();
	objectList:update();

	for i = 0,objectList:size() do
		obj = objectList:getObject(i
		if obj.Id == 103013 then
			player:target(obj)
			if _type == "red" then
				RoMScript("UseExtraAction(1)")
			else
				RoMScript("UseExtraAction(2)")
			end
		end
		if obj.Id == 103014 then
			player:target(obj)
			if _type == "yell" then
				RoMScript("UseExtraAction(1)")
			else
				RoMScript("UseExtraAction(2)")
			end
		end
		if obj.Id == 103015 then
			player:target(obj)
			if _type == "blue" then
				RoMScript("UseExtraAction(1)")
			else
				RoMScript("UseExtraAction(2)")
			end
		end
		yrest(500)
	end
	print("done that round")
end

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 10:05 am
by dx876234
Just to limit the number of objects found (for speed) I've wrapped the obj.Id ifs in a simple test:

Code: Select all

local d   = distance(player.X, player.Z, obj.X, obj.Z)
if d < 180  and string.find(obj.Name, "Element") then
	if obj.Id == 103013 then
		player:target(obj)
...
Hmm perhaps I should have used Ayna Rett instead of player as center..

-dx

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 10:07 am
by dx876234
All that really remains is to figure out color of buble around Ayna Rett, doesnt seem to be a buff on her.

-dx

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 1:08 pm
by dx876234
Guessing objectid for bubbles are 103013, 103014, 103015

-dx

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 1:37 pm
by dx876234

Code: Select all

Red bubble: 121055
Blue bubble: 121057
Yellow bubble: 121056
-dx

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 1:42 pm
by dx876234
Guess something like this should do it, yet to be tested....

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
		<![CDATA[
			--[[
				NPC: Ayna Rett ID: 120888
				
				Red bubble: 121055
				Blue bubble: 121057
				Yellow bubble: 121056
				
				Blue Element ID: 103015
				Yellow Element ID: 103014
				Red Element ID: 103013
				Purple Element ID: 106548
				
				Stone marker ID: 121045

                 NB: Based on Lisa's wind function
			--]]

		<![CDATA[
			--[[
				NPC: Ayna Rett ID: 120888
				
				Red bubble: 121055
				Blue bubble: 121057
				Yellow bubble: 121056
				
				Blue Element ID: 103015
				Yellow Element ID: 103014
				Red Element ID: 103013
				Purple Element ID: 106548
				
				Stone marker ID: 121045
			--]]
			bublerel = {121055=103013, 121057=103015, 121056=103014}
			
			repeat
				bobj = player:findNearestNameOrId({121055, 121056, 121057})
				if bobj then
					cprintf(cli.lightblue, "Bubble %d\n", bobj.Id)
					obj=player:findNearestNameOrId({103013, 103014, 103015, 106548})
					
					if obj then
						player:target(obj)
						if obj.Id == bublerel[bobj.Id] then
							RoMScript("UseExtraAction(1)")
						else
							RoMScript("UseExtraAction(2)")
						end
					end
				end
				yrest(200)
			until false
			
			error("Finished")
		]]>
	</onLoad>
</waypoints>

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 3:40 pm
by romaniac
I gave your script a try. It does not compile, the initialization of bublerel needed to be changed to

Code: Select all

         bublerel = {}
         bublerel[121055]=103013
         bublerel[121057]=103015
         bublerel[121056]=103014
But then it completed the game with a score of about 50. Good work.


Has anybody figured out the loom game on the main square yet? It uses a combination of bubbles and text messages. Any idea what channel those texts are on?

Re: Rock5's Constellation (Zodiac) Pet scripts

Posted: Wed Jul 18, 2012 4:28 pm
by dx876234
Ye, I discovered the initialization bug 1st time I ran the script as well :)

Which NPC is the loom event?

-dx