Memento farming - concept - Dalanis Dungeon

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#141 Post by Pmaia » Fri Oct 07, 2011 7:51 pm

i gess this is the perfect bot for dod mementos farming
its still in testing mode buf have 4 check ids for any stuck at portal and any stuck on load cast
i dont have added the selling option couse i think its will be prety easy to make it sell anything

Code: Select all

<!-- #  1 --><waypoint x="1644" z="-4921" y="752">	</waypoint>
	<!-- #  2 --><waypoint x="1670" z="-5077" y="760" tag="In">
 	if RoMScript("GetZoneID()") == 128 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
   	end </waypoint>
	
	<!-- #  3 --><waypoint x="1688" z="-5162" y="759" > 
	 waitForLoadingScreen(20);
   	if RoMScript("GetZoneID()") == 209 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("In"))
   	else
      	player:update();
	end
      	</waypoint>
	
	
	<!-- #  4 --><waypoint x="1886" z="2881" y="433" tag="continue">	</waypoint>
	<!-- #  5 --><waypoint x="2044" z="2698" y="433">	</waypoint>
	<!-- #  6 --><waypoint x="2177" z="2540" y="407">	bossbuff()	</waypoint>
	<!-- #  7 --><waypoint x="2228" z="2466" y="401">	</waypoint>
	<!-- # 8 --><waypoint x="2188" z="2524" y="401">	</waypoint>
	<!-- # 9 --><waypoint x="2120" z="2607" y="432"> 	</waypoint>
	<!-- # 10 --><waypoint x="1894" z="2874" y="433">	</waypoint>
	<!-- # 11 --><waypoint x="1774" z="2883" y="433" tag="Out"> 
	if RoMScript("GetZoneID()") == 209 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("In"))
   	      end </waypoint>
	
	<!-- # 12 --><waypoint x="1696" z="2891" y="445"> 
  	 waitForLoadingScreen(20);
   	if RoMScript("GetZoneID()") == 128 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("Out"))
   	end
      	player:update();
      	yrest(5000)
      	SlashCommand("ILG destroy");
      	yrest(2000)
      	SlashCommand("ILG inv");
      	yrest(1000)
      	SlashCommand("ILG inv");
   	</waypoint>

s018mes
Posts: 79
Joined: Sun Jan 16, 2011 11:14 am

Re: Memento farming - concept - Dalanis Dungeon

#142 Post by s018mes » Sat Oct 08, 2011 1:34 pm

rock5 wrote:I think that means it's trying to sell but the durability of those items is too high. Check the INV_AUTOSELL_NOSELL_DURA value in your profile.
That is not in my profile.

This is:

Code: Select all

<option name="HEALING_POTION" value="99" />
		<option name="MANA_POTION" value="99" />
		<option name="ARROW_QUIVER" value="0" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
		<option name="INV_AUTOSELL_ENABLE"	value="true" />
		<option name="INV_AUTOSELL_FROMSLOT"		value="50" />
		<option name="INV_AUTOSELL_TOSLOT"		value="60" />
		<option name="INV_AUTOSELL_QUALITY"		value="white,green,purple" />
		<option name="INV_AUTOSELL_TYPES"		value="Weapons,Armor,Recipes,Others" />	
		<!-- <option name="INV_AUTOSELL_IGNORE"		value="Pfeil,Elementar, III" /> -->
		<!-- <option name="INV_AUTOSELL_TYPES_NOSELL"	value="Cloth,Cooking" /> -->

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

Re: Memento farming - concept - Dalanis Dungeon

#143 Post by rock5 » Sat Oct 08, 2011 10:54 pm

Ok, had a closer look. Those debug messages are because it couldn't find the correct name for "Durability" for your language. I see by the item names that you are using an English client. 'ENEU' and 'ENUS' are supported. Maybe you are using a different English locality.

It shouldn't be stopping the items being sold though. So there is something else stopping them from selling.

