Rock5's Constellation (Zodiac) Pet scripts

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#101 Post by botique » Fri Jul 20, 2012 12:23 pm

For those attempting Jamie Rayer's game, you will not be able to see the matrix if you are using Lisa's model files.

Beni
Posts: 54
Joined: Fri Jun 17, 2011 4:13 am

Re: Rock5's Constellation (Zodiac) Pet scripts

#102 Post by Beni » Sat Jul 21, 2012 2:26 am

120 point...1 water element :cry:

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Rock5's Constellation (Zodiac) Pet scripts

#103 Post by silinky » Sat Jul 21, 2012 7:14 am

i try to make myself a wp for the weaving machine but i cannot find out how to identify the matrix color. any hint for it?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Constellation (Zodiac) Pet scripts

#104 Post by rock5 » Sat Jul 21, 2012 10:46 am

That's already been looked for with no luck. There is no matrix object and it doesn't seem to be an offset of the machine itself.
  • 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

botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#105 Post by botique » Sat Jul 21, 2012 1:16 pm

What if we tell to the bot manually the color of the matrix?

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Rock5's Constellation (Zodiac) Pet scripts

#106 Post by silinky » Sat Jul 21, 2012 2:06 pm

well, thx for the answer, i already hate this event, screw the pet :D
all kinds of moronic stuff to do, instead of playing the game.
back to my fighting bot i guess.

Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#107 Post by Hidden » Sat Jul 21, 2012 8:05 pm

Thanks Dx and Lisa works well...... i hate timed events :( not enough hours in the day and now its only once an hour not twice.

Its a pain as i still need a Zodic pet, havent received a pet crystal yet.... and its like 2 months till they change events.

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#108 Post by BillDoorNZ » Mon Jul 23, 2012 8:40 pm

ok...been working on the weaving machine....an interesting one that one.

will attach what I have to date...please note that this the first version! It will pick the correct box when:

1) There are no errors
2) There is a Matrix error
3) There is a Message error
4) There is both a Matrix and Message error

I'm currently working on the Message Matrix error combination. Colors are based off the Weaving Machine buffs

Code: Select all

		BUFFS_RED = 622962;
		BUFFS_WHITE = 622963;
		BUFFS_YELLOW = 622964;
The problem is that the CPawn:updateBuffs function doesn't get the buff as it has no Name. I added a function to get those and that seems to work correctly.

Sometimes the order of the system and warning messages is invalid, so it may pay to check each twice...not sure yet...needs more testing...have updated to only get error text if there is a message error :) which seems to have resolved the issue.

Game now completes fully with 21 or 22 (think it was 21) successes and gets goddess package.
Attachments
WeavingMachine.xml
v1.2
(10.09 KiB) Downloaded 207 times
Last edited by BillDoorNZ on Tue Jul 24, 2012 5:01 pm, edited 3 times in total.

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#109 Post by BillDoorNZ » Mon Jul 23, 2012 8:47 pm

only took 60 transport runes to test and debug!!! lol

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Constellation (Zodiac) Pet scripts

#110 Post by lisa » Mon Jul 23, 2012 9:51 pm

Code: Select all

			elseif (obj.Id == id_WeavingMachine) then
				printf(obj.Hex.."\n");
errors out saying Hex a nil value.

just for future reference you can use

Code: Select all

print(obj.Hex)
and it will do a next line at end by default without needing to add one in =)
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

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#111 Post by BillDoorNZ » Mon Jul 23, 2012 9:54 pm

doh...left that code in there did I!!! :)

one sec and will update my post

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#112 Post by BillDoorNZ » Mon Jul 23, 2012 9:55 pm

k, updated...was using it to see what mem locations were changing when the color's were there...

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Constellation (Zodiac) Pet scripts

#113 Post by lisa » Mon Jul 23, 2012 10:14 pm

i commented out that line and worked fine, the score stopped at 21, not sure why though. It must have clicked 6 or 7 things after it got 21 but it just stayed at 21. Maybe a max score?

Also not sure why you have a few waypoints to walk away and back again?

BTW you did an awesome job on it =)
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

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#114 Post by BillDoorNZ » Mon Jul 23, 2012 10:15 pm

thx! :)

heh...those are a leftover from a previous version and some stuff of mine.

I'll remove those tomorrow and also update the 'center' spot so its a range of spots as its very obviously a bot when you watch it. Will add some longer pauses after the box click too and make them randomised so as to not look so botty :)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Constellation (Zodiac) Pet scripts

#115 Post by lisa » Mon Jul 23, 2012 10:19 pm

I didn't think it looked botty at all, going to the center is logical even when playing, I would however make it face the weaving machine at that spot though as looking other direction doesn't look right lol
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

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#116 Post by BillDoorNZ » Mon Jul 23, 2012 10:22 pm

lol...true....dunno how to do that as yet...will have to look it up :)

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#117 Post by BillDoorNZ » Mon Jul 23, 2012 10:24 pm

hmm...something like:

Code: Select all

			local angle = math.atan2(target.Z - self.Z, target.X - self.X);
			local yangle = math.atan2(target.Y - self.Y, ((target.X - self.X)^2 + (target.Z - self.Z)^2)^.5 );
			self:faceDirection(angle, yangle);
??

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rock5's Constellation (Zodiac) Pet scripts

#118 Post by lisa » Mon Jul 23, 2012 10:27 pm

you can get rid of the waypoints altogether and just add a player:sleep() as the last line in the onload.


since the machine never moves you could put in the actual coords of it, or you can do a memory scan for the object and get it's coords that way.

Code: Select all

player:udpdate()
local angle = math.atan2(machine.Z - player.Z, machine.X - player.X);
camera:setRotation(angle);
or yeah you can use that code you posted if you worry about y values but since you only care which direction char faces the Y shouldn't matter =)

Actually on second thought, when you click the middle you turn to click then turn back and if you had it face machine it would turn a third time, not ideal.

I changed the end of the onload to this

Code: Select all

	player:target_NPC(jamie_id);
	yrest(2000)
	if inventory:itemTotalCount("Transport Rune") then
		ChoiceOptionByName("transport");	
		loadPaths("weavingmachine")
	else
		player:sleep()
	end
so if you have transport runes it will use them to redo the event, it will error out though if someone else starts the event before you do, would need a check after clicking machine for if it is in use or not.

Code: Select all

		local function findClosest(_obj)
			if _obj == nil then player:sleep() end
that will probably do the trick because _obj is nil if someone else is doing the event when you click machine.
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

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#119 Post by BillDoorNZ » Tue Jul 24, 2012 5:58 am

lisa wrote:

Code: Select all

			elseif (obj.Id == id_WeavingMachine) then
				printf(obj.Hex.."\n");
errors out saying Hex a nil value.

just for future reference you can use

Code: Select all

print(obj.Hex)
and it will do a next line at end by default without needing to add one in =)
nice...the Hex property was just a dump of the hex values from the object pointer to the last known offset (lootable).

Code: Select all

		for i=self.Address,self.Address + addresses.pawnLootable_offset+20,1 do
			local b = debugAssert(memoryReadUByte(proc, i)) or 0;
			if ((i % 4)==0) then s = s.."  "; end;
			s = sprintf("%s %02X", s, b);
		end;
		self.Hex = s;

Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: Rock5's Constellation (Zodiac) Pet scripts

#120 Post by Hidden » Tue Jul 24, 2012 11:47 am

OMG Bill you are a legend :D

I dunno about looking "bot like" even manually I look like a bot. I just stand on the middle one and after clicking one of the sides use the back key to walk back to the centre.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest