Official home of Madman Addon

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

Official home of Madman Addon

#1 Post by lisa » Mon Oct 08, 2012 9:50 pm

Ok so a lot of people have been posting and asking about this addon so I decided to give it an actual home where people can post their issues.

This Addon is to help with the first boss of the instance DoD, dungeon of dalanis(something like that)

So when Madman Mallen jumps into the air he will randomly choose a player to land on, he lands on the spot that player is when he jumps into the air. So in order to live you need to move away when he jumps into the air.

This Addon will monitor /say for the keywords specified and if it sees those words then it will make the character run forward for 5 seconds.


I will try to answer questions and issues that are posted as a reply to this topic that are actually about the madman addon, please stop sending me PMs.

In your profile add this

Code: Select all

	<onPreSkillCast><![CDATA[
	if getZoneId() == 127 or getZoneId() == 128 then
		target = player:getTarget();
		if target.Id == 103857 or target.Id == 103169  then
		  if RoMScript("madman.Time") >= 1 then 
			 player:clearTarget();
			 printf("Running\n")
			 yrest(4000)
		  end
		end
	end
	]]></onPreSkillCast>
Just like any other "Addon" you need to Unzip the files to the folder
Runes of Magic/Interface/AddOns

So that for example the file madman.lua is located like this

Runes of Magic/Interface/AddOns/madman/madman.lua
madman.zip
Unzip it to your Addon folder.
(24.74 KiB) Downloaded 290 times

Ok let the issue posts begin, BTW it works flawlessly for me.


--=== Note for other languages ===--

If your client uses a language other then English you can click the little eye icon which should be near the minimap, a window will pop up and in the text box you can change the writing to your language client to be what Madman Mallen says when he jumps.
The text it look for in english is
crush you

There is also a tick option to turn off the addon on this window aswell.

The Addon works regardless of if bot is running or not, it is independant, so keep that in mind when playing normally. You can always tick the addon on or off as required.
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

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Official home of Madman Addon

#2 Post by Cindy » Mon Oct 08, 2012 11:09 pm

At the risk of sounding dense.. what exactly does it do?

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

Re: Official home of Madman Addon

#3 Post by lisa » Mon Oct 08, 2012 11:27 pm

In the DoD instance the first boss does a jump in the air, when he lands he will pretty much kill you regardless of your gear, if extremely well geared you might survive.

So the addon monitors the /say chat for the words specified and if it sees those words then it starts to run forward for a few seconds (7 i think).

That is pretty much it, so if you don't farm DoD then don't use the addon ;)
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: Official home of Madman Addon

#4 Post by rock5 » Mon Oct 08, 2012 11:29 pm

You could add a 1 line description of what the addon does to the first post.
  • 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: Official home of Madman Addon

#5 Post by lisa » Mon Oct 08, 2012 11:51 pm

rock5 wrote:You could add a 1 line description of what the addon does to the first post.
fine
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Official home of Madman Addon

#6 Post by noobbotter » Tue Oct 09, 2012 10:44 am

