Invite by Name function?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Tamyra
Posts: 133
Joined: Tue Feb 01, 2011 6:09 pm

Invite by Name function?

#1 Post by Tamyra » Sat Jul 14, 2012 7:38 pm

Is there a function that will allow the bot to invite it's party members by name? Example being:

Account one is repeating an instance over and over again for the character's in account 2.
Account 2 is doing the "login next character true" function after one run is complete, just as a tag-along to the first account.

I want the first account to be able to invite the players in the second account in sequence, or as they log on, and only enter the instance after there is a verified party. They will be running 2 different versions of the same instance with a different set of instructions for each of the 2 waypoints. Is there anything like this built, or a function I can play/test with? Maybe only inviting members of a pre-determined "friend list" from the onload and checking the list one at a time to see if any of those players are online and then inviting only the one that is?

CNKTHoward
Posts: 32
Joined: Thu Jul 12, 2012 8:31 am

Re: Invite by Name function?

#2 Post by CNKTHoward » Sat Jul 14, 2012 7:44 pm

This will invite your character:

Code: Select all

RoMScript("InviteByName('charactername');");
I use the addon Auto Accept Invitations for the char to accept the party.

This gets the number of partymembers:

Code: Select all

RoMScript("GetNumPartyMembers()")
If you know how many members you'll have, f.e. you are going to have a 4 man party, you can check if the group is complete with:

Code: Select all

local groupnumber = RoMScript("GetNumPartyMembers()")
if groupnumber == 4 then
   return true
else
You can create a table with all the names, create a for loop and invite all the players in the table.
Last edited by CNKTHoward on Sat Jul 14, 2012 8:08 pm, edited 1 time in total.

Tamyra
Posts: 133
Joined: Tue Feb 01, 2011 6:09 pm

Re: Invite by Name function?

#3 Post by Tamyra » Sat Jul 14, 2012 8:02 pm

Hmmm, my auto accept does not always turn itself on when I load a new character....maybe if I have the tag-along do the inviting so that I can keep auto accept running. That way I do not have to make a table, only invite the one that's repeating the run. Thanks for the info!!

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

Re: Invite by Name function?

#4 Post by lisa » Sat Jul 14, 2012 8:56 pm

I like the invite last group addon, So I never have to specify any names in code.

I just make the party manually and then start up the bot, in the WP code I use the ILG commands to disband party and reinvite party.
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

Tamyra
Posts: 133
Joined: Tue Feb 01, 2011 6:09 pm

Re: Invite by Name function?

#5 Post by Tamyra » Sat Jul 14, 2012 9:55 pm

Yeah that would work if I was using the last group for this, but only one member will be the same, others will be different each run.

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

Re: Invite by Name function?

#6 Post by lisa » Sat Jul 14, 2012 10:32 pm

Tamyra wrote:others will be different each run.
Then yeah a table is probably easiest way to go.

Unless you use your friend list for it and only have chars you want to use with the WP in the friends list.

Code: Select all

local count = RoMScript('GetFriendCount("Friend")')
yrest(500)
for i = 1,count do
local name, groupID, online  = RoMScript('GetFriendInfo("Friend", '..i..')')
yrest(500)
if online == true then
RoMScript('InviteByName("'..name..'")');
yrest(500)
end
end
Untested, might work lol
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

Post Reply

Who is online

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