Giving away raidlead

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
amalia
Posts: 38
Joined: Wed Jul 10, 2013 7:37 am

Giving away raidlead

#1 Post by amalia »

Hey
If you´re botting in public raids such as butterflyraid, you could accidently get raid lead if the former raid lead leaves group wothout setting a new one.
In this case people ask you lot more to invite this or do that or kick offline chars, as if you would not be raid lead. And of course I do not answer them.

Can I check my status of raidlead and randomly pass the raid lead away from me?

This prevents me from beeing detected and does not annoy normal players. Beeing not in public raid makes you also suspect or at least they offend you to participate the raid. Of course this can cause trouble if you´re in a bot-only-group and nobody wants to have lead - but anyway. Somebody an idea?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Giving away raidlead

#2 Post by lisa »

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
amalia
Posts: 38
Joined: Wed Jul 10, 2013 7:37 am

Re: Giving away raidlead

#3 Post by amalia »

Hmm

I have right now following code in the onloadsection.

Code: Select all

if RoMScript('UnitIsRaidLeader("player")') == true then 
		RoMScript('PromoteToPartyLeader("raid1")');
	end;
This is giving away party and raidlead, but stops the script immediately.
Errormessage: ../waypntlist.lua:203 attempt to compare string with number
I just took the code from searching for your hinted API-functions.
I have no idea why to use RoMScript.

Of course it should be part of a function but first I should get rid od breaking the script.

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

Re: Giving away raidlead

#4 Post by rock5 »

Line 203 of waypointlist.lua has to do with WAYPOINT_DEVIATION. You didn't, by any chance, set it to a string 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: Giving away raidlead

#5 Post by lisa »

just keep in mind there may not be a raid1 when you get leader as there are gaps when people leave raids, so maybe do a check for if there is someone in that spot first, also you could actually be in that first spot.

Now you have the RoMScript's working, the bot's party functions also work for raids ;)

You can just check the names of party members direct from memory with

Code: Select all

GetPartyMemberName(Number)
Number is obviously the position they are in the raid/party, so 1 for first spot, it will return either nil if nothing in the spot or the character's name.


there is also a function for getting party/raid leaders name in the bot direct from memory.

Code: Select all

getPartyLeaderName()
It just returns the name of the leader.

So there you go, some more hints ;)
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
amalia
Posts: 38
Joined: Wed Jul 10, 2013 7:37 am

Re: Giving away raidlead

#6 Post by amalia »

@Rock You´re the man. I messed with the test-chars profile. Blame on me.

Lisa I tried to avoid the gaps in the raid, but I cannot figure out how to deal with the rom API on the one hand and a bot function on the other.
Of course the RoMScript('PromoteToPartyLeader("raid"..counter.."")') below doesn´t work but I canot figure out how to do it right.

Code: Select all

function PassLead()
	if RoMScript('UnitIsRaidLeader("player")') == true then 
		local counter = 1
		while GetPartyMember(counter) == nil do --count till there is somebody except yourself
			counter = counter +1			
			if counter == 37 then break end; --just to stop if you´re the only one
		return
		RoMScript('PromoteToPartyLeader("raid"..counter.."")') 
	end;
end;
And if we´re talking on avoiding gaps, an offline char is also a "gap" but GetPartyMember(number) will not give a nil
NoKangaroo
Posts: 3
Joined: Fri Jun 08, 2012 11:46 am

Re: Giving away raidlead

#7 Post by NoKangaroo »

@amalia:

Code: Select all

function PassLead()
	if RoMScript('UnitIsRaidLeader("player")') == true then 
		local counter = 1
		while GetPartyMember(counter) == nil do --count till there is somebody except yourself
			counter = counter +1			
			if counter == 37 then break end; --just to stop if you´re the only one
		return
		RoMScript('PromoteToPartyLeader("raid"..counter.."")') 
	end;
end;
I think "return" should be replaced with "end":

Code: Select all

function PassLead()
	if RoMScript('UnitIsRaidLeader("player")') == true then 
		local counter = 1
		while GetPartyMember(counter) == nil do --count till there is somebody except yourself
			counter = counter +1			
			if counter == 37 then break end --just to stop if you´re the only one
		end
		RoMScript('PromoteToPartyLeader("raid"..counter.."")') 
	end
end
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Giving away raidlead

#8 Post by rock5 »

Also it should be

Code: Select all

RoMScript('PromoteToPartyLeader("raid'..counter..'")')
  • 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: Giving away raidlead

#9 Post by lisa »

I would probably just do something like this, untested.

Code: Select all

function PassLead()
	if getPartyLeaderName() == player.Name then
		for i = 1,37 do
			local currname = GetPartyMemberName(i)
			if currname ~= nil and currname ~= player.Name then
				RoMScript('PromoteToPartyLeader("raid'..i..'")')
				yrest(1000)
				if getPartyLeaderName() ~= player.Name then
					return
				end
			end
		end
		if getPartyLeaderName() == player.Name then
			--it's just you in raid, what do you want to do?
		end
	end
end
checks if your party leader, if you are then it looks for spots with character names and tries to make them lead, as soon as it succeeds in passing lead it stops.
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
amalia
Posts: 38
Joined: Wed Jul 10, 2013 7:37 am

Re: Giving away raidlead

#10 Post by amalia »

Yeah this works perfectly. And there is so much for me to learn...^^

thx
Post Reply