The merchant might not have been working before the most recent revision. Have you updated to revision 654 yet?
  • 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

s018mes
Posts: 79
Joined: Sun Jan 16, 2011 11:14 am

Re: Memento farming - concept - Dalanis Dungeon

#144 Post by s018mes » Sun Oct 09, 2011 1:16 am

I am using revision 654. Everything seems to be working fine. Is there another way to write:

Code: Select all

       
      local hddura = inventory:getMainHandDurability();
      printf("Durability:%s\n", hddura);
      if( 95 >= hddura ) then
      __WPL:setWaypointIndex(__WPL:findWaypointTag("Repair"));
      end                              
so that it will still sell my stuff? I feel that this code is maybe interfering with my inventory stuff selling. But I have no clue.

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

Re: Memento farming - concept - Dalanis Dungeon

#145 Post by rock5 » Sun Oct 09, 2011 1:55 am

That code is just to make it head towards the merchant. If it is going to the merchant when it's supposed to then it's working properly.

All selling and buying is done with one command

Code: Select all

player:merchant("npc name")
If the character goes to the npc and the store opens then there is no problem with the waypoint file. If it's not selling what you want then the problem is with your profile or a bug in the bots logic or functionallity.

So I ask again, have you updated to the latest revision of the bot?

And have you copied the 'ingamefunctions' folder from the 'rom/devtools' foler into the games 'interface/addons' folder?

Do you have 'Extra Action Bars' installed? If you do, uninstall it.

Then totally restart the game and see if it works.
  • 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

s018mes
Posts: 79
Joined: Sun Jan 16, 2011 11:14 am

Re: Memento farming - concept - Dalanis Dungeon

#146 Post by s018mes » Sun Oct 09, 2011 9:13 am

rock5 wrote:That code is just to make it head towards the merchant. If it is going to the merchant when it's supposed to then it's working properly.

So I ask again, have you updated to the latest revision of the bot?
Yes. Revision 654
rock5 wrote:And have you copied the 'ingamefunctions' folder from the 'rom/devtools' foler into the games 'interface/addons' folder?
Yes. Revision 650 Ingamefunctions. Completely deleted old version and put in the new on in the rom/interface/addons folder.
rock5 wrote:Do you have 'Extra Action Bars' installed?
No. In Fact, Removed every addon except:1. AutoInstanceDifficulty, 2. Madmen, 3. ingamefunctions

And yes, restarted game after making changes.

Still same Debug messages:

Code: Select all

