Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
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.
Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Here is a daily to use tickets. It will run till you are out of tickets!!. It works till someone posts a better way point.
It does not do class swapping.
It does not do class swapping.
- Attachments
-
- sc dly clean wounds heal faster.xml
- (2.04 KiB) Downloaded 496 times
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Now it is used:
five times to complete the mission
If the guard is sit down, works, but if he is stand up you can't heal him.
Is there any way to know if he is available or sit / stand up?
Many thanks
Code: Select all
player:target_Object(123623) -- Wounded Guard
If the guard is sit down, works, but if he is stand up you can't heal him.
Is there any way to know if he is available or sit / stand up?
Many thanks
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Hmm, you might be able to check the stance or attackable flags. It's just a guess though.ThulsaDoom wrote: ↑Tue Sep 22, 2020 5:50 am Now it is used:five times to complete the missionCode: Select all
player:target_Object(123623) -- Wounded Guard
If the guard is sit down, works, but if he is stand up you can't heal him.
Is there any way to know if he is available or sit / stand up?
Many thanks
Code: Select all
local stance = memoryReadByte(getProc(), player.TargetPtr + addresses.game_root.pawn.stance);
local attackableFlags = memoryReadInt(getProc(), player.TargetPtr + addresses.game_root.pawn.attackable_flags)
printf("Stance: 0x%X\n", stance);
printf("Attackable Flags: 0x%X\n", attackableFlag );
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
I added the code poposed to Rbassist.xml main loop:Administrator wrote: ↑Thu Sep 24, 2020 9:12 pmHmm, you might be able to check the stance or attackable flags. It's just a guess though.ThulsaDoom wrote: ↑Tue Sep 22, 2020 5:50 am Now it is used:five times to complete the missionCode: Select all
player:target_Object(123623) -- Wounded Guard
If the guard is sit down, works, but if he is stand up you can't heal him.
Is there any way to know if he is available or sit / stand up?
Many thanksTry sampling both while he's standing and sitting; are they different? Is it reliable?Code: Select all
local stance = memoryReadByte(getProc(), player.TargetPtr + addresses.game_root.pawn.stance); local attackableFlags = memoryReadInt(getProc(), player.TargetPtr + addresses.game_root.pawn.attackable_flags) printf("Stance: 0x%X\n", stance); printf("Attackable Flags: 0x%X\n", attackableFlag );
Code: Select all
-- Main loop
while (true) do
yrest(250)
local stance = memoryReadByte(getProc(), player.TargetPtr + addresses.game_root.pawn.stance);
local attackableFlags = memoryReadInt(getProc(), player.TargetPtr + addresses.game_root.pawn.attackable_flags)
printf("Stance: 0x%X\n", stance);
printf("Attackable Flags: 0x%X\n", attackableFlag );
..
When I click on the quest giver "Julius Mimet", the following error appears:
Code: Select all
2020-09-25 19:57:07 - [string "..."]:38: bad argument #1 to 'printf' (got nil)
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Ah. I see. Maybe this?
Code: Select all
local guard = player.findNearestNameOrId("Put the guard's name here");
if guard ~= nil then
local stance = memoryReadByte(getProc(), guard.Address + addresses.game_root.pawn.stance);
local attackableFlags = memoryReadInt(getProc(), guard.Address + addresses.game_root.pawn.attackable_flags)
printf("Stance: 0x%X\n", stance or -1);
printf("Attackable Flags: 0x%X\n", attackableFlags -1);
end
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
I tried it, getting error:Administrator wrote: ↑Fri Sep 25, 2020 3:45 pm Ah. I see. Maybe this?Code: Select all
local guard = player.findNearestNameOrId("Put the guard's name here"); if guard ~= nil then local stance = memoryReadByte(getProc(), guard.Address + addresses.game_root.pawn.stance); local attackableFlags = memoryReadInt(getProc(), guard.Address + addresses.game_root.pawn.attackable_flags) printf("Stance: 0x%X\n", stance or -1); printf("Attackable Flags: 0x%X\n", attackableFlags -1); end
Code: Select all
2020-09-26 13:22:37 - D:/Runes of magic/micromacro/scripts/rom/classes/player.lua:3734: attempt to call method 'updateXYZ' (a nil value)
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Sorry; my mistake. Instead of , it should be
Code: Select all
player.findNearestNameOrId
Code: Select all
player:findNearestNameOrId
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
I didn't realize about this mistake! ThanksAdministrator wrote: ↑Sun Sep 27, 2020 12:50 pm Sorry; my mistake. Instead of, it should beCode: Select all
player.findNearestNameOrId
Code: Select all
player:findNearestNameOrId
Test has been done, with result:
Code: Select all
Stance: 0x0
Attackable Flags: 0x10003C7
- Administrator
- Site Admin
- Posts: 5312
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
That's unfortunate. I was hoping one of those values would have been different. There might be some other value stored in the pawn struct but I have no idea where or what data type it would be. You could try investigating with Cheat Engine; do you have any experience with that?
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
I know Cheat Engine, but my knowledge is not so advanced as to find this kind of data.Administrator wrote: ↑Fri Oct 02, 2020 9:53 am That's unfortunate. I was hoping one of those values would have been different. There might be some other value stored in the pawn struct but I have no idea where or what data type it would be. You could try investigating with Cheat Engine; do you have any experience with that?
Anyway, we will continue as before. I don't think it is necessary to spend a lot of time on this matter, there are other priorities.
Thanks!
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Splitwater Coast Daily- Clean Wounds Heal Faster/w resets
Some news after last addresses update. "attackable_flags" is changing the status with the Wounded Guard.
Values with the guard sitting and waiting to be activated:
After being activated and standing:
The funny thing is that the status changes when we activate the guard and he stands up, then the value changes again but the guard remains standing for about six seconds, then he sits down again and it is when it can be activated again.
During the six seconds that the value of the flag has already changed but the guard is not seated, he cannot be activated.
It seems that the action of standing or sitting is linked to the action of activating the guard.
Values with the guard sitting and waiting to be activated:
Code: Select all
Stance: 0x0
Attackable Flags: 0x10003C7
Code: Select all
Stance: 0x0
Attackable Flags: 0x1000387
During the six seconds that the value of the flag has already changed but the guard is not seated, he cannot be activated.
It seems that the action of standing or sitting is linked to the action of activating the guard.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 9 guests