Page 20 of 22

Re: Allmost foolproof KS run

Posted: Sun May 27, 2012 11:40 am
by bruenor9
What would the code be for that command?

Re: Allmost foolproof KS run

Posted: Sun May 27, 2012 6:51 pm
by lisa
You will find this in your profile, change it to suit.

Code: Select all

		<!-- Eggpet options -->
		<option name="EGGPET_ENABLE_CRAFT"	value="false" />		<!-- If using same slot for assist and craft, onlt 1 can be enabled. -->
		<option name="EGGPET_CRAFT_SLOT"	value="1" />
		<option name="EGGPET_ENABLE_ASSIST"	value="false" />
		<option name="EGGPET_ASSIST_SLOT"	value="1" />
		<option name="EGGPET_CRAFT_RATIO"	value="1:1:1" /> 		<!-- mining:woodworking:herbalism ratio to produce. -->
		<option name="EGGPET_CRAFT_INDEXES"	value="" /> 	 		<!-- override auto craft index for mining,woodworking,herbalism eg. "2,,"-->



Re: Allmost foolproof KS run

Posted: Mon May 28, 2012 5:22 pm
by bruenor9
pet summoning is working still no magic perfume working

Code: Select all

	]]></onDeath>

	<onLeaveCombat><![CDATA[
		if not player:hasBuff(503479) then -- pet perfume 30 days
      inventory:useItem(204514)
   end   
	]]></onLeaveCombat>

	<onLevelup><![CDATA[
		-- Additional Lua code to execute after having a levelup
		-- and levelup the skills for a new character (mage or priest recommended)
		-- e.g. sendMacro("SetSpellPoint(_tabnr, _skillnr);"); would levelup a skill
	]]></onLevelup>
That is how I have it?

Also sometimes during swimhack it gets caught on the first boss

Re: Allmost foolproof KS run

Posted: Fri Jun 08, 2012 10:08 am
by Suscurtl
Hello,
i have some Questions about the Script.
1. What do you think, which Values do I need to make a full run in KS? Or what Values do I need till Adept? (lp, patk)
2. How many Gold per hour do you get with that script? Before I was farming KS without a bot and I got 1kk per hour.
What is possible with that bot and lucky pot?
Thank you

Re: Allmost foolproof KS run

Posted: Sun Jun 10, 2012 12:54 pm
by CrazyGuy
Quick question, id like to kill Regin, but i cant figure out how to get the "Great Door of the Inner Hall" to open. Any ideas on how I can click on it? I figure i can target it with player:target_NPC but not sure how to go about clicking on it. Suggestions would be greatly appreciated.

CG

Re: Allmost foolproof KS run

Posted: Sun Jun 10, 2012 2:25 pm
by BillDoorNZ
hmmm...fly over the doors - the wall above the doors is not really there (thx to Rock for pointing that one out!)

Re: Allmost foolproof KS run

Posted: Mon Jun 11, 2012 1:58 pm
by rafalatko
lisa wrote:
savvoulis_21 wrote:i have a problem with the waypoint!! when it finishes the run and go to sell the items, it doesnt sell them instead it buys items! plz help me!
You need to set up your profile to sell items

Code: Select all

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="true" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="15" /> 			<!-- 1 = bag 1 slot 1 -->
		<option name="INV_AUTOSELL_TOSLOT"	value="180" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_QUALITY"	value="white,green,blue" /> 	<!-- white,green,blue,purple  -->





I,ve done it, but still doesn't sell the purple items from ks, I've try to change the profile and nothink happened. Please give me a hand

Re: Allmost foolproof KS run

Posted: Mon Jun 11, 2012 2:48 pm
by BillDoorNZ
if you need help with your profile etc, you'll need to post them so we can see how you have them configured. Just make sure you remove any names etc :)

Re: Allmost foolproof KS run