We try to find NPC Isaac Haden:
We successfully target NPC Isaac Haden and try to open the dialog window.
[DEBUG] Check item so sell: 90 520221 Shell I
[DEBUG] Check item so sell: 91 226053 Fading Barrier
[DEBUG] Durability check, search for: Durability => 95
[DEBUG] Check item so sell: 92 204890 Elemental Spirit Stone
[DEBUG] Check item so sell: 93 201060 Refined Crystal Mana Medicine
[DEBUG] Check item so sell: 94 226053 Fading Barrier
[DEBUG] Durability check, search for: Durability => 86
[DEBUG] Check item so sell: 95 520082 Vitality II
[DEBUG] Check item so sell: 96 226051 Soul Corpse Gloves
Just to let you know 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="95" />
		<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="85" />
		<option name="MP_REST" value="85" />

		<!-- 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" />
		<option name="ARROW_QUIVER" value="0" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
		<option name="INV_AUTOSELL_ENABLE"	value="true" />
		<option name="INV_AUTOSELL_FROMSLOT"		value="30" />
		<option name="INV_AUTOSELL_TOSLOT"		value="60" />
		<option name="INV_AUTOSELL_QUALITY"		value="white,green,blue,purple" />
		<option name="INV_AUTOSELL_TYPES"		value="Weapons,Armor,Recipes,Others" />	
		<option name="DEBUG_AUTOSELL"  value="true" />

		<!-- <option name="INV_AUTOSELL_IGNORE"		value="Pfeil,Elementar, III" /> -->
		<!-- <option name="INV_AUTOSELL_TYPES_NOSELL"	value="Cloth,Cooking" /> -->

		<!-- 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="225" />
		<option name="MAX_FIGHT_TIME"     value="60" />	<!-- 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="60" />

		<!-- 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="true" />
		<option name="LOOT_DISTANCE"      value="250" />
		<option name="LOOT_PAUSE_AFTER"   value="10" />		<!-- probability in % for a short rest -->


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

		<option name="PARTY"			value="true" />
		<option name="PARTY_ICONS"		value="true" />
		<option name="PARTY_INSTANCE"		value="true" />


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

	</options>



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


	<skills_mage>
	    <!--<skill name="PRIEST_HOLY_AURA"        modifier="" hotkey="MACRO" priority="100" inbattle="true" hpper="30" />-->		
		<skill name="PRIEST_REGENERATE"       modifier="" hotkey="VK_5" priority="90" inbattle="true" hpper="90" />
		<skill name="PRIEST_URGENT_HEAL"      modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="90"   /> 		
		<skill name="MAGE_FLAME"              modifier="" hotkey="VK_3" priority="80" />
		<skill name="MAGE_FIREBALL"           modifier="" hotkey="VK_7" priority="60" />
		<skill name="MAGE_ESSENCE_OF_MAGIC"   modifier="" hotkey="VK_9" priority="80" inbattle="false"  />
		<skill name="MAGE_ENERGY_INFLUX"      modifier="" hotkey="VK_8" priority="80" />
	    <!--<skill name="MAGE_PURGATORY_FIRE"     modifier="" hotkey="VK_6" priority="60" />-->
	    <!--<skill name="MAGE_INTENSIFICATION"    modifier="" hotkey="VK_7" priority="60" autouse="false" />-->
		<skill name="MAGE_ELEMENTAL_CATALYST" modifier="" hotkey="VK_2" priority="60" autouse="false" />
            <!--<skill name="PRIEST_MAGIC_BARRIER"    modifier="" hotkey="MACRO" priority="60" />-->
	    <skill name="MAGE_MAGIC_DRAIN"        modifier="" hotkey="MACRO" priority="60" autouse="false" />
	</skills_mage>


	<onSkillCast><![CDATA[
   local objectList = CObjectList();
   objectList:update();
   local objSize = objectList:size()
   for i = 0,objSize do
      obj = objectList:getObject(i);
      if obj.Id == 103857 or obj.Id == 103169 then
      if sendMacro("madman.Time") >= 1 then
         player:clearTarget();
         printf("Running\n")
         yrest(4000)
      end
end
   end
   ]]></onSkillCast>

</profile>

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

Re: Memento farming - concept - Dalanis Dungeon

#147 Post by rock5 » Sun Oct 09, 2011 10:29 am

Ok I see something. Your using more than one language.

Code: Select all

<option name="INV_AUTOSELL_TYPES" value="Weapons,Armor,Recipes,Others" />
This should be in the language of your client. Look in the "itemtypestable.lua" file to see what values you can use. It is in the "rom/cache" folder.

I really should add more debugging to the autosell options.
  • 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

s018mes
Posts: 79
Joined: Sun Jan 16, 2011 11:14 am

Re: Memento farming - concept - Dalanis Dungeon

#148 Post by s018mes » Sun Oct 09, 2011 10:39 am

rock5 wrote:Ok I see something. Your using more than one language.

Code: Select all

<option name="INV_AUTOSELL_TYPES" value="Weapons,Armor,Recipes,Others" />
This should be in the language of your client. Look in the "itemtypestable.lua" file to see what values you can use. It is in the "rom/cache" folder.

I really should add more debugging to the autosell options.
I don't really understand what you are asking me to do. I have opened the itemtypestable.lua and the values of Weapons and Armor are 'spelled' the same as in my profile. Did you want me to check if they were spelled the same?

