Invite guild member to party
Invite guild member to party
seeying all my alts are in my guild, a botguild xd, would i be able to see which one is online and invite it to party automaticly?
that way i dont have to have a whole list of invite to party lines with all my alt names, but just invite the one online in my guild.
that way i dont have to have a whole list of invite to party lines with all my alt names, but just invite the one online in my guild.
Re: Invite guild member to party
http://www.theromwiki.com/API:GetGuildRosterInfo
This bit is what you want to know
IsOnLine
I am sure you can work out how to use it 
This bit is what you want to know
IsOnLine
Code: Select all
local name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine, LogOutTime, Zone, Note = GetGuildRosterInfo(i);
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: Invite guild member to party
what about this?
this is as far as i get, but now it tries to invite myself xd
Code: Select all
function JoinParty(YourName)
local name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine, LogOutTime, Zone, Note = RoMScript("GetGuildRosterInfo(1)");
local count = 1
while IsOnLine == false and rank == 10 do
IsOnLine = RoMScript("GetGuildRosterInfo(count)");
count = count + 1
end
printf("Debug: "..name.." \n");
printf("Debug: "..IsOnLine.." \n");
printf("Debug: "..rank.." \n");
sendMacro('InviteByName('..name..')');
endRe: Invite guild member to party
Code: Select all
IsOnLine = RoMScript("GetGuildRosterInfo(count)");Code: Select all
name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine= RoMScript("GetGuildRosterInfo(1)");- 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: Invite guild member to party
oh, so the 1 in that example stands for first value? i thought it was the index from the list.
or i need to make that whole line with it?
or i need to make that whole line with it?
Re: Invite guild member to party
Sorry, should be
And yes, 'count' is the index in the list of guildies.
Code: Select all
name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine= RoMScript("GetGuildRosterInfo("..count..")");- 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: Invite guild member to party
k cool, ill try again then ^^
Re: Invite guild member to party
got it ^^
Code: Select all
function JoinParty()
local name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine, LogOutTime, Zone, Note = RoMScript("GetGuildRosterInfo(1)");
local count = 1
while IsOnLine == false or rank == 10 do
name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine= RoMScript("GetGuildRosterInfo("..count..")");
count = count + 1
end
--printf("Debug: "..count.." \n");
--printf("Debug: "..name.." \n");
--printf("Debug: "..rank.." \n");
sendMacro('InviteByName("'..name..'")');
endRe: Invite guild member to party
It will work but the 'count' will be off by one for all except the first member. Instead of getting the info first then doing a 'while' loop you could have just used a 'repeat' loop.
Code: Select all
count = 0
repeat
count = count + 1
name, rank, class, level, subClass, subLevel, isHeader, isCollapsed, dbid, guildTitle, IsOnLine= RoMScript("GetGuildRosterInfo("..count..")");
until IsOnLine == true and rank ~= 10- 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