Posted: Mon Jun 11, 2012 10:55 pm
by rafalatko
Here is my profile. Everything works, running full instances , daily quest etc The only one thing not working Ican't sell purple items (bosses drop)

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<profile>
	<options>
		<!-- Try the bot with a new char mage                   -->
		<!-- At the pioneer village. Use demo.xml waypoint file -->
		<option name="HP_LOW"			value="85" />
		<option name="MP_LOW_POTION"	value="50" />
		<option name="HP_LOW_POTION"	value="40" />
		<option name="USE_HP_POTION"	value="best" />	<!-- potion select strategy: best|minstack -->
		<option name="USE_MANA_POTION"	value="best" />	<!-- potion select strategy: best|minstack -->

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" value="15" />
		<option name="MP_REST" value="15" />

		<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="HEALING_POTION" value="0" />
		<option name="MANA_POTION" value="0" />
		<option name="ARROW_QUIVER" value="0" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
		<option name="INV_MAX_SLOTS" value="180" />
		<option name="INV_AUTOSELL_ENABLE" value="true" />
		<option name="INV_AUTOSELL_FROMSLOT" value="1" />
		<option name="INV_AUTOSELL_TOSLOT" value="180" />
		<option name="INV_AUTOSELL_QUALITY" value="white, green, blue, purple" />
		<option name="INV_AUTOSELL_NOSELL_STATSNUMBER" value="5" />

		<!-- either false or arrow or thrown -->
		<option name="RELOAD_AMMUNITION" value="false" />	<!-- false|arrow|thrown -->

		<!-- Combat options -->
		<option name="COMBAT_TYPE"        value="" />	<!-- leave empty or choose ranged/melee if not using class default -->
		<option name="COMBAT_RANGED_PULL" value="true" /> <!-- only important for melees -->
		<option name="COMBAT_DISTANCE"    value="200" />
		<option name="MAX_FIGHT_TIME"     value="15" />	<!-- Max time without damage before break -->
		<option name="DOT_PERCENT"        value="90" />
		<option name="ANTI_KS"            value="true" />
		<option name="MAX_TARGET_DIST"    value="10000" />

		<!-- Attack monsters 3 levels above or 10 below your level -->
		<option name="TARGET_LEVELDIF_ABOVE" value="3" />
		<option name="TARGET_LEVELDIF_BELOW" value="70" />

		<!-- Waypoint and movement settings -->
		<option name="WAYPOINTS"		value="" />  <!-- leave empty to show a list -->
		<option name="RETURNPATH"		value="" />
		<option name="PATH_TYPE"		value="waypoints" />	<!-- waypoints | wander -->
		<option name="WANDER_RADIUS"		value="500" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 		value="false" />

		<!-- Loot settings -->
		<option name="LOOT"               value="true" />
		<option name="LOOT_IN_COMBAT"     value="true" />
		<option name="LOOT_DISTANCE"      value="100" />
		<option name="LOOT_PAUSE_AFTER"   value="0" />		<!-- probability in % for a short rest -->

		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="200" />

		<!-- Log out and resurrect settings -->
		<option name="LOGOUT_TIME" 			value="0" />	<!-- in minutes, 0 = timer disabled -->
		<option name="LOGOUT_SHUTDOWN"		value="false" />
		<option name="LOGOUT_WHEN_STUCK"	value="true" />
		<option name="RES_AUTOMATIC_AFTER_DEATH" value="true" />
		<option name="MAX_DEATHS" value="10" /> <!-- Log out after this many deaths -->

		<!-- For more options and documentation see the RoM Bot Wiki:  -->
		<!-- http://www.solarstrike.net/wiki/index.php5?title=RoM_Bot  -->

	</options>

	<friends>
		<!-- names of friends we help fighting or enemys we don't want to attack -->
		<!-- for umlauts use \129 (ue),\132 (ae),\148 (oe) e.g. K\132fer         -->
		<friend name="MyOtherCharacter1" />
		<friend name="MyOtherCharacter2" />
		<friend name="Elite_Mob_Name1" />
		<friend name="Elite_Mob_Name2" />
	</friends>

	<mobs>
		<!-- names of mobs we want to attack -->
		<!-- if no names defined we will attack all mobs -->
		<mob name="" />
		<mob name="" />
		<mob name="" />
	</mobs>

	<hotkeys>
    	<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
		<hotkey name="MACRO"        modifier="" key="VK_0" />
	</hotkeys>

	<!-- define your skills depending from your actual primary class -->
	<!-- see the example for a priest/mage                           -->
	<!-- delete skills you don't have or don't want to use.          -->
	<!-- For more skills to use see /database/skills.xml             -->
	<!-- demo skills for LvL 1 character for all classes             -->
	<skills_priest>
		<skill name="PRIEST_SOUL_SOURCE"   modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
		<skill name="PRIEST_HOLY_AURA"     modifier="" hotkey="VK_7" priority="100" inbattle="true" hpper="24" />
		<skill name="PRIEST_URGENT_HEAL"   modifier="" hotkey="VK_2" priority="100" hpper="30"  />
		<skill name="PRIEST_REGENERATE"    modifier="" hotkey="VK_6" priority="90" />
		<skill name="PRIEST_RISING_TIDE"   modifier="" hotkey="VK_3" priority="80" />
		<skill name="MAGE_FIREBALL"        modifier="" hotkey="VK_8" priority="70" />
		<skill name="PRIEST_WAVE_ARMOR"    modifier="" hotkey="VK_5" priority="40"  inbattle="true" />
		<!--skill name="PRIEST_SOUL_BOND"     hotkey="VK_T" priority="30" /> -->
		<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" rebuffcut="60" inbattle="false" /> -->
	</skills_priest>

	<skills_warrior>
		<skill name="WARRIOR_SLASH"          modifier="" hotkey="VK_2" priority="90" />
		<skill name="WARRIOR_PROBING_ATTACK" modifier="" hotkey="VK_4" priority="80" />
		<skill name="WARRIOR_OPEN_FLANK"     modifier="" hotkey="VK_5" priority="70" />
	</skills_warrior>

	<skills_scout>
		<skill name="SCOUT_SHOT"        modifier="" hotkey="VK_2" priority="90" />
		<skill name="SCOUT_AUTOSHOT"    modifier="" hotkey="VK_4" priority="80" />
		<skill name="SCOUT_WIND_ARROWS" modifier="" hotkey="VK_5" priority="70" />
	</skills_scout>

	<skills_rogue>
		<skill name="ROGUE_SHADOWSTAB"  modifier="" hotkey="VK_2" priority="90" />
		<skill name="ROGUE_LOW_BLOW"    modifier="" hotkey="VK_4" priority="80" />
	</skills_rogue>

	<skills_mage>
		<skill name="MAGE_FLAME"              modifier="" hotkey="VK_3" priority="80" />
		<skill name="MAGE_ELEMENTAL_CATALYST" modifier="" hotkey="VK_2" priority="30" inbattle="true" />
	</skills_mage>

	<skills_knight>
		<skill name="KNIGHT_HOLY_STRIKE"  modifier="" hotkey="VK_3" priority="90" />
		<skill name="KNIGHT_HOLY_SHIELD"  modifier="" hotkey="VK_4" priority="80" inbattle="true" hpper="15" />
		<skill name="KNIGHT_HOLY_SEAL"    modifier="" hotkey="VK_5" priority="70" />
		<skill name="KNIGHT_PUNISHMENT"   modifier="" hotkey="VK_2" priority="60" />
	</skills_knight>

	<skills_warden>
		<skill name="WARDEN_CHARGED_CHOP"	modifier="" hotkey="VK_2" priority="90" />
		<skill name="WARDEN_ENERGY_ABSORB"	modifier="" hotkey="VK_3" priority="80" inbattle="true" hpper="25" />
	</skills_warden>

	<skills_druid>
		<skill name="DRUID_RECOVER"        modifier="" hotkey="VK_2" priority="90" hpper="30" />
		<skill name="DRUID_EARTH_ARROW"    modifier="" hotkey="VK_3" priority="80" />
	</skills_druid>

	<onLoad><![CDATA[
		-- Additional Lua code to execute after loading the profile
		-- and before the bot starts. e.g. You could overwrite profile settings here
		-- like: changeProfileOption("HP_REST", 60);
	]]></onLoad>

	<onDeath><![CDATA[
		-- Additional Lua code to execute on death
		-- pauseOnDeath(); -- Stop the script
		-- player:logout();	-- logout
	]]></onDeath>

	<onLeaveCombat><![CDATA[
		-- Additional Lua code to execute after killing an enemy
	]]></onLeaveCombat>

	<onLevelup><![CDATA[
		-- Additional Lua code to execute after having a levelup
		-- and levelup the skills for a new character (mage or priest recommended)
		-- e.g. sendMacro("SetSpellPoint(_tabnr, _skillnr);"); would levelup a skill
	]]></onLevelup>

	<onSkillCast><![CDATA[
		-- Additional Lua code to execute when casting a skill
		-- Note: arg1 contains the skill being used.
		-- i.e. arg1.Name will be the name of the skill being cast
		-- e.g.:
		--if( 15 > player.HP/player.MaxHP*100 ) then
		--    player:cast("PRIEST_SOUL_SOURCE");
		--elseif( 25 > player.HP/player.MaxHP*100 ) then
		--    player:cast("PRIEST_HOLY_AURA");
		--    player:cast("PRIEST_URGENT_HEAL");
		--    player:cast("PRIEST_URGENT_HEAL");
	]]></onSkillCast>