my itemtypestable.lua is listed below:

Code: Select all

itemtypes = {
	[1] = { Name = "Armor",
		[1] = { Name = "Chain",
			[1] = { Name = "Upper Body Chain" },
			[2] = { Name = "Belts Chain" },
			[3] = { Name = "Lower Body Chain" },
			[4] = { Name = "Hands Chain" },
			[5] = { Name = "Feet Chain" },
			[6] = { Name = "Capes Chain" },
			[7] = { Name = "Shoulders Chain" },
			[0] = { Name = "Head Chain" },
		},
		[2] = { Name = "Leather",
			[1] = { Name = "Upper Body Leather" },
			[2] = { Name = "Belts Leather" },
			[3] = { Name = "Lower Body Leather" },
			[4] = { Name = "Hands Leather" },
			[5] = { Name = "Feet Leather" },
			[6] = { Name = "Capes Leather" },
			[7] = { Name = "Shoulders Leather" },
			[0] = { Name = "Head Leather" },
		},
		[3] = { Name = "Cloth",
			[1] = { Name = "Upper Body Cloth" },
			[2] = { Name = "Belts Cloth" },
			[3] = { Name = "Lower Body Cloth" },
			[4] = { Name = "Hands Cloth" },
			[5] = { Name = "Feet Cloth" },
			[6] = { Name = "Capes Cloth" },
			[7] = { Name = "Shoulders Cloth" },
			[0] = { Name = "Head Cloth" },
		},
		[4] = { Name = "Accessories",
			[1] = { Name = "Rings" },
			[2] = { Name = "Necklace" },
			[0] = { Name = "Earrings" },
		},
		[5] = { Name = "Off-hand",
			[1] = { Name = "Talismans" },
			[0] = { Name = "Shields" },
		},
		[6] = { Name = "Amulets" },
		[7] = { Name = "Back" },
		[0] = { Name = "Plate",
			[1] = { Name = "Upper Body Plate" },
			[2] = { Name = "Belts Plate" },
			[3] = { Name = "Lower Body Plate" },
			[4] = { Name = "Hands Plate" },
			[5] = { Name = "Feet Plate" },
			[6] = { Name = "Capes Plate" },
			[7] = { Name = "Shoulders Plate" },
			[0] = { Name = "Head Plate" },
		},
	},
	[2] = { Name = "Supplies",
		[1] = { Name = "Desserts" },
		[2] = { Name = "Potions" },
		[0] = { Name = "Foods" },
	},
	[3] = { Name = "Materials",
		[1] = { Name = "Wood" },
		[2] = { Name = "Herbs" },
		[3] = { Name = "Raw Materials" },
		[4] = { Name = "Production Runes" },
		[5] = { Name = "Prepared Materials" },
		[0] = { Name = "Ores" },
	},
	[4] = { Name = "Recipes",
		[1] = { Name = "Carpentry" },
		[2] = { Name = "Armor Crafting" },
		[3] = { Name = "Tailoring" },
		[4] = { Name = "Alchemy" },
		[5] = { Name = "Cooking" },
		[0] = { Name = "Blacksmithing" },
	},
	[5] = { Name = "Equipment Enhancement",
		[1] = { Name = "Runes" },
		[2] = { Name = "Fusion Stones" },
		[0] = { Name = "Refining Gems" },
	},
	[6] = { Name = "Monster Cards" },
	[7] = { Name = "Mounts" },
	[8] = { Name = "Household",
		[1] = { Name = "Furniture" },
		[2] = { Name = "Knowledge Books" },
		[0] = { Name = "House Contracts" },
	},
	[9] = { Name = "Special Items" },
	[10] = { Name = "Quest Items" },
	[11] = { Name = "Others" },
	[12] = { Name = "Money",
		[1] = { Name = "Diamonds" },
		[0] = { Name = "Gold" },
	},
	[0] = { Name = "Weapons",
		[1] = { Name = "Axes",
			[1] = { Name = "2-Handed Axes" },
			[0] = { Name = "1-Handed Axes" },
		},
		[2] = { Name = "Hammers",
			[1] = { Name = "2-Handed Hammers" },
			[0] = { Name = "1-Handed Hammers" },
		},
		[3] = { Name = "Daggers" },
		[4] = { Name = "Staves",
			[1] = { Name = "2-Handed Staves" },
			[0] = { Name = "1-Handed Staves" },
		},
		[5] = { Name = "Ranged Weapons",
			[1] = { Name = "Crossbows" },
			[2] = { Name = "Arrows" },
			[0] = { Name = "Bows" },
		},
		[6] = { Name = "Projectiles" },
		[0] = { Name = "Swords",
			[1] = { Name = "2-Handed Swords" },
			[0] = { Name = "1-Handed Swords" },
		},
	},
}
itemtypes_language = "EN"
Using more than one language?
I have chosen USA and English which is Listed as: enus 4.0.3.2438.en in my client config.
Does maybe the itemtypes_language = need to be lowercase: "en" ?

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

