Party Bot (questions/answers)

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
ellisdee
Posts: 24
Joined: Mon Sep 26, 2011 3:03 pm

Re: Party Bot (questions/answers)

#101 Post by ellisdee » Sun Feb 03, 2013 12:58 am

Hmm. I've gone as far as to
-remove all addons except d303 and ingamfuntions
-destroy hidden Runes of Magic folder in my docs
-Default all game settings
-Install fresh d303
-remove Model folder

Tomorrow I will blow this system away, and start completely from the ground up. Hopefully somewhere in that the issue is resolved for me, though it
wouldn't leave much in the way of pin pointing the initial error or flaw.

User avatar
ellisdee
Posts: 24
Joined: Mon Sep 26, 2011 3:03 pm

Re: Party Bot (questions/answers)

#102 Post by ellisdee » Sun Feb 03, 2013 1:04 am

Well thats what i get for not hitting refresh before i make a post

Rock5 you nailed it.
At the commandline try


Code:
print(memoryReadStringPtr(getProc(), addresses.partyLeader_address,0))
This returned my party leads name which is 16 characters long.

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

Re: Party Bot (questions/answers)

#103 Post by lisa » Sun Feb 03, 2013 1:13 am

I thought we added something to deal with names 16 characters, I guess we didn't do it for the partleadername function.

I do remember this being a pain in the butt a while ago and took ages to work out why some had issues.
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

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

Re: Party Bot (questions/answers)

#104 Post by lisa » Sun Feb 03, 2013 1:28 am

also once the party leader has had a name of 16 characters it stays using the address even if current leader has 4 characters.

testing this atm.

Code: Select all

function getPartyLeaderName()
	local name
	if memoryReadInt(getProc(), addresses.partyLeader_address + 4) == 0 then
		name = memoryReadStringPtr(getProc(), addresses.partyLeader_address,0)
	else	
		name = memoryReadString(getProc(), addresses.partyLeader_address)
	end
	if( bot.ClientLanguage == "RU" ) then
		name = utf82oem_russian(name)
	else
		name = utf8ToAscii_umlauts(name)
	end
	return name
end
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

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

Re: Party Bot (questions/answers)

#105 Post by rock5 » Sun Feb 03, 2013 3:45 am

Except how do you deal with names that are 4 characters long. Your code will assume it's an address.

Found, partyLeader_address + 0x14 changes from 0x0F to 0x1F if it has changed to an address.

Code: Select all

   if memoryReadInt(getProc(), addresses.partyLeader_address + 0x14) == 0x1F then
      name = memoryReadStringPtr(getProc(), addresses.partyLeader_address,0)
   else   
      name = memoryReadString(getProc(), addresses.partyLeader_address)
   end
Although I don't know what 0x1F means so it possible it could have other values. Maybe it's a half byte value.
  • 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

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

Re: Party Bot (questions/answers)

#106 Post by lisa » Sun Feb 03, 2013 4:17 am

you know this conversation is feeling like a serious deja vu, even down to the 0x1F and 0x0F.

We deffinately discussed this before.

was the same thing in partymembername function, we ended up using this

Code: Select all

	if memoryReadRepeat("byte", getProc(), memberAddress + 0x1C) == 31 then
		memberAddress = memoryReadRepeat("uint", getProc(), memberAddress + 8 )
		local name = memoryReadString(getProc(), memberAddress)
			if( bot.ClientLanguage == "RU" ) then
				name = utf82oem_russian(name);
			else
				name = utf8ToAscii_umlauts(name);   -- only convert umlauts
			end
		return name
	else
		local name = memoryReadString(getProc(), memberAddress + 8)
			if( bot.ClientLanguage == "RU" ) then
				name = utf82oem_russian(name);
			else
				name = utf8ToAscii_umlauts(name);   -- only convert umlauts
			end
		return name
	end
the 0x1C byte value. 31 is 0x1F
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

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

Re: Party Bot (questions/answers)

#107 Post by lisa » Sun Feb 03, 2013 4:26 am

so looking like this

Code: Select all

function getPartyLeaderName()
	local name
	if memoryReadByte(getProc(), addresses.partyLeader_address + 0x14) == 0x1F then
		name = memoryReadStringPtr(getProc(), addresses.partyLeader_address,0)
	else   
		name = memoryReadString(getProc(), addresses.partyLeader_address)
	end
	if( bot.ClientLanguage == "RU" ) then
		name = utf82oem_russian(name);
	else
		name = utf8ToAscii_umlauts(name);   -- only convert umlauts
	end  
	return name
end
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

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

Re: Party Bot (questions/answers)

#108 Post by rock5 » Sun Feb 03, 2013 6:32 am

Ok, copied to my version.
  • 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

User avatar
ellisdee
Posts: 24
Joined: Mon Sep 26, 2011 3:03 pm

Re: Party Bot (questions/answers)

#109 Post by ellisdee » Sun Feb 03, 2013 11:28 pm

Updated to 748

-Tests pass and return long character name normally.
-Party members mount/dismount with Partylead
-Partylead setting target (1) raid Icon on mobs
-party members attack and heal as they are designated to.

