Confused:O

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Shef
Posts: 8
Joined: Sat Oct 22, 2011 4:31 pm

Confused:O

#1 Post by Shef » Mon Oct 31, 2011 3:49 pm

greetings,
i have recently been trying to do some simple things and i am getting stumped.
basically i am able to createpath and make farming loops which end up at the vendor at that point i use player:merchant("");...which sells stuff per settings in my profile. bot usually gets full quick and i am loosing out on some loot. i am trying to get the bot to recognize when bags are full and load a new waypoint file that takes bot to vendor and back to farm spot,at the end of this waypoint file i tried to start the farm script over again. i have looked at the wiki, and trolled thru endless old posts(which i think some might be outdated because of patch changes or bot revisions maybe?) and have only led myself to be even more confused.

secondly the nosell option in my profile doesnt work is there a trick to it?

3rdly am i to understand correctly that my main class mage should still be able to use the heals of the secondary class priest when certain conditions are met?(if so i have tried and tried again to make this work to no avail)

i have tried to use some code in the onleavecombat section as well as onskillcast sections of my profile with no results.. i think my lack of understanding of .lua code and where its to be placed(i thought between the respective tags) is so limited i have yet been able to get some of these functions to work

any help or shout outs that may be helpful..or some up to date coding i could copy paste would be really appreciated..i continue to troll the posts and wiki to try and better my understanding of all this daily and have learned a bit but just when i think ive got it..and in the right place i get either profile errors on startup or the bot just doesnt do whats intended :oops:
if you have the time please help..if not i hope to get this shit straight so i can help other noobs heres my profile:

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="80" />
		<option name="MP_LOW_POTION"		value="40" />
		<option name="HP_LOW_POTION"		value="70" />
		<option name="USE_HP_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_MANA_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_PHIRIUS_POTION"	value="false" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />

		<!-- 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" />			<!-- set to "0" if not required to buy -->
		<option name="ARROW_QUIVER" 		value="0" /> 			<!-- set to "0" if not required to buy -->
		<option name="THROWN_BAG" 			value="0" />			<!-- set to "0" if not required to buy -->
		<option name="POISON" 				value="0" />			<!-- set to "0" if not required to buy -->

		<!-- 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="225" />

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

		<!-- 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="true" />

		<!-- Loot settings -->
		<option name="LOOT"               	value="true" />
		<option name="LOOT_ALL"			  	value="True" />  		<!-- Loot all nearby dead mobs after combat -->
		<option name="LOOT_IN_COMBAT"     	value="false" />
		<option name="LOOT_DISTANCE"      	value="400" />
		<option name="LOOT_PAUSE_AFTER"   	value="0" />			<!-- probability in % for a short rest -->

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="true" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="19" /> 			<!-- 1 = bag 1 slot 1 -->
		<option name="INV_AUTOSELL_TOSLOT"	value="60" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_QUALITY"	value="white,green,blue" /> 	<!-- white,green,blue,purple  -->
                <option name="INV_AUTOSELL_STATS_NOSELL" value="TIN ORE,BITTERLEAF,MOUNTAIN DEMON GRASS" /> <!-- Item name mask that you do not want to sell -->
                

		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="340" />
		<option name="HARVEST_WOOD"			value="true" /> 		<!-- Choose which types to harvest. -->
		<option name="HARVEST_HERB"			value="true" /> 		<!-- "true" = harvest, "false" = do not harvest -->
		<option name="HARVEST_ORE"			value="true" />

		<!-- 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,,"-->


		<!-- 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="CLOSE_WHEN_STUCK"		value="true" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="10" /> 			<!-- Log out after this many deaths -->

		<!-- Party Bot options  -->
		<!-- <option name="PARTY"			value="true" /> -->
		<!-- <option name="PARTY_ICONS"		value="true" /> -->
		<!-- <option name="PARTY_INSTANCE"	value="true" /> -->

		<!-- Healing options -->
		<!-- <option name="HEALER_FIGHT"		value="true" /> --> 	<!-- Not implemented yet, coming soon -->

	</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" />
	</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"          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             -->
	<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
	<skills_priest>
                <skill name="PRIEST_URGENT_HEAL"     	hotkey="VK_5" priority="100" hpper="75"  />
                <skill name="PRIEST_HOLY_AURA"       	hotkey="VK_8" priority="90" inbattle="true" hpper="50" />
		<skill name="PRIEST_SOUL_SOURCE"     	hotkey="MACRO" priority="50" inbattle="true" hpper="15" />
		<skill name="PRIEST_REGENERATE"      	hotkey="MACRO" priority="50"  hpper="90" />
		<skill name="PRIEST_RISING_TIDE"     	hotkey="MACRO" priority="80" />
		<skill name="PRIEST_WAVE_ARMOR"      	hotkey="MACRO" priority="40"  inbattle="true" />
		<skill name="PRIEST_AMPLIFIED_ATTACK" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="true" />
		<skill name="PRIEST_GRACE_OF_LIFE" 		hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_HOLY_AURA"       	hotkey="VK_8" priority="100" inbattle="true" hpper="50" />
		<!--skill name="PRIEST_SOUL_BOND"     	hotkey="MACRO" priority="30" /> -->
		<!--skill name="PRIEST_MAGIC_BARRIER" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" /> -->
	</skills_priest>

	

	<skills_mage>
                <skill name="PRIEST_HOLY_AURA"       	hotkey="VK_8" priority="100" inbattle="true" hpper="50" />
                <skill name="PRIEST_URGENT_HEAL"     	hotkey="VK_5" priority="100" hpper="75"  />
                <skill name="MAGE_INTENSIFICATION"      hotkey="VK_9" priority="110" inbattle="true" />
                <skill name="MAGE_LIGHTNING"         	hotkey="VK_2" priority="80" />
		<skill name="MAGE_FLAME"                hotkey="VK_3" priority="70" />
		<skill name="MAGE_FIREBALL"          	hotkey="VK_4" priority="60" />
		<skill name="MAGE_ENERGY_INFLUX" 	  	hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ELEMENTAL_CATALYST"   hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_WELL" 		  	hotkey="MACRO" priority="30" inbattle="true" />
	</skills_mage>

	

	<onLoad><![CDATA[

	]]></onLoad>

	<onDeath><![CDATA[

	]]></onDeath>

	<onLeaveCombat><![CDATA[
              
        
                   

	]]></onLeaveCombat>

	<onLevelup><![CDATA[

	]]></onLevelup>

	<onSkillCast><![CDATA[
                   <skill name="PRIEST_URGENT_HEAL"     	hotkey="VK_5" priority="100" hpper="95"  />
                   <skill name="PRIEST_HOLY_AURA"       	hotkey="VK_8" priority="100" inbattle="true" hpper="75" />

	]]></onSkillCast>

	<onHarvest><![CDATA[

	]]></onHarvest>

	<onUnstickFailure><![CDATA[

	]]></onUnstickFailure>