Re: Memento farming - concept - Dalanis Dungeon

#149 Post by rock5 » Sun Oct 09, 2011 11:17 am

Sorry, that other part was commented out.

I'm out of ideas.

Try following Lisas directions.
http://www.solarstrike.net/phpBB3/viewt ... 787#p27787
  • 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

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#150 Post by Pmaia » Mon Oct 10, 2011 6:09 pm

well guyz i have a quest to optimize the dod farming and my quest is:
i have a char doing it on easy at solo and works prety good
but now i want to make a party with other char to go inside de dod to kill the boss on normal mode so my quest is

wat is the most currect code to verify were the char is and wen both can atack the boss
wen both can leave pt etcc
i need to put a check id for a expecifik player and make a condicion to check if it is closer to me and if it is . kill boss leave pt and enter the dod

i hope u all understand wat im asking
thanks for the help
cumpz

User avatar
grande
Posts: 261
Joined: Tue Jun 28, 2011 4:46 pm

Re: Memento farming - concept - Dalanis Dungeon

#151 Post by grande » Wed Oct 12, 2011 5:52 pm

Yes, if you look back on the first page you can see one of they guys runs a certain check buff to see if the priest has given a buff and when it has given the buff the main dps will attack and the priest will also go back about its business.

It's the post by "ezgitaran". For me it's near the bottom of the page and he gives a very good explanation of how to make it work for both characters.

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#152 Post by Pmaia » Thu Oct 13, 2011 7:06 pm

ok already checked the code from ezgitarian
need to c it with more time and make it work for a mage and a scout
couse the code its too long and complex for wat im locking for but could work good
must try it before post news
and thanks 4 the help

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#153 Post by Pmaia » Fri Oct 14, 2011 7:01 pm

hello one more time
i have a weard quest to fix on my dod bot
well the problem its this i want my character uses urgent heal at boss
and it ok it uses withouth problem
but the problem is wen he dies at the waypoint selected to targ monster and use urgent hel if hp lower than 60%
it stucks the bot trying to cast the urgent heal and say cast fail infinite times unstead of ressurrect and keep botting

some code its missing at the waypoint to verify the condicion of character if is dead or alive and if it need to use urgent heal or its too late for using it
ahh i have all good at my profile ress after dead =true

Code: Select all

<!-- # 8 --><waypoint x="2188" z="2524" y="401"> 
 if player.Class1 == 5 or player.Class2 == 5 then -- priest
			while (60 > player.HP/player.MaxHP*100) do
  	 			player:cast("PRIEST_URGENT_HEAL");
   					yrest(2300);
						end
						end

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

Re: Memento farming - concept - Dalanis Dungeon

#154 Post by lisa » Fri Oct 14, 2011 9:16 pm