</profile>

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 12:17 am
by rock5
I don't think you can have spaces in this line

Code: Select all

<option name="INV_AUTOSELL_QUALITY" value="white, green, blue, purple" />
So try

Code: Select all

<option name="INV_AUTOSELL_QUALITY" value="white,green,blue,purple" />

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 9:49 am
by rafalatko
rock5 wrote:I don't think you can have spaces in this line

Code: Select all

<option name="INV_AUTOSELL_QUALITY" value="white, green, blue, purple" />
So try

Code: Select all

<option name="INV_AUTOSELL_QUALITY" value="white,green,blue,purple" />


I've done it before and didn't help (I've try with & without spaces) and still there was a problem with selling purles, I,ve read somewhere this is about Gear, because it been sold but not offen, I gust must be something about yellow stats VII, VIII, etc

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 10:04 am
by rock5
Autosell doesn't check the collor of stats only the number. You have INV_AUTOSELL_NOSELL_STATSNUMBER set to 5 so that should be ok.

Have you tied with debugging on? Maybe it will tell you why it isn't selling. Just add "debug" to the end of your command to start the bot.

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 1:24 pm
by rafalatko
Rock5 can u write the line for me ? plese becouse I don't know whre to put it

Also any ideas to make it to work after new patch ??

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 3:55 pm
by rock5
I just released revision 720. Try that.

If you start your bot like this

Code: Select all

rom/bot path:wpfilename
Then add 'debug' like this

Code: Select all

rom/bot path:wpfilename debug
Or if you only use

Code: Select all

rom/bot
and then select the waypoint file from the list then start it like this instead

Code: Select all

rom/bot debug

Re: Allmost foolproof KS run

Posted: Tue Jun 12, 2012 11:18 pm
by rafalatko
Thanks, I'll try that and and 'll see :)

