optimizing golden eggs profit
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: optimizing golden eggs profit
I think you should pick up the fresh eggs but don't complete the quest.
Just outsource that to an extra script. So the 1st script just collects golden and normal eggs and the other completes the quest. Could save some time and there's the option to not run the 2nd one.
Just outsource that to an extra script. So the 1st script just collects golden and normal eggs and the other completes the quest. Could save some time and there's the option to not run the 2nd one.
Re: optimizing golden eggs profit
At the moment that's what I do T0.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
fobsause,
What do you mean rubber banded? I've never seen heard of it b4.
What do you mean rubber banded? I've never seen heard of it b4.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
Urban dictionary put it into words best for me.
This occurs in online gaming when latency is relatively high. Players (or yourself) will appear to move in one direction, and then suddenly be teleported back several feet where they once were a few seconds ago.
This occurs in online gaming when latency is relatively high. Players (or yourself) will appear to move in one direction, and then suddenly be teleported back several feet where they once were a few seconds ago.
Re: optimizing golden eggs profit
Now I understand the concept but i don't see how can that be used to "appear" in places. I supposed that everytime you move there is a server check to 'control' you movements and be sure you simply don't use a hack to place you somewhere else on the client side.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
you're exactly right! The server will check to make sure you haven't moved too far. However, in your house, these controls don't exist. You can change your movement speed and teleport freely. I think I'm just going to go ahead and test it out.
Re: optimizing golden eggs profit
So with a bit of testing, you do get rubber banded in the ranch.
However, it will only rubber band you if you try to teleport beyond the maximum distance of 128.
1 <waypoint x="3940" z="3055" tag="Get Feed">
2 <waypoint x="3948" z="3107" tag="Main">
3 <waypoint x="3928" z="3185" tag="Get Eggs">
4 <waypoint x="3929" z="3261"> (actual egg gathering spot)
Notice that these waypoints are less than 128 units away from each other so you could teleport between these waypoints without getting rubber banded.
So you could basically feed a chicken, teleport to get more feed, teleport back to feed the chicken again.
The only issue is that point 2 and point 4 are too far apart so you would instead have to port from 2 to 3, then walk to 4.
However, it will only rubber band you if you try to teleport beyond the maximum distance of 128.
1 <waypoint x="3940" z="3055" tag="Get Feed">
2 <waypoint x="3948" z="3107" tag="Main">
3 <waypoint x="3928" z="3185" tag="Get Eggs">
4 <waypoint x="3929" z="3261"> (actual egg gathering spot)
Notice that these waypoints are less than 128 units away from each other so you could teleport between these waypoints without getting rubber banded.
So you could basically feed a chicken, teleport to get more feed, teleport back to feed the chicken again.
The only issue is that point 2 and point 4 are too far apart so you would instead have to port from 2 to 3, then walk to 4.
Re: optimizing golden eggs profit
mmm maybe you could have it teleport from 2 to 3 and then 4 or from 2 to a 5th and then 4.fobsauce wrote:So with a bit of testing, you do get rubber banded in the ranch.
However, it will only rubber band you if you try to teleport beyond the maximum distance of 128.
1 <waypoint x="3940" z="3055" tag="Get Feed">
2 <waypoint x="3948" z="3107" tag="Main">
3 <waypoint x="3928" z="3185" tag="Get Eggs">
4 <waypoint x="3929" z="3261"> (actual egg gathering spot)
Notice that these waypoints are less than 128 units away from each other so you could teleport between these waypoints without getting rubber banded.
So you could basically feed a chicken, teleport to get more feed, teleport back to feed the chicken again.
The only issue is that point 2 and point 4 are too far apart so you would instead have to port from 2 to 3, then walk to 4.
Anyway how exactly do you do that? memory edit?
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
Been looking to see if micromacro has any functions for editing memory...
please refer me to it if you find it before I do
please refer me to it if you find it before I do