</profile>
again i realize that this has been covered before but im not sure whats obsolete due to changes and whatnot.........i know this is a great bot and i could do so much more!

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

Re: Confused:O

#2 Post by lisa » Mon Oct 31, 2011 9:38 pm

Aslong as the skill is on that spot on action bar then it should heal.

Code: Select all

<skill name="PRIEST_URGENT_HEAL"        hotkey="VK_5" priority="100" hpper="75"  />
I personally use hotkey="MACRO"

Code: Select all

 <option name="LOOT_ALL"              value="True" />
that should probably be a small t value="true"

Don't have this in the onskillcast event

Code: Select all

 <onSkillCast><![CDATA[
                   <skill name="PRIEST_URGENT_HEAL"        hotkey="VK_5" priority="100" hpper="95"  />
                   <skill name="PRIEST_HOLY_AURA"          hotkey="VK_8" priority="100" inbattle="true" hpper="75" />

   ]]></onSkillCast>

In the priest skills section you have holy aura twice, probably won't cause any conflicts but it isn't needed.

Code: Select all

 <option name="INV_AUTOSELL_STATS_NOSELL" value="TIN ORE,BITTERLEAF,MOUNTAIN DEMON GRASS" />
Stats no sell, those are item names you have listed.
-- stats (text search at right tooltip side) that will not be selled
things like dexterity, stamina.

Code: Select all

<option name="LOOT_DISTANCE"         value="400" />
That number is very high, means it will try to run a very long way to loot a mob and probably get stuck along the way.

Code: Select all

<option name="HARVEST_DISTANCE"      value="340" />
Again number might be to high, means would try to run a fare way to harvest, again might get stuck along the way.

