Ks bot

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Ks bot

#21 Post by lisa » Thu May 01, 2014 5:00 pm

I did post a ksfrogsloot waypoint in that topic, which loots instead of needing pet perfume.
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#22 Post by Littlejacky » Thu May 01, 2014 7:06 pm

lisa, I can't find that ksfrogsloot, which you are talking about? I looked through this topic + the one you made, and I can't find it /:

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

Re: Ks bot

#23 Post by rock5 » Thu May 01, 2014 8:55 pm

noobbotter wrote:Also, I would check the profile option and set loot distance to maybe 180. Might have to play around with that to make sure it loots everything properly.
Typically you would set the loot distance to a value a bit more than the COMBAT_DISTANCE or the longest range skill to make sure it loots everything it attacks. With Thunderstorm, though, you need to also take into account the AOE range which I believe is 65. So loot distance should be set to a little more than 180+65 which is 245. I would probably set it to 250.
  • 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: Ks bot

#24 Post by lisa » Fri May 02, 2014 1:01 am

Littlejacky wrote:lisa, I can't find that ksfrogsloot, which you are talking about? I looked through this topic + the one you made, and I can't find it /:
yeah seems I got mixed up I posted a ksmagmaloot which is a version of ksmagma that looted instead of using pet perfume.

Hmm well KSfrogs has a function in it to loot if the pet is a bit slow at looting, could change that to loot it all instead of looting all but 3.

give this a test and see how it goes.
ksfrogsloot.xml
(6.54 KiB) Downloaded 303 times
If you haven't got it already you will need the teleport userfunction.

Basically any time you get an error saying.
attempt to call global 'setwindow' (a n il value)
if you do a forum search for what is in between the ' ' you will more than likely find a userfunction for it =)
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#25 Post by Littlejacky » Fri May 02, 2014 3:05 am

I just sticked with the ksfrogs waypoints, and I changed a bit of the looting settings in it. Now my bot is looting, but when it hits like 59/60 items (I only use 2 bags, because I'm just learning/testing atm) and the monster got like 4 items, the bot just hang in the window for 2-3 sec, and loot the 1 item, maybe the item gets dropped (maybe some arrows), and then I'm at 59/60 again, then it don't loot the same monster or from that cluster, it just runs to next cluster of mobs, and when I'm lucky and it's an item I can use, I get 60/60 - but the bot keeps killing and looting even though the bags are completely full, it first leave party and go sell when anything is killed. Is there a way that I can do this better?

Then I also added some potions to my profile;

if not player:hasBuff(506684) then -- Unbridled Enthusiasm
inventory:useItem(207200)
end
if not player:hasBuff(506687) then -- housemaid luck
inventory:useItem(207203)
end

Housemaid luck buff activates after like 1-60 secs, but I can't make the bot activate the buff Unbridled Enthusiasm, do I have the wrong ID?

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

Re: Ks bot

#26 Post by lisa » Fri May 02, 2014 5:48 am

Littlejacky wrote:Is there a way that I can do this better?
Ummm yeah do what I suguested in that topic. Get all 6 bags, get pet perfume =)


That code looks fine, do you have it in the onleavecombat section of profile.
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#27 Post by Littlejacky » Fri May 02, 2014 5:57 am

But can't it not be done without all bags, because I said I'm going to test this atm. So I could be cool if I could do normally loot + 2 bags?

Looks like this;

<onLeaveCombat><![CDATA[
if not player:hasBuff(503479) then -- pet perfume 30 days
inventory:useItem(204514) -- 30 day
--inventory:useItem(207582) --1 day
end
if not player:hasBuff(506684) then -- Unbridled Enthusiasm
inventory:useItem(207200)
end
if not player:hasBuff(506687) then -- housemaid luck
inventory:useItem(207203)
end

]]></onLeaveCombat>

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

Re: Ks bot

#28 Post by lisa » Fri May 02, 2014 6:16 am

Littlejacky wrote:But can't it not be done without all bags, because I said I'm going to test this atm. So I could be cool if I could do normally loot + 2 bags?
yeah you should be able to, you won't get much gold/hour though and the waypoints I posted were optimized for 6 bags and pet perfume. So can't say it will work for sure with 2 bags and no pet perfume.

first glance the code looks fine.
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#29 Post by Littlejacky » Fri May 02, 2014 6:37 am

Isn't there anything in profile or ksfrogs waypoint I can change; so it 1st don't hang in loot window, and 2nd just leave party when it hits 60/60, I know it is not leaving because the bot still thinks I have a pet and the extra 20 spaces, or how much it is. How to totally switch this off?

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