- Administrator
- Site Admin
- Posts: 5331
- Joined: Sat Jan 05, 2008 4:21 pm
Re: optimizing golden eggs profit
See the memoryWrite* functions in the wiki.fobsauce wrote:Been looking to see if micromacro has any functions for editing memory...
please refer me to it if you find it before I do
Re: optimizing golden eggs profit
Wait you mean to say that if we simply edit memory to the place we can teleport within 128 radius! WOOT
well MM is loaded for that like Admin said... Do you know the position addresses already?
well MM is loaded for that like Admin said... Do you know the position addresses already?
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
Ty for the reference admin.
jduartedj, I don't know where they are exactly but you can start with the getpos script
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
let's see how this goes...
jduartedj, I don't know where they are exactly but you can start with the getpos script
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
let's see how this goes...
Re: optimizing golden eggs profit
it works! I'll see what I can do within a day. Gonna be gone for a week.
Also, how would I use:
memoryWriteFloatPtr(myProcess, 0x0D2E0F90, 0xA8, myData);
for multi level pointers? Or should I just find the address, then write to it thereafter...
Edit:
I think it uses the same data in the getpos function.
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
Client.exe+5B8364, offset 0x598
address, offset 0x4
address,0xB0 (for x) 0xB8 (for y)
Also, how would I use:
memoryWriteFloatPtr(myProcess, 0x0D2E0F90, 0xA8, myData);
for multi level pointers? Or should I just find the address, then write to it thereafter...
Edit:
I think it uses the same data in the getpos function.
local playerAddress = memoryReadIntPtr(getProc(), addresses.staticbase_char, addresses.charPtr_offset);
Client.exe+5B8364, offset 0x598
address, offset 0x4
address,0xB0 (for x) 0xB8 (for y)
Re: optimizing golden eggs profit
I think you want these from CPawn:
and the respective addresses from addresses.lua:
given that self.address is the player's address. (CPlayer is an extrension of CPAwn).
so I think writing would be:
Also the Y coordinate is not really necessary unless you have a mountain in front of you... it's just X,Z
Code: Select all
self.X = debugAssert(memoryReadFloat(proc, self.Address + addresses.pawnX_offset), memerrmsg);
self.Y = debugAssert(memoryReadFloat(proc, self.Address + addresses.pawnY_offset), memerrmsg);
self.Z = debugAssert(memoryReadFloat(proc, self.Address + addresses.pawnZ_offset), memerrmsg);
Code: Select all
pawnX_offset = 0x28,
pawnY_offset = 0x2C,
pawnZ_offset = 0x30,
so I think writing would be:
Code: Select all
memoryWriteFloat(proc, player.Address+addresses.pawnX_offset, value_of_X);
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
Hmmm it seems whatever code/address I use nothing works for me. I've tried all the usual suspects but as I can't even reproduce it I'm stuck here. Could you post some steps so I can at least reproduce how you did it the first time?
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
Using Cheat Engine...
Attach to Client.exe
click on the button "Add Address Manually" to open a new window
click the box "Pointer"
click "Add Pointer" twice
Then enter the pointer information.

Attach to Client.exe
click on the button "Add Address Manually" to open a new window
click the box "Pointer"
click "Add Pointer" twice
Then enter the pointer information.

Re: optimizing golden eggs profit
Insert this into in your first waypoint to teleport to your second waypoint (replace 9999 with your x and z)
offsets = {0x598, 0x4, 0xB0};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 9999); -- x value
offsets = {0x598, 0x4, 0xB8};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 9999); -- z value
For example, at the end of your "Main" waypoint you can insert:
You would also add these to when you're returning to the "Main" waypoint.
I'm also trying to figure out how to teleport on top the of chickens that still need to be fed so you don't have to walk up to them to harvest them. If anyone knows a solution, let me know.
offsets = {0x598, 0x4, 0xB0};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 9999); -- x value
offsets = {0x598, 0x4, 0xB8};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 9999); -- z value
For example, at the end of your "Main" waypoint you can insert:
Code: Select all
if 1 > inventory:itemTotalCount(204789) then -- Get more feed
__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Feed"));
offsets = {0x598, 0x4, 0xB0};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 3940); -- x value
offsets = {0x598, 0x4, 0xB8};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 3000); -- z value
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Eggs"))
offsets = {0x598, 0x4, 0xB0};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 3928); -- x value
offsets = {0x598, 0x4, 0xB8};
memoryWriteFloatPtr(getProc(), 0x9B8364, offsets, 3185); -- z value
end
I'm also trying to figure out how to teleport on top the of chickens that still need to be fed so you don't have to walk up to them to harvest them. If anyone knows a solution, let me know.
-
- Posts: 316
- Joined: Wed Jun 16, 2010 8:16 am
Re: optimizing golden eggs profit
writing memory like that will get someones attention for sure...
in not into it, beside i rather to keep the miller's cake, it gets me less money but i belive it will be enough for the lack of ekstra golden eggs there
in not into it, beside i rather to keep the miller's cake, it gets me less money but i belive it will be enough for the lack of ekstra golden eggs there
Re: optimizing golden eggs profit
I believe that writing memory won't draw attention since it is checked by the game and it is not allowed if you cross any lines, p/e you cannot do this outside the ranch at all!
Also this doesn't mean you have to give up your miller's cakes, au contraire it just makes the gathering of seed/chickens/eggs faster, you may then choose to pick up the fresh eggs or not, BUT as i recommended you SHOULD pick them up because it causes a memory flood.
This could DRASTICALLY improve the speed of the script and who knows it may be also used in instances!
I think (and this is just my opinion!) that rock5 should put an option in the script to use this or not. OFC I'm assuming this can be used with no apparent problem.
AND thank you fobsauce for all the help so far, atm i'm at work but will test that when i get home.
Also this doesn't mean you have to give up your miller's cakes, au contraire it just makes the gathering of seed/chickens/eggs faster, you may then choose to pick up the fresh eggs or not, BUT as i recommended you SHOULD pick them up because it causes a memory flood.
This could DRASTICALLY improve the speed of the script and who knows it may be also used in instances!
I think (and this is just my opinion!) that rock5 should put an option in the script to use this or not. OFC I'm assuming this can be used with no apparent problem.
AND thank you fobsauce for all the help so far, atm i'm at work but will test that when i get home.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: optimizing golden eggs profit
I have no interest in hacking the game which is basically what this does. I'm only interested in using the bot to do what already can be done manually.jduartedj wrote:I think (and this is just my opinion!) that rock5 should put an option in the script to use this or not.
I'll probably eventually add an option to choose if you want to complete the quest or not but probably not for collecting fresh eggs as, has been pointed out, you can collect them while you wait to be able to click the next hen. Although I might add an option to drop the fresh eggs.
- 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
Who is online
Users browsing this forum: No registered users and 4 guests