Hi Lisa. So I posted a question in one of the other topics (Don't remember which one) about my player starts running but turned around and ran back just in time for smushy... I added the onPreSkillCast section to my profile and completely restarted everything athinking that that would fix it, but my character still did the exact same thing. Ran a few seconds forward, turned around and ran back... Smushy. Any ideas of what I need to look for to narrow down the problem? The script never errors or anything. it acts like it meant to do that. Thanks.

Also, thanks for putting this topic up. Hopefully more people will see it and start using it.

User avatar
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: Official home of Madman Addon

#7 Post by nightclaw » Tue Oct 09, 2012 2:01 pm

i have issue i have put code in profile and script and addon in game folder but ever few time he runs he will start run back under him and die i have removed all in game addons see if that was issue nope still does it what to do fix this error it holding me back alot please thax 4 help code gods

here my current scripts and 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="85" />
		<option name="MP_LOW_POTION"		value="50" />
		<option name="HP_LOW_POTION"		value="90" />
		<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="70" />

		<!-- Rest if HP or Mana is below that level -->
		<option name="HP_REST" 				value="50" />
		<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="false" /> 		<!-- only important for melees -->
		<option name="COMBAT_DISTANCE"    	value="55" />			<!-- Distance at which it starts using skills -->
		<option name="COMBAT_STOP_DISTANCE" value="60" />			<!-- Distance at which it stops moving towards the target -->
		<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="60" />
		<option name="PRIORITY_CASTING"		value="false" />		<!-- If you want to cast attack skills by 'priority' or 'sequencially' -->
		<option name="COUNT_AGGRO_ONLY"		value="false" />		<!-- If you want to count only aggro mobs within range of aoe skills  -->

		<!-- Attack monsters 3 levels above or 70 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="300" />
		<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 -->
		<option name="LOOT_SIGILS"			value="" />				<!-- Loot sigils or not. If ommitted, will depend on "LOOT" value -->
		<option name="SIGILS_IGNORE_LIST"	value="" />				<!-- List of any sigils you wish to ignore, in language of client -->

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="true" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="31" /> 			<!-- 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,purple" /> 	<!-- white,green,blue,purple  -->

		<!-- Harvest options -->
		<option name="HARVEST_DISTANCE"		value="300" />
		<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="false" />
		<option name="CLOSE_WHEN_STUCK"		value="false" />
		<option name="RES_AFTER_DEATH" 		value="true" />
		<option name="MAX_DEATHS" 			value="50" /> 			<!-- 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" /> --> 	<!-- For party bot if you want healer to also fight -->

		<!-- pvp -->
		<!--option name="PVP"			value="true" /> --> 		<!-- To enable PVP, with this set to true it will auto attack any players with red names -->

		<!-- 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"          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_rogue>
		<skill name="ROGUE_SHADOWSTAB"    		hotkey="MACRO" priority="90" />
		<skill name="ROGUE_HIDE"    			hotkey="MACRO" priority="80"/>
		<skill name="ROGUE_SHADOW_STEP"			hotkey="MACRO" priority="90" />
	</skills_rogue>


	<skills_champion>
                <skill name="ROGUE_SHADOWSTAB"    		hotkey="MACRO" priority="100" />
	        <skill name="CHAMPION_RUNE_ENERGY_INFLUX"       hotkey="MACRO" priority="90" />
		<skill name="CHAMPION_FORGE" 		  	hotkey="MACRO" priority="100" />
		<skill name="CHAMPION_RUNE_PULSE"   		hotkey="MACRO" priority="110" pullonly="true" />
                <skill name="CHAMPION_KINETIC_BURN"             hotkey="MACRO" priority="70" />
		<skill name="CHAMPION_Shield Form"  		hotkey="MACRO" priority="70" />
		<skill name="ROGUE_SHADOW_STEP"			hotkey="MACRO" priority="90" />
	<skill name="CHAMPION_HEAVY_BASH"		hotkey="MACRO" priority="90" />
	</skills_champion>


	<onLoad><![CDATA[

	]]></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>

    <onPreSkillCast><![CDATA[
   if getZoneId() == 127 or getZoneId() == 128 then
      target = player:getTarget();
      if target.Id == 103857 or target.Id == 103169  then
        if RoMScript("madman.Time") >= 1 then
          player:clearTarget();
          printf("Running\n")
          yrest(7000)
        end
      end
   end
   ]]></onPreSkillCast>

	<onHarvest><![CDATA[
		-- Additional Lua code to execute directly before the actual harvesting takes place.
		-- Note: arg1 contains the object to be harvested.
		-- i.e. arg1.Name will be the name of the node you are about to harvest
		-- If this snippet returns 'false', the node will *not* be harvested.
		-- All other return values result in the player attempting to harvest the node.
		-- Note that returning 'false' here breaks out of harvesting completely;
		-- You will not attempt to harvest other nearby nodes instead.
	]]></onHarvest>

	<onUnstickFailure><![CDATA[
		-- Lua code to execute when MAX_UNSTICK_TRIALS is reached.
	]]></onUnstickFailure>
</profile>

and bot code dod

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
      SlashCommand("ILG on")
 <onPreSkillCast><![CDATA[
   if getZoneId() == 127 or getZoneId() == 128 then
      target = player:getTarget();
      if target.Id == 103857 or target.Id == 103169  then
        if RoMScript("madman.Time") >= 1 then
          player:clearTarget();
          printf("Running\n")
          yrest(7000)
        end
      end
   end
   ]]></onPreSkillCast>
	<!-- #  1 --><waypoint x="1660" z="-4922" y="752">
	SlashCommand("ILG destroy")
	yrest(5000)	
	SlashCommand("ILG inv")
	yrest(5000)
	SlashCommand("aid easy")
	yrest(5000)
	</waypoint>
	<!-- #  2 --><waypoint x="1670" z="-5077" y="760">	</waypoint>
	<!-- #  3 --><waypoint x="1688" z="-5162" y="759">
	waitForLoadingScreen();
	</waypoint>
	<!-- #  5 --><waypoint x="1886" z="2881" y="433">	</waypoint>
	<!-- #  6 --><waypoint x="2044" z="2698" y="433">	</waypoint>
	<!-- #  7 --><waypoint x="2177" z="2540" y="407">	</waypoint>
	<!-- #  9 --><waypoint x="2228" z="2466" y="401">	</waypoint>
        <!-- # 10 --><waypoint x="2331" z="2361" y="401">	</waypoint>
	<!-- # 11 --><waypoint x="2120" z="2607" y="432">	</waypoint>
	<!-- # 12 --><waypoint x="1894" z="2874" y="433">	</waypoint>
	<!-- # 13 --><waypoint x="1774" z="2883" y="433">	</waypoint>
	<!-- # 14 --><waypoint x="1696" z="2891" y="445">		
	waitForLoadingScreen();
	yrest(5000)
	</waypoint>        
	<!-- # 15 --><waypoint x="1704" z="-4756" y="752" tag="merchant">
      player:merchant(115537)
      RoMScript("CloseAllWindows()")
      __WPL:setWaypointIndex(1)
	</waypoint>
<!-- To the Sewers -->
   <!-- #  1 --><waypoint x="-3813" z="5117" y="19" tag="res">
      __WPL:setForcedWaypointType("RUN")
      player:mount()
   </waypoint>
	<!-- #  2 --><waypoint x="-3813" z="5117" y="19">	</waypoint>
	<!-- #  3 --><waypoint x="-3759" z="5182" y="12">	</waypoint>
	<!-- #  4 --><waypoint x="-3711" z="5240" y="13">	</waypoint>
	<!-- #  5 --><waypoint x="-3650" z="5299" y="9">	</waypoint>
	<!-- #  6 --><waypoint x="-3572" z="5365" y="12">	</waypoint>
	<!-- #  7 --><waypoint x="-3461" z="5468" y="1">	</waypoint>
	<!-- #  8 --><waypoint x="-3286" z="5631" y="0">	</waypoint>
	<!-- #  9 --><waypoint x="-3123" z="5809" y="0">	</waypoint>
	<!-- # 10 --><waypoint x="-2865" z="6030" y="25">	</waypoint>
	<!-- # 11 --><waypoint x="-2731" z="6097" y="20">	</waypoint>
	<!-- # 12 --><waypoint x="-2593" z="6166" y="20">	</waypoint>
	<!-- # 13 --><waypoint x="-2513" z="6267" y="32">	</waypoint>
	<!-- # 14 --><waypoint x="-2373" z="6474" y="21">	</waypoint>
	<!-- # 15 --><waypoint x="-2458" z="6531" y="38">	</waypoint>
	<!-- # 16 --><waypoint x="-2596" z="6610" y="59">	</waypoint>
	<!-- # 17 --><waypoint x="-2748" z="6698" y="49">	</waypoint>
	<!-- # 18 --><waypoint x="-2878" z="6783" y="55">	</waypoint>
	<!-- # 19 --><waypoint x="-2879" z="6852" y="53">	</waypoint>
	<!-- # 20 --><waypoint x="-2851" z="7009" y="48">	</waypoint>
	<!-- # 21 --><waypoint x="-2874" z="7152" y="-48">	</waypoint>
	<!-- # 22 --><waypoint x="-2924" z="7225" y="-86">	</waypoint>
	<!-- # 23 --><waypoint x="-2858" z="7241" y="-58">	</waypoint>
	<!-- # 24 --><waypoint x="-2901" z="7241" y="-65">	</waypoint>
	<!-- # 25 --><waypoint x="-2934" z="7242" y="-73">	</waypoint>
	<!-- # 26 --><waypoint x="-2947" z="7242" y="-75">	</waypoint>
	<!-- # 27 --><waypoint x="-2957" z="7242" y="-74">	</waypoint>
	<!-- # 28 --><waypoint x="-2970" z="7243" y="-75">	</waypoint>
	<!-- # 29 --><waypoint x="135" z="-819" y="882">	</waypoint>
	waitForLoadingScreen();
	yrest(5000)
      <!-- # 30 --><waypoint x="43" z="-882" y="857">
      local jake = GetIdName(115572)
      NPCTeleport(jake,"Please transport me.")
      __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X,player.Z,player.Y))
   </waypoint>
     <!-- # 31 --><waypoint x="1704" z="-4756" y="752" tag="merchant">
      player:merchant(115537)
      RoMScript("CloseAllWindows()")
      __WPL:setWaypointIndex(1)
   </waypoint>