Just sold all without one of them but on start there was more to read but during the selles didn't say . I can watch only greens line of waypoints

Re: Allmost foolproof KS run

Posted: Wed Jun 13, 2012 8:18 am
by rock5
You are only interested in messages while selling. It should only print messages when items don't sell, not when they sell. So if you get a purple item and it doesn't sell it should print a message letting use know why.

So when you get a purple item and it doesn't sell, look for the message that says why. If there is no message let me know that too.

Re: Allmost foolproof KS run

Posted: Wed Jun 13, 2012 10:59 pm
by rafalatko
FIXED

I was setting up the profile but in my waypoint was sell option too, and there was with not purple, so I removed auto sell from waypoints and it'is working now. :) My big mistake :P

Thank you Rock5 for your time and help

Re: Allmost foolproof KS run

Posted: Mon Jul 23, 2012 3:42 am
by thuia
Hi mates,
I am using current ver. from first post (Version 25-05-2011). It works great but there is one issue...after talking to Pancer my avatar is buying ammo instead of selling stuff :| could any one tell me which lines should I change?? I would like to try this

Code: Select all

--player:merchant("Pancer");
   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
but I have no idea where exactly I should put these lines.

Re: Allmost foolproof KS run

Posted: Mon Jul 23, 2012 4:34 am
by rock5
Well your answer is right there in the code. You need to comment out

Code: Select all

player:merchant("Pancer")
and then add the rest of the code. So just look for that line. Unfortunately there is duplication of code because there are 2 paths to Pancer so you will need to change both.

Re: Allmost foolproof KS run

Posted: Wed Jul 25, 2012 5:19 am
by thuia
That's what I thought:) that works !! thanks !!
One more thing - how to make character to use Potion: Galloping Gale after every run before riding a mount? (how should code look like and where exactly put it?)

by the way: do frogster know when you use this? (i'm trying to avoid being banned:))