Giving away raidlead
Giving away raidlead
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?
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?
Re: Giving away raidlead
check if leader
http://runesofmagic.gamepedia.com/API:UnitIsRaidLeader
pass lead to someone else
http://runesofmagic.gamepedia.com/API:P ... artyLeader
http://runesofmagic.gamepedia.com/API:UnitIsRaidLeader
pass lead to someone else
http://runesofmagic.gamepedia.com/API:P ... artyLeader
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Giving away raidlead
Hmm
I have right now following code in the onloadsection.
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?
I have right now following code in the onloadsection.
Code: Select all
if RoMScript('UnitIsRaidLeader("player")') == true then
RoMScript('PromoteToPartyLeader("raid1")');
end;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?
Re: Giving away raidlead
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
Re: Giving away raidlead
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
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.
It just returns the name of the leader.
So there you go, some more hints
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)there is also a function for getting party/raid leaders name in the bot direct from memory.
Code: Select all
getPartyLeaderName()
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Giving away raidlead
@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.
And if we´re talking on avoiding gaps, an offline char is also a "gap" but GetPartyMember(number) will not give a nil
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;-
NoKangaroo
- Posts: 3
- Joined: Fri Jun 08, 2012 11:46 am
Re: Giving away raidlead
@amalia:
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
return
RoMScript('PromoteToPartyLeader("raid"..counter.."")')
end;
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
endRe: Giving away raidlead
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
Re: Giving away raidlead
I would probably just do something like this, untested.
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.
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
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Giving away raidlead
Yeah this works perfectly. And there is so much for me to learn...^^
thx
thx