Code: Select all

  while (60 > player.HP/player.MaxHP*100) 
 and  ( player.HP/player.MaxHP*100 > 10) do
trouble is you arn't checking if dead, 0% hp is still less then 60%
Make sure you have PRIEST_HOLY_AURA higher priority then urgent heal, otherwise it will still use urgeant heal redargless of the hp set in your PRIEST_HOLY_AURA.
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

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#155 Post by Pmaia » Sun Oct 16, 2011 9:19 am

im having problems with my code to dod
weel the code its this

Code: Select all

	<!-- #  1 --><waypoint x="1644" z="-4921" y="752">	</waypoint>
	<!-- #  2 --><waypoint x="1670" z="-5077" y="760" tag="In">
 	if RoMScript("GetZoneID()") == 128 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
	end
	if RoMScript("GetZoneID()") == 209 then
	 __WPL:setWaypointIndex(__WPL:findWaypointTag("go"))
   	end 
	</waypoint>
	
	<!-- #  3 --><waypoint x="1688" z="-5162" y="759"  tag="go">
	 waitForLoadingScreen(20);
   	if RoMScript("GetZoneID()") == 209 then
     	 __WPL:setWaypointIndex(__WPL:findWaypointTag("In"))
	end
   	if RoMScript("GetZoneID()") == 128 then
	 __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
	end
	</waypoint>
	
	
	<!-- #  4 --><waypoint x="1886" z="2881" y="433" tag="continue">	</waypoint>
	<!-- #  5 --><waypoint x="2044" z="2698" y="433">	</waypoint>
	<!-- #  6 --><waypoint x="2177" z="2540" y="407">	bossbuff() </waypoint>
	<!-- #  7 --><waypoint x="2228" z="2466" y="401"> 
		if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (60 > player.HP/player.MaxHP*100)
		and  ( player.HP/player.MaxHP*100 > 10) do
  	 	player:cast("PRIEST_URGENT_HEAL");
   		yrest(2300);
		end
		end		
		</waypoint>
	<!-- # 8 --><waypoint x="2188" z="2524" y="401"> 
		yrest(3000) 
		if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (60 > player.HP/player.MaxHP*100)
		and  ( player.HP/player.MaxHP*100 > 10) do
  	 	player:cast("PRIEST_URGENT_HEAL");
   		yrest(2300);
		end
		end		
		</waypoint>
	<!-- # 9 --><waypoint x="2120" z="2607" y="432"> 	</waypoint>
	<!-- # 10 --><waypoint x="1894" z="2874" y="433">	</waypoint>
	<!-- # 11 --><waypoint x="1774" z="2883" y="433" tag="Out"> 
		if RoMScript("GetZoneID()") == 209 then
     	 	__WPL:setWaypointIndex(__WPL:findWaypointTag("In"))
		end
   	      	if RoMScript("GetZoneID()") == 128 then
     	 	__WPL:setWaypointIndex(__WPL:findWaypointTag("goon"))
		end
		</waypoint>
	<!-- # 12 --><waypoint x="1696" z="2891" y="445" tag="goon"> 
  		 waitForLoadingScreen(10);
   		if RoMScript("GetZoneID()") == 128 then
     	 	__WPL:setWaypointIndex(__WPL:findWaypointTag("Out"))
		end
		if RoMScript("GetZoneID()") == 209 then
		player:update();
      		yrest(5000)
      		SlashCommand("ILG destroy");
      		yrest(2000)
      		SlashCommand("ILG inv");
      		yrest(1000)
      		SlashCommand("ILG inv");
		end
		if inventory:itemTotalCount(0) ~= 0 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("In"));
		end
		 if inventory:itemTotalCount(0) == 0 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("In"));
		end
	</waypoint>
	
	
	<!-- #  Ress -->
   <!-- # 13 --><waypoint x="-3813" z="5117" type="TRAVEL"> player:mount();   </waypoint>
   <!-- # 14 --><waypoint x="-3908" z="5087" type="TRAVEL">   </waypoint>
   <!-- # 15 --><waypoint x="-4026" z="5142" type="TRAVEL">    yrest(1000);  </waypoint>
   <!-- # 16 --><waypoint x="-4087" z="5317" type="TRAVEL">   </waypoint>
   <!-- # 17 --><waypoint x="-4144" z="5505" type="TRAVEL">   </waypoint>
   <!-- # 18 --><waypoint x="-4162" z="5730" type="TRAVEL">   </waypoint>
   <!-- # 19 --><waypoint x="-4127" z="5844" type="TRAVEL">   </waypoint>
   <!-- # 20 --><waypoint x="-4080" z="5984" type="TRAVEL">   </waypoint>
   <!-- # 21 --><waypoint x="-3964" z="6055" type="TRAVEL">   </waypoint>
   <!-- # 22 --><waypoint x="-3821" z="6050" type="TRAVEL">   </waypoint>
   <!-- # 23 --><waypoint x="-3624" z="6144" type="TRAVEL">   </waypoint>
   <!-- # 24 --><waypoint x="-3433" z="6213" type="TRAVEL">   </waypoint>
   <!-- # 25 --><waypoint x="-3355" z="6245" type="TRAVEL">   </waypoint>
   <!-- # 26 --><waypoint x="-3257" z="6319" type="TRAVEL">   </waypoint>
   <!-- # 27 --><waypoint x="-3172" z="6449" type="TRAVEL">   </waypoint>
   <!-- # 28 --><waypoint x="-3133" z="6538" type="TRAVEL">   </waypoint>
   <!-- # 29 --><waypoint x="-3072" z="6632" type="TRAVEL">   </waypoint>
   <!-- # 30 --><waypoint x="-2988" z="6700" type="TRAVEL">   </waypoint>
   <!-- # 31 --><waypoint x="-2908" z="6800" type="TRAVEL">   </waypoint>
   <!-- # 32 --><waypoint x="-2821" z="6983" type="TRAVEL">   </waypoint>
   <!-- # 33 --><waypoint x="-2849" z="7092" type="TRAVEL">   player:target_Object(100943,5000); </waypoint>
   <!-- # 34 --><waypoint x="-2923" z="7215" type="TRAVEL">   player:target_Object(100943,5000);    yrest(1000) </waypoint>
   <!-- # 35 --><waypoint x="-2979" z="7233" type="TRAVEL">   yrest(5000)   </waypoint>
   <!-- # 36 --><waypoint x="78" z="-858" type="TRAVEL">   </waypoint>
   <!-- # 37 --><waypoint x="40" z="-880" type="TRAVEL">  
      player:target_NPC("Jake Wallanda");