</waypoints>

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

Re: Official home of Madman Addon

#8 Post by lisa » Tue Oct 09, 2012 7:35 pm

ok same thing for both of you, can you post what MM says at the time, in that profile code I posted it has a clear target and a print, need to make sure both of those are being done, if not then maybe the mobs ID has changed or maybe the zone id isn't working properly. Can easily add a print to test both of them.

you should be seeing on MM

Code: Select all

Clearing target.
Running
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
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: Official home of Madman Addon

#9 Post by nightclaw » Wed Oct 10, 2012 3:09 am

i take look at it i cant get back on yell thurs or fri i post then or if i get home sooner i post

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Official home of Madman Addon

#10 Post by noobbotter » Wed Oct 10, 2012 10:33 am

Same here. I'm at work now but I'll test it again tonight and see what the MM console shows when it occurs. Thanks.

Sasuke
Posts: 503
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

Re: Official home of Madman Addon

#11 Post by Sasuke » Thu Oct 11, 2012 10:28 am

ok lisa but i have only one problem...player attack mobs in trash but no mallen ,also when him do his skill player stop fighting....loot skipped because of aggro is always the same prhase rombot say me.......

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Official home of Madman Addon

#12 Post by noobbotter » Thu Oct 11, 2012 2:38 pm

Without changing anything, I ran it last night and most of the time it worked. There were a few times though, where he turned around and ran back. To save myself, I quickly hit the "F" key which is my shortcut macro for "Holy Aura" and that saved me. I didn't even think to look to see if the "running" text came up in the MM window. Tonight, I'm going to attempt to modify my <onPreSkillCast> section to where it will cast Holy Aura in the "if RoMScript("madman.Time") >= 1" section. It's an instant skill I can cast while running so it should work to protect my character from the occasional turnaround when running. It has a 2 minute cooldown so I'd just have to ensure the cooldown is just about done when I start my fight with Mallen. Any thoughts on whether this will work or not? Of course, this wouldn't work for a second jump, but I usually get him down before first jump. Only sometimes the bot takes too long and he jumps once.

User avatar
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: Official home of Madman Addon

#13 Post by nightclaw » Thu Oct 11, 2012 5:19 pm

ok this what it saids ( Macro: Using HP potion 28213/45000) then
he jumps and i start run away then it clearing target then i start run back and he lands on me then it saids running
DIed resurrecting player

and some times i have error trying .loot skipped because of aggro... but he not even dead yet fight just start and he wont fight back ;/

i have loot in fight false and no addon are on other then bot and the revite group addon

Bubi
Posts: 57
Joined: Tue May 04, 2010 3:51 pm

Re: Official home of Madman Addon

#14 Post by Bubi » Thu Oct 11, 2012 5:40 pm

Same thing happens with my characters too :lol:
Now I'm doing a Party run, and Mallen is dead before he jumps :mrgreen:

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

Re: Official home of Madman Addon

#15 Post by lisa » Thu Oct 11, 2012 5:48 pm

Sasuke wrote:ok lisa but i have only one problem...player attack mobs in trash but no mallen ,also when him do his skill player stop fighting....loot skipped because of aggro is always the same prhase rombot say me.......
That has nothing to do with this addon.
lisa wrote:I will try to answer questions and issues that are posted as a reply to this topic that are actually about the madman addon,
nightclaw wrote:he jumps and i start run away then it clearing target then i start run back and he lands on me then it saids running
Are you using a melee range character? I suspect the bot might try to move in range of boss before it it tries to use a skill which is when the check for the addon is done. I never used melee chars so I never had that issue, that will take some thought on how to fix.
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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Official home of Madman Addon

#16 Post by lisa » Thu Oct 11, 2012 5:58 pm

ok I thought about it.

remove the code from your profile.

Then in the waypoint file you use add this to your onload section.

Code: Select all

function madman()
	if RoMScript("madman.Time") >= 1 then 
		player:clearTarget();
		printf("Running\n")
		yrest(4000)
	end
end

then in a waypoint BEFORE the boss add this

Code: Select all

registerTimer("Madmantimer", secondsToTimer(1), madman);

then in a waypoint after BOSS is dead add this

Code: Select all

unregisterTimer("Madmantimer");
What this will do is set up a timed check for the addon and you turn it on before boss and turn it off after boss.
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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Official home of Madman Addon

#17 Post by noobbotter » Thu Oct 11, 2012 8:09 pm

I may have found an alternate method. In the madman addon, I disables the lines for move forward and move forward stop. Then in my profile in the onPreSkillCast section, inside the "if RoMScript("madman.Time") >= 1 then" section, I added the following:

Code: Select all

            local madx = nil
				local madz = nil
				if (player.X > 2300) and (player.Z > 2323) then
					-- go to left side
					madx = 2151;
					madz = 2313;
				elseif (player.X > 2300) and (2323 > player.Z) then
					-- go to near entrance:
					madx = 2198;
					madz = 2507;
				elseif (2300 > player.X) and (player.Z > 2323) then
					-- go to far side
					madx = 2407;
					madz = 2120;
				elseif (2300 > player.X) and (2323 > player.Z) then
					-- go to right side
					madx = 2479;
					madz = 2347;
				end
				teleport(madx, madz);
he now teleports to the opposite side of the arena instead of running. I'll continue testing to see if i get any failures.

** edit: as i was typing this, it must have failed because my character was dead when i returned to the game. It does seem to be taking slightly long before teleporting... I'll look into it and try to find the delay.

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

Re: Official home of Madman Addon

#18 Post by lisa » Thu Oct 11, 2012 8:34 pm

noobbotter wrote:It does seem to be taking slightly long before teleporting
Yeah that's why I did the movement in the addon itself, it is instant where as any bot code will be delayed as the bot doesn't constantly update the monitor every millisecond.

If you want to use the teleport then keep the addon as is and it will move you as soon as the boss jumps, in the bot code you can do a stop moving forward and teleport. So kind of like a double check.

Unless you can get the info direct from memory for when he jumps any code by the bot will be delayed.

On the subject of direct from memory the attackible flag for the boss should change when he jumps as you literally can't hit it, or maybe do a height check for it?
Maybe just do some monitoring of the boss to see what changes, would mean some memory prints while fighting it, doesn't need to be botting at the time.

Then maybe we could get direct from memory when he jumps and also the coords of the boss for where he is going to land and just teleport to another location.

Someone else would have to do the work in the trenches as I don't play RoM anymore, I think I have 1 PC with current game version.


If anyone is interested I can come up with some userfunctions to create log files of the mob data and just a matter of making it call the function when boss jumps.
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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: Official home of Madman Addon

#19 Post by noobbotter » Thu Oct 11, 2012 8:42 pm

Well, doing a little more looking into it, this last time that it failed (second run), I looked at the MM window and here's what it showed:

Use 5: PRIEST_ICEWIND_BLADE=> Okander "Mad Man" Mallen (165868/1540233)
Use MACRO: Executing RoMScript "madman.Time".
Use 4: MAGE_FIREBALL => Okander "Mad Man" Mallen (165868/1540233)
Use MACRO: Executing RoMScript "madman.Time".
Use 6: PRIEST_CHAIN_OF_LIGH=> * Failed to cast * <-------*** He jumped here****
Fight finished. Killed 1 Okander "Mad Man" Mallen. (fight #1 / runtime 22500095 minutes)
Clearing target.
Loot skipped because of aggro.
Waiting on aggressive enemies.
Aggro wait time out.
Moving to waypoint #14, (2222, 2490)
Use R: PRIEST_REGENERATE => <UNKNOWN> (1000/1000)
We have aggro. Stop moving to waypoint and wait for target.
Clearing target.
Waiting on aggressive enemies.
Engaging enemy [Okander "Mad Man" Mallen] in combat.
Use 5: PRIEST_ICEWIND_BLADE=> Okander "Mad Man" Mallen (31648/1540233)
Use MACRO: Executing RoMScript "madman.Time".
Use 4: MAGE_FIREBALL => Okander "Mad Man" Mallen (0/1540233)

It never noticed that he jumped. I wonder if that was because I was in the middle of a chain of light spell when he jumped? my spell was about 3/4 the way complete when he jumped. Maybe I'll try the whole thing without using any chain of light spells and see what happens.

**Edit: Nope. It was the casting of chain of light that caused him to miss the jump. With that spell disabled, this time on first run, he didn't see the jump. Will do some more troubleshooting...

**Edit 2: is it possible to do the teleport from within the addon? That's how I tried it the first time but it didn't work.

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

Re: Official home of Madman Addon

#20 Post by lisa » Thu Oct 11, 2012 9:05 pm

I notice it didn't print "running" at all in there which tells me the onpreskillcast didn't work, if you still have it. I suspect there may be an issue with what is being done in the WP code but I don't really have the time to go through it.

Simple test, go just before the boss and use the wander script.

Code: Select all

rom/bot path:wander
It should see the boss and start to attack it, if it has the same issues as you have seen before then it isn't the WP. If it does everything without issue then the WP is probably the route of all evil ;)

No you can't teleport using the addon.
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 5 guests