My M/P looks like this

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="50" />
		<option name="USE_HP_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_MANA_POTION"		value="best" />			<!-- potion select strategy: best|minstack -->
		<option name="USE_PHIRIUS_POTION"	value="true" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />
		
		<!-- 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="99" />
		<option name="MANA_POTION" 			value="99" />			<!-- set to "0" if not required to buy -->
		<option name="ARROW_QUIVER" 		value="0" /> 			<!-- set to "0" if not required to buy -->
		<option name="THROWN_BAG" 			value="0" />			<!-- set to "0" if not required to buy -->
		<option name="POISON" 				value="0" />			<!-- set to "0" if not required to buy -->

		<!-- 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="225" />

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

		<!-- 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="0" />
		<option name="WAYPOINT_DEVIATION"	value="0" />
		<option name="QUICK_TURN" 			value="true" />

		<!-- Loot settings -->
		<option name="LOOT"               	value="true" />
		<option name="LOOT_ALL"			  	value="true" />  		<!-- Loot all nearby dead mobs after combat -->
		<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 -->

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

		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="120" />
		<option name="HARVEST_WOOD"			value="true" /> 		<!-- Choose which types to harvest. -->
		<option name="HARVEST_HERB"			value="true" /> 		<!-- "true" = harvest, "false" = do not harvest -->
		<option name="HARVEST_ORE"			value="true" />

		<!-- 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,,"-->


		<!-- 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="CLOSE_WHEN_STUCK"		value="true" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="10" /> 			<!-- Log out after this many deaths -->

		<!-- Party Bot options  -->
		<option name="PARTY"			value="true" /> 
		<option name="PARTY_ICONS"		value="false" /> 
		<option name="PARTY_INSTANCE"	value="true" /> 
		
		<!-- Healing options -->
		<!-- <option name="HEAL_PARTY"		value="true" /> -->

	</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="Iron Teeth Sentry" />
		<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"          key="VK_0" />
	</hotkeys>

	<!-- define your skills depending from your actual primary class -->
	<!-- to use a specific key instead of MACRO then use hotkey="VK_1" this example is for hotkey 1 -->
	<skills_priest>
		<skill name="PRIEST_SOUL_SOURCE"     	hotkey="MACRO" priority="110" inbattle="true" hpper="15" />
		<skill name="PRIEST_URGENT_HEAL"     	hotkey="MACRO" priority="100" hpper="50"  />
		<skill name="PRIEST_REGENERATE"      	hotkey="MACRO" priority="90"  hpper="80" />
		<skill name="PRIEST_RISING_TIDE"     	hotkey="MACRO" priority="80" />
		<skill name="PRIEST_WAVE_ARMOR"      	hotkey="MACRO" priority="40"  inbattle="true" />
		<skill name="PRIEST_AMPLIFIED_ATTACK" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_GRACE_OF_LIFE" 		hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_HOLY_AURA"       	hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<!--skill name="PRIEST_SOUL_BOND"     	hotkey="MACRO" priority="30" /> -->
		<!--skill name="PRIEST_MAGIC_BARRIER" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" /> -->
	</skills_priest>

	<skills_mage>
		<skill name="MAGE_PURGATORY_FIRE"    		hotkey="MACRO" priority="100" autouse="false" />
		<skill name="MAGE_ESSENCE_OF_MAGIC" 	  	hotkey="MACRO" priority="30" />
		<skill name="MAGE_FLAME"              	  	hotkey="MACRO" priority="80" />
		<skill name="PRIEST_URGENT_HEAL"   	  		hotkey="MACRO" priority="100" hpper="60"  />
		<skill name="PRIEST_REGENERATE"    	  		hotkey="MACRO" priority="100" hpper="80" />
		<skill name="MAGE_FIREBALL"        	  		hotkey="MACRO" priority="70" />
		<skill name="MAGE_ENERGY_INFLUX" 	  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_WELL" 		  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="PRIEST_HOLY_AURA"     	  		hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<skill name="MAGE_ELEMENTAL_CATALYST" 	  	hotkey="MACRO" priority="30" inbattle="true" />
	</skills_mage>
</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

Shef
Posts: 8
Joined: Sat Oct 22, 2011 4:31 pm

Re: Confused:O

#3 Post by Shef » Tue Nov 01, 2011 3:14 pm

Thanks for the tips lisa,looking at your profile helps :D . could you post any scripts or functions you have for checking bagspace and implementing a change to another wp file to sell it? im confused at where to put that and how to write it .current examples would really help to point me in the right direction. do we need to write out the script for that in the rom/interface/addons..and then point the wp file to that function? my apologies, im slowly grapsing the concepts ( i hope).

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

Re: Confused:O

#4 Post by lisa » Tue Nov 01, 2011 9:19 pm

to use the merchant facilities on an NPC just use this in your WP

Code: Select all

player:merchant("NPCname");
obviously change NPCname to the actual name of the NPC.
It will repair your gear, if the repair option is at that npc.
It will sell and buy according to the settings in your profile.


In the default bot you will find
rom/waypoints/1-10Pioneers
have a look in 14t_logar.xml
in there is an example of merchant and also an example of loading another WP which look like this.

Code: Select all

player:merchant("Dimar");
loadPaths("1-10Pioneers/l4t_5-7_beetle");
If your bot is running properly then you shouldn't need to touch the interface/addons folder.

I think that covers your questions.
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

Shef
Posts: 8
Joined: Sat Oct 22, 2011 4:31 pm

Re: Confused:O

#5 Post by Shef » Wed Nov 02, 2011 6:58 pm