yrest(2000);
sendMacro("ChoiceOption(1);");
yrest(5000);
   </waypoint>
	<!-- #  38 --><waypoint x="1646" z="-4838" y="752">  	</waypoint>
	<!-- #  39 --><waypoint x="1648" z="-4775" y="752">	</waypoint>
	<!-- #  40 --><waypoint x="1709" z="-4759" y="752">		
		player:merchant("Isaac Haden");
			</waypoint>
	<!-- # 41 --><waypoint x="1676" z="-4872" y="752"> 
	__WPL:setWaypointIndex(__WPL:findWaypointTag("In"))
	 </waypoint>
wat hapens its the bot many times wen trying runing from waypoint 11 to 12 and 12 to 1 again it chases couse loads at waypoint 11 the waypoint tag"IN" inside dungeon so it runing to the wals and 5minutes later it come closes to the portal and its teleported to the respawn
and wen it happens it chashes and teel me the Attack skils was not at one of twelve action bars slots
i have my action Attack at hotckey 0
at profile the division for the skils i put this

Code: Select all

	<skills_mage>
		<skill name="MAGE_FLAME"  hotkey="VK_1" priority="120"  />
		<skill name="MAGE_FIREBALL"         hotkey="VK_2" priority="110" />
		<skill name="MAGE_PLASMA_ARROW"      hotkey="VK_3" priority="60" />
		<skill name="MAGE_ELEMENTAL_WEAKNESS"      hotkey="VK_7"  priority="10" autouse="false" />
		<skill name="MAGE_INTENSIFICATION"      hotkey="VK_9"  priority="10" autouse="false" />
		<skill name="MAGE_MAGIC_DRAIN"      hotkey="VK_4"  priority="10" autouse="false" />
		<skill name="MAGE_ELEMENTAL_CATALYST"      hotkey="VK_8"  priority="10" autouse="false" />
		<skill name="PRIEST_URGENT_HEAL"   modifier="" hotkey="VK_6" priority="100" inbattle="true" autouse="false"  />
		<skill name="ATTACK"  hotkey="VK_0" priority="120"  />
		
	</skills_mage>