I seen an addition for names with Umlauts, I've been trying to reach another player
who has them in their character name. They described similar issues as me, Though I've not
been able to reach them today to suggest the update.

Thank you both very much! Fantastic work :ugeek:

Alleexx
Posts: 120
Joined: Sun May 15, 2011 4:28 am
Location: Sweden

Re: Party Bot (questions/answers)

#110 Post by Alleexx » Sun Feb 10, 2013 5:45 am

I'm pretty sure I've seen the answer to this somewhere but I can't find it anymore so I'm asking here. I want to do dod with a healer and a dps but I can't use the partyhealer script as it would just get stuck all the time and not work the way it should.
How do I make the healer heal my dps even if it's running a normal waypoint?

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

Re: Party Bot (questions/answers)

#111 Post by lisa » Sun Feb 10, 2013 6:12 am

Normal bot won't heal party members, so you would need to run it with partyhealer or maybe Rock's RBassist, which do similar things.

what do you mean get's stuck all the time?

If you mean it doesn't enter portals then check the third post this topic for your answer.
http://www.solarstrike.net/phpBB3/viewt ... 579#p44579
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Party Bot (questions/answers)

#112 Post by abron1 » Sun Feb 10, 2013 11:26 pm

i have the same problem with the portal it targets the portal then mm window says that is didn't find a portal then errors everything esle works fine

is there a command for the bot not to loot? because if you use it to help you heal in a instance even tho its on no follow it will run up and loot and argo mobs and try to fight back lol. its funny when it happens but then it dies and i have to make it run back.. so i guess what i am asking is can you make it so if its on no follow it won't loot until you set it to follow again?

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

Re: Party Bot (questions/answers)

#113 Post by lisa » Mon Feb 11, 2013 1:58 am

abron1 wrote:i have the same problem with the portal it targets the portal then mm window says that is didn't find a portal then errors everything esle works fine

is there a command for the bot not to loot? because if you use it to help you heal in a instance even tho its on no follow it will run up and loot and argo mobs and try to fight back lol. its funny when it happens but then it dies and i have to make it run back.. so i guess what i am asking is can you make it so if its on no follow it won't loot until you set it to follow again?
it loots according to profile options, so you just need to change the profile options for it.
Again post 3 of this topic
http://www.solarstrike.net/phpBB3/viewt ... 579#p44579

type this in party chat, then set it to true when you want it to loot again.

Code: Select all

code"changeProfileOption("LOOT", false)"
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Party Bot (questions/answers)

#114 Post by abron1 » Mon Feb 11, 2013 2:04 am

Code: Select all

code"GoThroughPortal()"
i use that code for the party bot to go though but it errors and because it says it can't find the portal.

next question: is there a way for the party bot to heal warden pets because for some reason mine won't heal the pet at all...

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

Re: Party Bot (questions/answers)

#115 Post by lisa » Mon Feb 11, 2013 3:23 am

abron1 wrote:but it errors and because it says it can't find the portal.
Have you got the latest version of rocks userfunction?
abron1 wrote:next question: is there a way for the party bot to heal warden pets because for some reason mine won't heal the pet at all...
Little more complicated to add in, at the moment it doesn't go through all objects around you to find who is in the party, it knows the names of party members and uses that. In order to heal warden pet's we would need to go through all objects which would put a bit more strain on the bot.

Or do you mean for wardens to heal their own pet's? because that wouldn't be part of partyhealer obviously as wardens arn't healers.
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Party Bot (questions/answers)

#116 Post by abron1 » Mon Feb 11, 2013 3:39 am

yeah i mean for the healer to target warden pet and heal it but its ok ill figure something out or just resummon. and i do have the latest version of rocks function but ill delete it and re download and see what happens

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

Re: Party Bot (questions/answers)

#117 Post by lisa » Mon Feb 11, 2013 3:53 am

have you got the elven prayer skill in your wardens profile?
If you have it in your wardens profile it will use it anytime your pet's HP is below 70%.
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

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

Re: Party Bot (questions/answers)

#118 Post by lisa » Mon Feb 11, 2013 4:12 am

ok there was a mistake in the party.lua, I used a ' when I shouldn't have.


Use this 1.
Attachments
party.lua
(15.67 KiB) Downloaded 118 times
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Party Bot (questions/answers)

#119 Post by abron1 » Mon Feb 11, 2013 6:02 am

ok i got your new version to late to test need to sleep before babies wake up

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

Re: Party Bot (questions/answers)

#120 Post by rock5 » Mon Feb 11, 2013 7:45 am

Lisa you didn't mention there were other changes in this file that needed to be committed so it got committed without them. The difference between this file and the committed one in 750 is just this bit of code

Code: Select all

	if mob.MaxHP > (player.MaxHP * settings.profile.options.AUTO_ELITE_FACTOR) then
		-- check if preCodeOnElite event is used in profile
		if( type(settings.profile.events.preCodeOnElite) == "function" ) then
			releaseKeys();
			_arg1 = mob
			local status,err = pcall(settings.profile.events.preCodeOnElite);
			if( status == false ) then
				local msg = sprintf(language[188], err);
				error(msg);
			end
		end
	end	
Sorry.
  • 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 41 guests