thanks lisa!
question..do you see whats wrong with this? i thought with this my sell wp would trigger after wp 30 and at the end of sell wp the prriest17 would trigger

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="4383" z="7038" y="-27">	</waypoint>
	<!-- #  2 --><waypoint x="4511" z="7062" y="-26">	</waypoint>
	<!-- #  3 --><waypoint x="4571" z="7079" y="-25">player:harvest();</waypoint>
	<!-- #  4 --><waypoint x="4633" z="7118" y="-25">	</waypoint>
	<!-- #  5 --><waypoint x="4778" z="7191" y="-20">	</waypoint>
	<!-- #  6 --><waypoint x="4852" z="7262" y="-29">	</waypoint>
	<!-- #  7 --><waypoint x="4994" z="7346" y="-42">	</waypoint>
	<!-- #  8 --><waypoint x="5036" z="7372" y="-42">player:harvest();</waypoint>
	<!-- #  9 --><waypoint x="5184" z="7423" y="-38">	</waypoint>
	<!-- # 10 --><waypoint x="5257" z="7466" y="-38">	</waypoint>
	<!-- # 11 --><waypoint x="5294" z="7529" y="-38">player:harvest();</waypoint>
	<!-- # 12 --><waypoint x="5361" z="7624" y="-36">	</waypoint>
	<!-- # 13 --><waypoint x="5429" z="7725" y="-33">player:harvest();</waypoint>
	<!-- # 14 --><waypoint x="5451" z="7789" y="-5">	</waypoint>
	<!-- # 15 --><waypoint x="5526" z="7887" y="-11">	</waypoint>
	<!-- # 16 --><waypoint x="5586" z="7954" y="13">	</waypoint>
	<!-- # 17 --><waypoint x="5605" z="8014" y="51">	</waypoint>
	<!-- # 18 --><waypoint x="5570" z="8088" y="76">	</waypoint>
	<!-- # 19 --><waypoint x="5554" z="8104" y="82">player:harvest();</waypoint>
	<!-- # 20 --><waypoint x="5509" z="8145" y="84">	</waypoint>
	<!-- # 21 --><waypoint x="5417" z="8237" y="-4">	</waypoint>
	<!-- # 22 --><waypoint x="5347" z="8308" y="-20">	</waypoint>
	<!-- # 23 --><waypoint x="5281" z="8327" y="-10">	</waypoint>
	<!-- # 24 --><waypoint x="5215" z="8326" y="17">	</waypoint>
	<!-- # 25 --><waypoint x="5183" z="8329" y="19">player:harvest();</waypoint>
	<!-- # 26 --><waypoint x="5076" z="8397" y="33">	</waypoint>
	<!-- # 27 --><waypoint x="5012" z="8442" y="21">	</waypoint>
	<!-- # 28 --><waypoint x="4947" z="8490" y="3">	</waypoint>
	<!-- # 29 --><waypoint x="4884" z="8547" y="-45">if (inventory:getItemCount(0) > 5) 
                                                           then loadpaths ("priest return sell");
end 
   </waypoint>
	<!-- # 30 --><waypoint x="4867" z="8605" y="-46">	</waypoint>
	<!-- # 31 --><waypoint x="4891" z="8648" y="-43">	</waypoint>
	<!-- # 32 --><waypoint x="4962" z="8718" y="-53">	</waypoint>
	<!-- # 33 --><waypoint x="5040" z="8791" y="-55">	</waypoint>
	<!-- # 34 --><waypoint x="5113" z="8841" y="-67">	</waypoint>
	<!-- # 35 --><waypoint x="5180" z="8830" y="-69">	</waypoint>
	<!-- # 36 --><waypoint x="5525" z="8775" y="-109">	</waypoint>
	<!-- # 37 --><waypoint x="5627" z="8738" y="-93">	</waypoint>
	<!-- # 38 --><waypoint x="5671" z="8712" y="-83">player:harvest();</waypoint>
	<!-- # 39 --><waypoint x="5727" z="8581" y="-30">	</waypoint>
	<!-- # 40 --><waypoint x="5740" z="8519" y="-10">	</waypoint>
	<!-- # 41 --><waypoint x="5784" z="8432" y="-10">	</waypoint>
	<!-- # 42 --><waypoint x="5853" z="8233" y="13">	</waypoint>
	<!-- # 43 --><waypoint x="5823" z="8126" y="16">	</waypoint>
	<!-- # 44 --><waypoint x="5802" z="8078" y="19">player:harvest();</waypoint>
	<!-- # 45 --><waypoint x="5767" z="7999" y="18">	</waypoint>
	<!-- # 46 --><waypoint x="5743" z="7945" y="14">player:harvest();</waypoint>
	<!-- # 47 --><waypoint x="5708" z="7880" y="12">	</waypoint>
	<!-- # 48 --><waypoint x="5673" z="7829" y="9">	</waypoint>
	<!-- # 49 --><waypoint x="5624" z="7754" y="-26">	</waypoint>
	<!-- # 50 --><waypoint x="5600" z="7711" y="-36">player:harvest();</waypoint>
	<!-- # 51 --><waypoint x="5604" z="7610" y="-37">	</waypoint>
	<!-- # 52 --><waypoint x="5596" z="7539" y="-35">	</waypoint>
	<!-- # 53 --><waypoint x="5566" z="7500" y="-29">	</waypoint>
	<!-- # 54 --><waypoint x="5475" z="7467" y="-28">	</waypoint>
	<!-- # 55 --><waypoint x="5393" z="7444" y="-26">	</waypoint>
	<!-- # 56 --><waypoint x="5327" z="7428" y="-37">	</waypoint>
	<!-- # 57 --><waypoint x="5289" z="7392" y="-37">	</waypoint>
	<!-- # 58 --><waypoint x="5249" z="7346" y="-35">	</waypoint>
	<!-- # 59 --><waypoint x="5187" z="7277" y="-14">player:harvest();</waypoint>
	<!-- # 60 --><waypoint x="5106" z="7266" y="-23">	</waypoint>
	<!-- # 61 --><waypoint x="5019" z="7272" y="-39">	</waypoint>
	<!-- # 62 --><waypoint x="4972" z="7264" y="-34">player:harvest();</waypoint>
	<!-- # 63 --><waypoint x="4855" z="7242" y="-25">	</waypoint>
	<!-- # 64 --><waypoint x="4766" z="7226" y="-20">	</waypoint>
	<!-- # 65 --><waypoint x="4716" z="7217" y="-18">player:harvest();</waypoint>
	<!-- # 66 --><waypoint x="4668" z="7200" y="-18">	</waypoint>
	<!-- # 67 --><waypoint x="4607" z="7160" y="-16">	</waypoint>
	<!-- # 68 --><waypoint x="4531" z="7110" y="-22">	</waypoint>
	<!-- # 69 --><waypoint x="4443" z="7054" y="-26">	</waypoint>
</waypoints>


Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="4325" z="7169" y="-24">	</waypoint>
	<!-- #  2 --><waypoint x="4193" z="7266" y="-18">	</waypoint>
	<!-- #  3 --><waypoint x="4083" z="7262" y="-22">	</waypoint>
	<!-- #  4 --><waypoint x="4013" z="7157" y="-12">	</waypoint>
	<!-- #  5 --><waypoint x="3986" z="7063" y="3">	</waypoint>
	<!-- #  6 --><waypoint x="3922" z="6903" y="22">	</waypoint>
	<!-- #  7 --><waypoint x="3763" z="6884" y="27">	</waypoint>
	<!-- #  8 --><waypoint x="3641" z="6801" y="36">	</waypoint>
	<!-- #  9 --><waypoint x="3535" z="6686" y="36">	</waypoint>
	<!-- # 10 --><waypoint x="3410" z="6542" y="23">	</waypoint>
	<!-- # 11 --><waypoint x="3263" z="6403" y="15">	</waypoint>
	<!-- # 12 --><waypoint x="3081" z="6350" y="2">	</waypoint>
	<!-- # 13 --><waypoint x="2850" z="6325" y="7">	</waypoint>
	<!-- # 14 --><waypoint x="2636" z="6266" y="12">	</waypoint>
	<!-- # 15 --><waypoint x="2562" z="6179" y="11">	</waypoint>
	<!-- # 16 --><waypoint x="2502" z="5995" y="-6">	</waypoint>
	<!-- # 17 --><waypoint x="2495" z="5908" y="-12">	</waypoint>
	<!-- # 18 --><waypoint x="2517" z="5791" y="-23">	</waypoint>
	<!-- # 19 --><waypoint x="2546" z="5666" y="-24">	</waypoint>
	<!-- # 20 --><waypoint x="2584" z="5469" y="-37">	</waypoint>
	<!-- # 21 --><waypoint x="2568" z="5295" y="-20">	</waypoint>
	<!-- # 22 --><waypoint x="2488" z="5193" y="-33">	</waypoint>
	<!-- # 23 --><waypoint x="2302" z="5037" y="-30">	</waypoint>
	<!-- # 24 --><waypoint x="2225" z="5060" y="-32">	</waypoint>
	<!-- # 25 --><waypoint x="2032" z="5182" y="-20">	</waypoint>
	<!-- # 26 --><waypoint x="1900" z="5317" y="-44">	</waypoint>
	<!-- # 27 --><waypoint x="1844" z="5435" y="-45">	</waypoint>
	<!-- # 28 --><waypoint x="1767" z="5628" y="-16">	</waypoint>
	<!-- # 29 --><waypoint x="1723" z="5744" y="-26">	</waypoint>
	<!-- # 30 --><waypoint x="1739" z="5849" y="-35">	</waypoint>
	<!-- # 31 --><waypoint x="1851" z="5880" y="-43">	</waypoint>
	<!-- # 32 --><waypoint x="1907" z="5920" y="-41">	</waypoint>
	<!-- # 33 --><waypoint x="1860" z="5968" y="-33">	</waypoint>
	<!-- # 34 --><waypoint x="1742" z="5942" y="-29">	</waypoint>
	<!-- # 35 --><waypoint x="1724" z="6042" y="-13">player:merchant("Vendor");	</waypoint>
	<!-- # 36 --><waypoint x="1703" z="6197" y="13">	</waypoint>
	<!-- # 37 --><waypoint x="1690" z="6348" y="48">	</waypoint>
	<!-- # 38 --><waypoint x="1685" z="6470" y="22">	</waypoint>
	<!-- # 39 --><waypoint x="1721" z="6884" y="-17">	</waypoint>
	<!-- # 40 --><waypoint x="1757" z="7120" y="-17">	</waypoint>
	<!-- # 41 --><waypoint x="1782" z="7282" y="-17">	</waypoint>
	<!-- # 42 --><waypoint x="1816" z="7398" y="16">	</waypoint>
	<!-- # 43 --><waypoint x="1852" z="7458" y="25">	</waypoint>
	<!-- # 44 --><waypoint x="1919" z="7548" y="66">	</waypoint>
	<!-- # 45 --><waypoint x="2000" z="7634" y="44">	</waypoint>
	<!-- # 46 --><waypoint x="2049" z="7693" y="34">	</waypoint>
	<!-- # 47 --><waypoint x="2096" z="7770" y="-22">	</waypoint>
	<!-- # 48 --><waypoint x="2240" z="7929" y="-12">	</waypoint>
	<!-- # 49 --><waypoint x="2413" z="8052" y="59">	</waypoint>
	<!-- # 50 --><waypoint x="2417" z="8049" y="59">	</waypoint>
	<!-- # 51 --><waypoint x="2274" z="7867" y="-12">	</waypoint>
	<!-- # 52 --><waypoint x="2334" z="7880" y="-15">	</waypoint>
	<!-- # 53 --><waypoint x="2488" z="7879" y="-26">	</waypoint>
	<!-- # 54 --><waypoint x="2567" z="7895" y="-16">	</waypoint>
	<!-- # 55 --><waypoint x="2627" z="7958" y="-13">	</waypoint>
	<!-- # 56 --><waypoint x="2629" z="8016" y="-4">	</waypoint>
	<!-- # 57 --><waypoint x="2620" z="8143" y="-7">	</waypoint>
	<!-- # 58 --><waypoint x="2652" z="8335" y="-15">	</waypoint>
	<!-- # 59 --><waypoint x="2667" z="8420" y="-20">	</waypoint>
	<!-- # 60 --><waypoint x="2676" z="8498" y="-10">	</waypoint>
	<!-- # 61 --><waypoint x="2685" z="8583" y="-14">	</waypoint>
	<!-- # 62 --><waypoint x="2689" z="8663" y="-27">	</waypoint>
	<!-- # 63 --><waypoint x="2732" z="8756" y="-22">	</waypoint>
	<!-- # 64 --><waypoint x="2845" z="8804" y="-22">	</waypoint>
	<!-- # 65 --><waypoint x="2979" z="8806" y="-20">	</waypoint>
	<!-- # 66 --><waypoint x="3169" z="8759" y="-17">	</waypoint>
	<!-- # 67 --><waypoint x="3268" z="8566" y="-2">	</waypoint>
	<!-- # 68 --><waypoint x="3284" z="8406" y="-12">	</waypoint>
	<!-- # 69 --><waypoint x="3320" z="8186" y="-32">	</waypoint>
	<!-- # 70 --><waypoint x="3374" z="8065" y="-31">	</waypoint>
	<!-- # 71 --><waypoint x="3467" z="7971" y="-34">	</waypoint>
	<!-- # 72 --><waypoint x="3593" z="7875" y="-39">	</waypoint>
	<!-- # 73 --><waypoint x="3679" z="7809" y="-36">	</waypoint>
	<!-- # 74 --><waypoint x="3778" z="7757" y="-32">	</waypoint>
	<!-- # 75 --><waypoint x="3923" z="7732" y="-32">	</waypoint>
	<!-- # 76 --><waypoint x="4083" z="7809" y="-16">	</waypoint>
	<!-- # 77 --><waypoint x="4183" z="7902" y="-10">	</waypoint>
	<!-- # 78 --><waypoint x="4269" z="7977" y="-21">	</waypoint>
	<!-- # 79 --><waypoint x="4360" z="8043" y="-38">	</waypoint>
	<!-- # 80 --><waypoint x="4422" z="8057" y="-36">	</waypoint>
	<!-- # 81 --><waypoint x="4500" z="7999" y="-39">	</waypoint>
	<!-- # 82 --><waypoint x="4514" z="7856" y="-25">	</waypoint>
	<!-- # 83 --><waypoint x="4559" z="7738" y="-29">	</waypoint>
	<!-- # 84 --><waypoint x="4638" z="7576" y="-21">	</waypoint>
	<!-- # 85 --><waypoint x="4670" z="7478" y="-26">	</waypoint>
	<!-- # 86 --><waypoint x="4704" z="7387" y="-23">	</waypoint>
	<!-- # 87 --><waypoint x="4709" z="7302" y="-22">	</waypoint>
	<!-- # 88 --><waypoint x="4692" z="7236" y="-17">	</waypoint>
	<!-- # 89 --><waypoint x="4636" z="7171" y="-19">	</waypoint>
	<!-- # 90 --><waypoint x="4548" z="7119" y="-22">	</waypoint>
	<!-- # 91 --><waypoint x="4463" z="7084" y="-26">	</waypoint>
	<!-- # 92 --><waypoint x="4323" z="7037" y="-22">loadpaths("priest17");	</waypoint>