so wat i think its the bot its not reading good the codes at waypoint 11 an 12
and i think its not detecting wat id zone it is other way that could work good.

another thing i put that code

Code: Select all

if inventory:itemTotalCount(0) ~= 0 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("In"));
		end
		 if inventory:itemTotalCount(0) == 0 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("In"));
		end
couse i just want it continues all the times kiling bosses and just wen he dies continues to the waypoint 13.
the code loock to confused ut i tryed to use the condicions ELSE IF /AND
but MM says the code its not well formed

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

Re: Memento farming - concept - Dalanis Dungeon

#156 Post by lisa » Sun Oct 16, 2011 9:43 am

not sure where to start. Ok
instead of

Code: Select all

  if RoMScript("GetZoneID()") == 128 then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
   end
   if RoMScript("GetZoneID()") == 209 then
    __WPL:setWaypointIndex(__WPL:findWaypointTag("go"))
      end 

we can assume if you arn't in 128 then you are in 209 and vice versa. So no need to check for both zone ID's

Code: Select all

  if RoMScript("GetZoneID()") == 128 then
         __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
   else
    __WPL:setWaypointIndex(__WPL:findWaypointTag("go"))
    end 

If game crashes then bot will get some sort of error, in this case it was just the attack skill. Another time it will say it had issues reading memory.
Fact is the game crashed not the bot.

If you have issues getting your character through the portal to leave the instance then you need to work on that. Try adjusting your coords slightly and see if it helps.

If walking into the portal is really that difficult, try using fly and make urself not walking along floor but flying a little higher with greater chance to actually enter the portal.
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

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#157 Post by Pmaia » Sun Oct 16, 2011 2:41 pm

theres any code to repeat the waypoints i want until the character dont die?
like run at waypoint 12 and only wen pj dies uses the other waypoints
like a return waypoint
how do i do a return waypoint?theres any instruction how to do it

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#158 Post by Pmaia » Thu Oct 20, 2011 2:44 pm

i already learn use waypoints return
and bot works fine without get stuck or stoped
but now i have problems at runes games itself so i never more can finish the day of boting without getting dc:\
but this is not problem for post here
just want to say the bot works fine with returnpath

Pmaia
Posts: 70
Joined: Wed Jun 22, 2011 8:17 pm

Re: Memento farming - concept - Dalanis Dungeon

#159 Post by Pmaia » Fri Oct 21, 2011 2:08 pm

i got this newest error never get it before and i dont make any changes at my profile options!
Attachments
error at dod.png

s018mes
Posts: 79
Joined: Sun Jan 16, 2011 11:14 am

Re: Memento farming - concept - Dalanis Dungeon

#160 Post by s018mes » Sat Oct 29, 2011 11:35 am

I have a new problem. When the "crush" event occurs and Madmen jumps in the air, when he is on the stairs, my character starts to run away and then turns around and runs toward Madmen, and then by that time madmen lands on me and kills me.

Any thoughts?

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests