Allmost foolproof KS run

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Allmost foolproof KS run

#181 Post by lisa » Mon Aug 01, 2011 3:16 am

Use the skill name you use in your 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

wilifox
Posts: 86
Joined: Tue Jul 26, 2011 6:00 pm

Re: Allmost foolproof KS run

#182 Post by wilifox » Mon Aug 01, 2011 6:34 am

profile in My documents/Runes of magic/profile_name

or

in C:\micromacro\script\rom\profiles\profile_name?

Thx very much

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Allmost foolproof KS run

#183 Post by mschmitd » Thu Aug 04, 2011 9:30 am

@Lisa

No i have remove this part of Code

Code: Select all

if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);
		end
	end
	if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
	end
Mike

wilifox
Posts: 86
Joined: Tue Jul 26, 2011 6:00 pm

Re: Allmost foolproof KS run

#184 Post by wilifox » Tue Aug 09, 2011 2:38 am

Thx very much Ms ;)

zarossa
Posts: 26
Joined: Fri Dec 10, 2010 6:34 am

Re: Allmost foolproof KS run

#185 Post by zarossa » Fri Aug 12, 2011 2:03 am

Is there any script on alt to accept the party requst from my main character?

mschmitd
Posts: 43
Joined: Sat Jun 25, 2011 2:33 pm

Re: Allmost foolproof KS run

#186 Post by mschmitd » Fri Aug 12, 2011 6:59 am

I use the AddOn GroupInvite v2.06

This works perfect for me you only need to

change the parameter Accept Invite by Friend

and Set your Char in your Friend-List and its work

Mike



sry for my bad English

zarossa
Posts: 26
Joined: Fri Dec 10, 2010 6:34 am

Re: Allmost foolproof KS run

#187 Post by zarossa » Sat Aug 13, 2011 2:00 am

Thanks a lot, I'm going to test it soon, but first I want to ask about skills which I should use on mage? Which ones would be the best? Maybe someone can just paste here those lines with skills he is using from character settings? Which profession is the best on this script?

Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Allmost foolproof KS run

#188 Post by Germangold » Sat Aug 13, 2011 3:18 am

i use mage/priest and mage/druids

pro's
aoe skill MAGE_PURGATORY_FIRE
power full MAGE_FLAME
self heal with URGENTHEAL/REGENERATE/RECOVER

cons
expensive items needed
at least T8 lvl60 staff
18k life/mana needed

User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Allmost foolproof KS run

#189 Post by botje » Wed Aug 17, 2011 8:58 am

Code: Select all

if player:openStore("Pancer") then -- opens the store, then continues if it opened.
     for i, item in pairs(inventory.BagSlot) do
         if (item.Worth > 222) then
             item:use() -- sells it to the store
         end
     end
end
would it not be possible to change this function to delete items from bag that are worth less then 1000?

is there a call to delete items?

Botje

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

Re: Allmost foolproof KS run

#190 Post by rock5 » Wed Aug 17, 2011 9:18 am

Yes "item:delete()". You might have to take care not to delete items that have no value but you want to keep, such as quest items or moster cards.
  • 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
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Allmost foolproof KS run

#191 Post by botje » Wed Aug 17, 2011 10:20 am

and where can i find what info item stores?

so i maybe can check for other things too before i delete them?

Botje

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

Re: Allmost foolproof KS run

#192 Post by rock5 » Wed Aug 17, 2011 10:42 am

If you look at the top of the file "item.lua" you will see the where the CItem class is initialized. You can see whats stored there.

To see what 'type' the item is you can use.

Code: Select all

if (item:isType("weapons") or item:isType("armor")) and 1000 > item.Worth then
    item:delete()
end
  • 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
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Allmost foolproof KS run

#193 Post by botje » Wed Aug 17, 2011 11:35 am

Code: Select all

function CleanBag()
	for i, item in pairs(inventory.BagSlot) do
		if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT and
			settings.profile.options.INV_AUTOSELL_TOSLOT >= item.SlotNumber then
			if (item:isType("weapons") or item:isType("armor")) and 1000 > item.Worth then
				printf("Deleting Item:  "..item.Name.."\n");
				item:delete()
			end
		end
	end