</waypoints>

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

Re: Confused:O

#6 Post by lisa » Wed Nov 02, 2011 8:58 pm

does it have an error when inventory is almost full at waypoint 29?

Code: Select all

loadpaths ("priest return sell");
Do you have spaces in the WP name? I would avoid spaces, you also have a space between loadpaths and the (

try

Code: Select all

loadPaths("priest_return_sell");
and obviously rename the WP to use _ instead of spaces
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

Shef
Posts: 8
Joined: Sat Oct 22, 2011 4:31 pm

Re: Confused:O

#7 Post by Shef » Wed Nov 02, 2011 10:36 pm

Thanks for the help,
i made a simple wp loop and per your suggestions used the fixed code for it.its not working and i do not get any errors .it just bypasses from 28wp-29wp. bags are full and i did change my wp "priest_return_sell"
to reflect no spaces :oops:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="1721" z="5954" y="-24">	</waypoint>
	<!-- #  2 --><waypoint x="1630" z="6013" y="-1">	</waypoint>
	<!-- #  3 --><waypoint x="1528" z="5996" y="33">	</waypoint>
	<!-- #  4 --><waypoint x="1388" z="6012" y="38">	</waypoint>
	<!-- #  5 --><waypoint x="1337" z="6062" y="28">player:harvest();</waypoint>
	<!-- #  6 --><waypoint x="1209" z="6219" y="-15">	</waypoint>
	<!-- #  7 --><waypoint x="634" z="6740" y="-14">	</waypoint>
	<!-- #  8 --><waypoint x="515" z="7132" y="-14">	</waypoint>
	<!-- #  9 --><waypoint x="757" z="7509" y="-14">	</waypoint>
	<!-- # 10 --><waypoint x="917" z="7697" y="-14">	</waypoint>
	<!-- # 11 --><waypoint x="1060" z="7796" y="-2">	</waypoint>
	<!-- # 12 --><waypoint x="1108" z="7827" y="14">	</waypoint>
	<!-- # 13 --><waypoint x="1068" z="7962" y="46">	</waypoint>
	<!-- # 14 --><waypoint x="1068" z="7962" y="46">player:harvest();</waypoint>
	<!-- # 15 --><waypoint x="1042" z="8006" y="44">	</waypoint>
	<!-- # 16 --><waypoint x="886" z="8039" y="22">player:harvest();</waypoint>
	<!-- # 17 --><waypoint x="689" z="8103" y="0">player:harvest();</waypoint>
	<!-- # 18 --><waypoint x="608" z="8259" y="-29">player:harvest();</waypoint>
	<!-- # 19 --><waypoint x="662" z="8267" y="-29">	</waypoint>
	<!-- # 20 --><waypoint x="746" z="8305" y="-35">	</waypoint>
	<!-- # 21 --><waypoint x="804" z="8315" y="-23">	</waypoint>
	<!-- # 22 --><waypoint x="894" z="8352" y="-17">	</waypoint>
	<!-- # 23 --><waypoint x="922" z="8426" y="-25">	</waypoint>
	<!-- # 24 --><waypoint x="950" z="8507" y="-50">	</waypoint>
	<!-- # 25 --><waypoint x="977" z="8578" y="-53">player:harvest();</waypoint>
	<!-- # 26 --><waypoint x="1107" z="8732" y="-51">	</waypoint>
	<!-- # 27 --><waypoint x="1264" z="8758" y="-50">player:harvest();</waypoint>
	<!-- # 28 --><waypoint x="1372" z="8749" y="-39">
                                                if (inventory:getItemCount(0) > 5)
                                                     then loadpaths("priest_return_sell");	
                                                end
                     </waypoint>
	<!-- # 29 --><waypoint x="1429" z="8706" y="-31">player:harvest();</waypoint>
	<!-- # 30 --><waypoint x="1494" z="8560" y="-37">	</waypoint>
	<!-- # 31 --><waypoint x="1531" z="8373" y="-40">	</waypoint>
	<!-- # 32 --><waypoint x="1537" z="8249" y="-38">player:harvest();</waypoint>
	<!-- # 33 --><waypoint x="1537" z="8125" y="-29">	</waypoint>
	<!-- # 34 --><waypoint x="1570" z="8034" y="-11">player:harvest();</waypoint>
	<!-- # 35 --><waypoint x="1634" z="7937" y="7">	</waypoint>
	<!-- # 36 --><waypoint x="1660" z="7847" y="11">	</waypoint>
	<!-- # 37 --><waypoint x="1640" z="7727" y="25">	</waypoint>
	<!-- # 38 --><waypoint x="1624" z="7657" y="24">player:harvest();</waypoint>
	<!-- # 39 --><waypoint x="1597" z="7483" y="7">	</waypoint>
	<!-- # 40 --><waypoint x="1584" z="7265" y="-15">	</waypoint>
	<!-- # 41 --><waypoint x="1648" z="7183" y="-15">	</waypoint>
	<!-- # 42 --><waypoint x="1830" z="6978" y="-15">	</waypoint>
	<!-- # 43 --><waypoint x="2077" z="6500" y="1">	</waypoint>
	<!-- # 44 --><waypoint x="2118" z="6423" y="16">	</waypoint>
	<!-- # 45 --><waypoint x="2139" z="6363" y="38">	</waypoint>
	<!-- # 46 --><waypoint x="2144" z="6316" y="43">player:harvest();</waypoint>
	<!-- # 47 --><waypoint x="2143" z="6256" y="44">player:harvest();</waypoint>
	<!-- # 48 --><waypoint x="2057" z="6119" y="-1">	</waypoint>
	<!-- # 49 --><waypoint x="1987" z="6008" y="-19">	</waypoint>
	<!-- # 50 --><waypoint x="1882" z="5977" y="-36">	</waypoint>
	<!-- # 51 --><waypoint x="1829" z="5962" y="-32">	</waypoint>
	<!-- # 52 --><waypoint x="1787" z="5964" y="-32">	</waypoint>
	<!-- # 53 --><waypoint x="1734" z="5959" y="-26">	</waypoint>
</waypoints>

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

Re: Confused:O

#8 Post by lisa » Wed Nov 02, 2011 11:09 pm

if (inventory:getItemCount(0) > 5)

the itemcount(0) checks for empty spaces, so with this code you are checking if you have more then 5 empty spaces. So if your bags are full then it won't do the code.

try

Code: Select all

if (5 > inventory:getItemCount(0))
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

Shef
Posts: 8
Joined: Sat Oct 22, 2011 4:31 pm

Re: Confused:O

#9 Post by Shef » Thu Nov 03, 2011 4:37 pm

yeah this gives me a global error" nil value"


Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-2833" z="9285" y="-36">if (5 > inventory:getItemCount(0))
                                                             then loadpaths("priestsellottade");
                                                          end
                        </waypoint>
	<!-- #  2 --><waypoint x="-2918" z="9353" y="-35">	</waypoint>
	<!-- #  3 --><waypoint x="-3092" z="9451" y="3">	</waypoint>
	<!-- #  4 --><waypoint x="-3236" z="9578" y="26">	</waypoint>
	<!-- #  5 --><waypoint x="-3344" z="9618" y="57">	</waypoint>
	<!-- #  6 --><waypoint x="-3472" z="9648" y="41">	</waypoint>
	<!-- #  7 --><waypoint x="-3615" z="9739" y="15">	</waypoint>
	<!-- #  8 --><waypoint x="-3699" z="9744" y="32">	</waypoint>
	<!-- #  9 --><waypoint x="-3880" z="9729" y="0">	</waypoint>
	<!-- # 10 --><waypoint x="-4016" z="9665" y="-26">	</waypoint>
	<!-- # 11 --><waypoint x="-4093" z="9580" y="-30">	</waypoint>
	<!-- # 12 --><waypoint x="-4188" z="9474" y="-28">	</waypoint>
	<!-- # 13 --><waypoint x="-4190" z="9391" y="-20">	</waypoint>
	<!-- # 14 --><waypoint x="-4138" z="9359" y="-4">	</waypoint>
	<!-- # 15 --><waypoint x="-4003" z="9314" y="8">	</waypoint>
	<!-- # 16 --><waypoint x="-3986" z="9222" y="23">	</waypoint>
	<!-- # 17 --><waypoint x="-3966" z="9136" y="28">	</waypoint>
	<!-- # 18 --><waypoint x="-3883" z="9068" y="6">	</waypoint>
	<!-- # 19 --><waypoint x="-3803" z="8961" y="5">	</waypoint>
	<!-- # 20 --><waypoint x="-3688" z="8903" y="13">	</waypoint>
	<!-- # 21 --><waypoint x="-3621" z="8787" y="42">	</waypoint>
	<!-- # 22 --><waypoint x="-3583" z="8671" y="50">	</waypoint>
	<!-- # 23 --><waypoint x="-3521" z="8549" y="74">	</waypoint>
	<!-- # 24 --><waypoint x="-3438" z="8473" y="66">	</waypoint>
	<!-- # 25 --><waypoint x="-3319" z="8376" y="23">	</waypoint>
	<!-- # 26 --><waypoint x="-3250" z="8342" y="17">	</waypoint>
	<!-- # 27 --><waypoint x="-3190" z="8384" y="22">	</waypoint>
	<!-- # 28 --><waypoint x="-3180" z="8480" y="38">	</waypoint>
	<!-- # 29 --><waypoint x="-3186" z="8600" y="60">	</waypoint>
	<!-- # 30 --><waypoint x="-3189" z="8697" y="52">	</waypoint>
	<!-- # 31 --><waypoint x="-3112" z="8776" y="25">if (5 > inventory:getItemCount(0))
                                                            then loadpaths("priestsellottade");
                                                         end
                 	</waypoint>
	<!-- # 32 --><waypoint x="-3030" z="8803" y="18">	</waypoint>
	<!-- # 33 --><waypoint x="-2813" z="8908" y="1">	</waypoint>
	<!-- # 34 --><waypoint x="-2728" z="9001" y="-4">	</waypoint>
	<!-- # 35 --><waypoint x="-2715" z="9105" y="-23">	</waypoint>
	<!-- # 36 --><waypoint x="-2757" z="9229" y="-36">	</waypoint>
	<!-- # 37 --><waypoint x="-2828" z="9286" y="-36">	</waypoint>
</waypoints>

i thought doing it this way would check bagspace twice during farm loop and load a vendor run if less than 5 slots where empty



"BANGS HEAD AGAINST WALL" :oops:

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

Re: Confused:O

#10 Post by lisa » Thu Nov 03, 2011 9:12 pm

the code looks fine to me, so time to do some troubleshooting to narrow down the issue.

start up commandline
rom/bot path:commandline
and at the prompt type

Code: Select all

print(inventory:getItemCount(0))
and see what it prints to the MM window, it should tell you how many empty slots you have in your bags.

If it does print the correct number then try this, not sure if it will work from commandline

Code: Select all

loadPaths("priestsellottade")
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: Confused:O

#11 Post by rock5 » Thu Nov 03, 2011 11:29 pm

Isn't it supposed to be "loadPaths"?
  • 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: Confused:O

#12 Post by lisa » Thu Nov 03, 2011 11:35 pm

capitals always get me but yes it is loadPaths() 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: No registered users and 59 guests