Re: Ks bot

#30 Post by lisa » Fri May 02, 2014 7:13 am

Ok I removed all the stuff that might inhibit you in using 2 bags and no pet.

Keep in mind if you have a loot addon like lootomatic it will mess things up.
ksfrogsloot.xml
(5.47 KiB) Downloaded 361 times
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#31 Post by Littlejacky » Fri May 02, 2014 7:17 am

Thanks, I will look at it while I'm home again. I have used lootomatic, why shall I turn it off? What can it mess up?

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

Re: Ks bot

#32 Post by lisa » Fri May 02, 2014 7:26 am

Littlejacky wrote:Thanks, I will look at it while I'm home again. I have used lootomatic, why shall I turn it off? What can it mess up?
What you saw before of the bot trying to loot and the loot not going to bags and just being left behind is because of addons like that. This WP is specifically designed to throw away rubish loot, so you shouldn't need an addon to mess with what the bot is trying to do.

Code: Select all

				if item:isType("Runes") or item:isType("Monster Cards") then 
					item:delete()
				end
				if ( item:isType("Weapons") or item:isType("Armor") ) and (400 > item.Worth and 3 > item.Quality) then
					item:delete()
				end
				if item:isType("Production Runes") then
					item:delete()
				end
				if item:isType("Potions") and (45 > item.RequiredLvl and item.RequiredLvl > 10) then
					item:delete()
				end	
So it gets rid of low lvl potions, production runes, armor/weapons of low value and monster cards.

I run 3 bots 23/7 in KS, average 3Mil/hour each char, 1 hour a day for things like getting house maid luck pots and buying honor scrolls and what not, roughly 200Mil gold per day. I could do more if I really wanted but I don't need that much gold really, at current prices that is around 1200 dias a day. I don't normally run them 7 days straight though, usually just 3 days then have a couple days off.
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#33 Post by Littlejacky » Fri May 02, 2014 7:50 am

Shall I just disable lootomatic or shall I completely uninstall it ?? ;-)

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

Re: Ks bot

#34 Post by lisa » Fri May 02, 2014 7:54 am

Littlejacky wrote:Shall I just disable lootomatic or shall I completely uninstall it ?? ;-)
I personally don't use the addon but I seem to recall Rock using it, just personal choice really.
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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#35 Post by Littlejacky » Fri May 02, 2014 9:55 am

Why does the Bot open the shop a Pancer two times, when all is sold first time?

And isn't it possible to let the bot leave the instance for selling items at a certain amount of items, maybe 59/60 or 60/60, does it have to killed all mobs before leaving at 60/60?

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#36 Post by Littlejacky » Tue May 06, 2014 1:46 pm

Anyone know?

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

Re: Ks bot

#37 Post by lisa » Tue May 06, 2014 6:34 pm

Littlejacky wrote:y does the Bot open the shop a Pancer two times
Because the code in the WP tells it to, when all your bags are full it expects you to have more (from pet looting) and so it waits for a couple seconds and then opens merchant again.

Personally I am more of a teach people to fish kind of person, I have posted a working WP that suited your requirements but now it is time for you to learn how to fish and make the small adjustments you want because you will keep thinking of small adjustments and there will be more and more adjustments you want, so it is best if you learn to do them yourself =)

Get yourself Notepad++ and have a play around with it, if you mess up and it no longer works then just redownload the one I posted and try again ;)
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

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

Re: Ks bot

#38 Post by rock5 » Tue May 06, 2014 8:00 pm

You can use ItemQueueCount() to tell you how many items are in the incoming queue. If there are any, then sell twice, otherwise sell once.
  • 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

Littlejacky
Posts: 37
Joined: Mon Apr 28, 2014 2:41 pm

Re: Ks bot

#39 Post by Littlejacky » Wed May 07, 2014 10:02 am

I tried to change

function bagcheck()
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end

into

function bagcheck()
if inventory:itemTotalCount(59) == 0 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
yrest(3000)
player:update();
changeProfileOption("LOOT", false)
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end

But then the bot just leave the instance, if bag is 37/60 or something like that..

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

Re: Ks bot

#40 Post by rock5 » Wed May 07, 2014 12:10 pm

The number in the brackets is the id or name of the item you wish to count, in this case empty slots which have an id of 0. Try

Code: Select all

if inventory:itemTotalCount(0) >= 59 then
>= mean "more than or equals to". You don't want to use "equals to 59" because what happens if between checks it jumps to 60 and stays at 60?
  • 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest