Looting bot idea.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#21 Post by lalaxy » Tue Jul 05, 2011 9:20 pm

And sorry im a lil newbie at the forum, i search Code form to post next time :)

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

Re: Looting bot idea.

#22 Post by lisa » Tue Jul 05, 2011 9:23 pm

Had a look into the code for GetPartyMemberAddress and it uses findnearesatnameorid which we deffinately don't want in this case, I just assumed it got it from memory. Since the other party member has zoned elsewhere then using findnearesatnameorid won't find them.

I'll look into it and get back to you all with a working solution.
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

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#23 Post by lalaxy » Tue Jul 05, 2011 9:26 pm

It would be nice! Thy :)

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

Re: Looting bot idea.

#24 Post by lisa » Tue Jul 05, 2011 9:40 pm

Code: Select all

	<onLoad>	

while(true) do


repeat
player:update();
partyleader = GetPartyMemberAddress(1)
if partyleader ~= nil then partyleaderaddress = partyleader end
player:lootAll();
RoMScript("FollowUnit('party1');");
player:update();
until partyleader == nil

repeat
keyboardHold(settings.hotkeys.MOVE_FORWARD.key) 
yrest(1000);
keyboardRelease(settings.hotkeys.MOVE_FORWARD.key) 
waitForLoadingScreen(5)
until partyleaderaddress ~= nil

end

	</onLoad>
Nothing fancy but it works well, I tested going in and out of KS several times and it never errored and always walked through and then followed party1 again when it got outside.

I didn't test any looting though, since no one said loot didn't work I'll assume it does.
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

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#25 Post by lalaxy » Tue Jul 05, 2011 9:58 pm

As ive tested it works nicely...
Many many thx for help :)

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#26 Post by lalaxy » Tue Jul 05, 2011 10:30 pm

Another lil problem :)
If i want to farm an instance, i need to break party, and reparty for instance reset...
It means that loosing leader addresses and coords...
And after the reparty (at the same new party) leaderinfo will be other...Then playeraddress will be nil again....and not changing...and assist char going to the whole world :)
Mybe i need to restart macro at every reparty, or can be easier solution ? :)

thy :)

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

Re: Looting bot idea.

#27 Post by lisa » Wed Jul 06, 2011 12:00 am

depends on how you do the party invites and accepts, also how you leave the instance. Do you exit via portal or do you leaveparty which teleports you outside to the resurection point?
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

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#28 Post by lalaxy » Wed Jul 06, 2011 2:31 am

Autoaccept party via groupinvite addon , and ported out from instance's entrance via portal, not to the ressurrection point (Its too far)... and there leave party till now, but if possible any command to kick members would be better for not 1 assist char....Mybe 2,3 :)

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

Re: Looting bot idea.

#29 Post by lisa » Wed Jul 06, 2011 4:27 am

kicking party members isn't hard aslong as you are party leader.

Code: Select all

local partyNames={}
for i = 1, 5 do
if GetPartyMemberName(i) then
table.insert(partyNames,i + 1, GetPartyMemberName(i))
end
for k,v in pairs(partyNames) do
RoMScript('KickGroupMember("..v..")')
end
If you are going to be using more then 2 followers then I suguest doing it properly using party bot and coding it accordingly. It would mean using icons as indicators for certain tasks like leaving instances and waiting for invites.

Couple of topics already about such things. I think kanta had the last topic but I don't think his issue was resolved, from memory it was the same issue you had here because of the function using the findnearestnameorid. since we know that now it can be easily fixed =)

Do a search and have a read.
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

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#30 Post by lalaxy » Wed Jul 06, 2011 7:10 am

Ty for solving kick problem, its clear now to me.
I can do it i think with only 1 romscript in the leader's waypoint (kicking 1by1 by name), cause he has full static orders, nothing automatication...He has following orders step by step, he has an owersecured "screenplay" :)
But i never programmed "partybot" u speak about...i can handle only the following chars one by one macro. What U helped me, its working fine until the party breaking, cause then it lost the addresses and coords, and have a new one. Thats why i need to restart bot in a new party again, and then works fine...at actual round inm actual party.
So now the partyaccpeting solved (but im not sure that autoinvite addon is the best for more ppl) , cannot be another solution at the followers's waypoint file to waiting the leaders partyinvite ? and resetting the addresses and counters? Then could be the followers macro going continously (im not so competent, only an idea :) )
But this new party ideas are not clear to me...ive read many topics here about this things, but its not clear so much :) Im nub :)
If U have any closer idea or code to me about this problem, ill be happy :)
If U think, and it could help i can attach the main codes and the full folowers codes to U.

Many thx again

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#31 Post by lalaxy » Thu Jul 21, 2011 9:34 am

Any news about my "following" problem ? :)

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

Re: Looting bot idea.

#32 Post by lisa » Thu Jul 21, 2011 10:39 am

I'll do some more work on party botting next week, busy this weekend.

I'll try to set it up so it's easy to use and understand. When I added in party bot functionality into bot a while back it was just the foundation work so people could implement their own ideas and I hoped it would evolve from there. In the end I'll probably just end up doing it myself 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

lalaxy
Posts: 46
Joined: Sun Jul 03, 2011 8:21 pm

Re: Looting bot idea.

#33 Post by lalaxy » Tue Aug 02, 2011 3:25 pm

Any success about partybot till last post ? :)
Or any other idea to this follow solution ? :)

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

Re: Looting bot idea.

#34 Post by lisa » Tue Aug 02, 2011 8:20 pm

Sorry had lots on my plate, including fixinf an issue which basically made it imposible for me to test some code. I atleast sorted that out now.

Of course there was the patch that came out and lots of real life stuff, it is still on my to do list, amongst other things =)
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: Bing [Bot] and 2 guests