end
i cant wrap my head around the item quality colors, would

Code: Select all

 item.Quality < PURPLE 
work?

Botje

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Allmost foolproof KS run

#194 Post by Administrator » Wed Aug 17, 2011 12:38 pm

botje wrote:
i cant wrap my head around the item quality colors, would

Code: Select all

 item.Quality < PURPLE 
work?

Botje
I don't think so. If I remember correctly, the quality colors are RGB (or maybe RGBA?), and do not follow an order of 1,2,3..., so you will have to check each each one. Or you could just check if it is not orange.

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

Re: Allmost foolproof KS run

#195 Post by rock5 » Thu Aug 18, 2011 12:42 am

Items have 2 quality values. One is item.Quality that holds a number that represents a color as stated in the item class initialisation.

Code: Select all

-- 0 = white / 1 = green / 2 = blue / 3 = purple / 4 = orange / 5 = gold
Items also have item.Color which match the PURPLE format.

It might be easiest to say

Code: Select all

if item.Quality < 3 then
  • 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

zarossa
Posts: 26
Joined: Fri Dec 10, 2010 6:34 am

Re: Allmost foolproof KS run

#196 Post by zarossa » Wed Aug 31, 2011 5:15 am

Some questions:


1. Why it's not selling items? I got on 1 round maybe 3-4 full backpacks and he is not selling it. Where should I set it?
2. Is he will use lucky potion from my housemaid?
3. Is it possible to set only FLAME on bosses?

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

Re: Allmost foolproof KS run

#197 Post by rock5 » Wed Aug 31, 2011 6:08 am

1. Will depend on your autosell options in your profile.
2. The description on the first post says it will.
3. This is a bit more tricky and would involve either changing all your other skills to "autouse=false" and then back again after the fight, or using your own attack sequence that only uses that skill. Maybe someone else can think of an easier way to do it. I'm sure this has come up before.
  • 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

zarossa
Posts: 26
Joined: Fri Dec 10, 2010 6:34 am

Re: Allmost foolproof KS run

#198 Post by zarossa » Wed Aug 31, 2011 6:18 am

I uploaded my profile. I don't see there any autosell thing. May you just add this function there?

Which is the best and faster way to sell items? I got sellmode addon which was mentioned in this topic. I know how it working but I don't know how while botting. What I have to do? I'm kinda noobie in this so please give me real examples, because this is the best method to learn for me. Moreover you can explain it step by step if you got so much time.




I found something like this:

player:openStore("Pancer")
RoMScript("Sellslots1()")
RoMScript("Sellslots2()")
RoMScript("Sellslots3()")
RoMScript("Sellslots4()")

Where should I add it? What I need more to let it play?
Attachments
xyz.xml
(5.82 KiB) Downloaded 187 times

zarossa
Posts: 26
Joined: Fri Dec 10, 2010 6:34 am

Re: Allmost foolproof KS run

#199 Post by zarossa » Thu Sep 01, 2011 2:56 pm

Is it so hard to help? :roll:,

I added this selling options from deflaut profile, but I want to know where should I add this

if player:openStore("Pancer") then -- opens the store, then continues if it

opened.
for i, item in pairs(inventory.BagSlot) do
if (item.Worth > 222) then
item:use() -- sells it to the store
end
end
end


Or what should I do?

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

Re: Allmost foolproof KS run

#200 Post by lisa » Thu Sep 01, 2011 8:54 pm

zarossa wrote:Is it so hard to help? :roll:,
Update to latest version of bot and look in the default profile, it has the autosell options in it.

There is no need to do anything else, no need for other addons, no need to rewrite code for you, you just need to use the options provided.

zarossa wrote:I added this selling options from deflaut profile, but I want to know where should I add this

if player:openStore("Pancer") then -- opens the store, then continues if it
The WP file that is on this topic has the sell option to merchant already, if you have the profile options added correctly then you don't need to do anything else.
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: No registered users and 9 guests