Memento farming - concept - Dalanis Dungeon

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
justAnub
Posts: 14
Joined: Thu Sep 01, 2011 3:30 pm

Re: Memento farming - concept - Dalanis Dungeon

#61 Post by justAnub » Sat Sep 03, 2011 6:06 am

got it working now, used the timer with onskill cast.

in waypoint:

Code: Select all

    if target and target.Name == "Okander \"Mad Man\" Mallen" then
	  player:cast("MAGE_ENERGY_WELL");
	  player:cast("MAGE_ENERGY_INFLUX");
	  player:cast("MAGE_INTENSIFICATION");
	  player:cast("MAGE_ELEMENTAL_WEAKNESS");
	  player:cast("MAGE_MAGIC_DRAIN");
	  player:cast("MAGE_ELEMENTAL_CATALYST");
	  printf("targeting mad mallen\n");
	  _t = os.time();
    end
in profile:

Code: Select all

<onSkillCast>
 if _t ~= nil then
        leaptime = os.difftime(os.time(), _t)
        if ( leaptime > 22 and 28 > leaptime ) then
          cprintf(cli.red, "Run forest run!\n");
          player:cast("PRIEST_HOLY_AURA");
          player:clearTarget(); -- clear target because else bot won't move, wil get agro back when leaps over.
          keyboardHold( settings.hotkeys.MOVE_FORWARD.key );
          yrest(3000)
          keyboardPress(key.VK_SPACE)
          yrest(500);
          keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
          _t = os.time();
	else
	print(leaptime); --for getting right time
        end 
      end
</onSkillCast>
looking forward to youre in game addon lisa.
don't comment on my language im not english, just trying to make myself understood.

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Memento farming - concept - Dalanis Dungeon

#62 Post by SpiralV » Sat Sep 03, 2011 8:23 am

I think the event-monitor version is the better choice but I'm not happy about how it is called.
a real timer is probably the better choice

Code: Select all

<onLoad>
function runaway()
-- look in the middle of the room before
	local angle = math.atan2(2407 - player.Z, 2292 - player.X)
	local yangle = 0
	player:faceDirection(angle, yangle)
	camera:setRotation(angle)
	cprintf(cli.red, "Run forest run!\n")
-- runaway without yielding
	keyboardHold( settings.hotkeys.MOVE_FORWARD.key )
	rest(3500)
	keyboardRelease( settings.hotkeys.MOVE_FORWARD.key )
end
function madman()
	repeat
		local time, moretocome, msg = EventMonitorCheck("crush","1")
		if msg ~= nil then
			if string.find(msg, "I'll crush you!") then
				runaway()
			end
		end
	until moretocome == false
end
function startMadmanTimer()
	EventMonitorStart( "crush", "CHAT_MSG_SAY" )
	registerTimer( "timedAktion", secondsToTimer(1), madman )
end
function stopMadmanTimer()
	unregisterTimer("timedAktion")
	EventMonitorStop("crush")
end
</onLoad>

Code: Select all

<!-- # 26 --><waypoint x="2214" z="2499" y="401" >
startMadmanTimer()
player:target( player:findNearestNameOrId("Okander \"Mad Man\" Mallen") )
player:fight()
stopMadmanTimer()
</waypoint>
I can't test it at the moment unfortunately

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

Re: Memento farming - concept - Dalanis Dungeon

#63 Post by lisa » Sat Sep 03, 2011 10:25 am

Haven't tested this with bot yet, haven't been in dod for a while.

It has a text box users can edit, default is set to "crush you", it searches /say for that phrase and can be any case, lower or uppercase.
So when he says
I'll crush you!
then it will trigger the event.

When event is triggered it will run forward for 5 seconds and then stop moving forward.

We can also minotor with the bot if the event is triggered with this

Code: Select all

if sendMacro("madman.Time") >= 1 then 
printf("it works\n") -- do something here, like clear target.
end

The actual times may need adjusting of course but can only tell with testing.
So it runs for 5 and then resets the timer 3 seconds later. So for 8 seconds it will return true for the event in place.

Version 1.2, if you have V 1.1 please delete and get latest, version is written on the addon in game.
Attachments
madman.zip
in game addon and needs to go in runes of magic/interface/addons folder
(24.74 KiB) Downloaded 516 times
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: Memento farming - concept - Dalanis Dungeon

#64 Post by rock5 » Sat Sep 03, 2011 9:46 pm

SpiralV wrote:I think the event-monitor version is the better choice but I'm not happy about how it is called.
a real timer is probably the better choice

I can't test it at the moment unfortunately
This looks good and will be especially good if it interrupts casts, which it might. You don't want to have just started a long cast when he jumps.

Lisas in another solution. Probably it will be similar but should be a bit faster because it's an in game function. Also I believe it can be used even when not botting.
  • 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: Memento farming - concept - Dalanis Dungeon

#65 Post by lisa » Sat Sep 03, 2011 10:07 pm

rock5 wrote: Also I believe it can be used even when not botting.
Yeah I made it a stand alone addon, so it does it's thing regardless of if someone is botting or not.

It's very basic, if someone /say crush you then it will run forward for 5 seconds and stop.

You can change the words it looks for in /say by using the text box in the addon. So can be used for other bosses, a cyclops boss comes to mind where he spawns these balls where players stand and you need to move away from them.

I might get into dod later today to test it with bot and see if I can come up with a reliable WP and profile to use with it. Will need some code in onskillcast I would say.
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: Memento farming - concept - Dalanis Dungeon

#66 Post by lisa » Sun Sep 04, 2011 1:14 am

k using the addon and this in profile

Code: Select all

	<onSkillCast><![CDATA[
	target = player:getTarget();
	if target.Id == 103857 then
		if sendMacro("madman.Time") >= 1 then 
			player:clearTarget();
			printf("Running\n")
			yrest(4000)
		end
	end
	]]></onSkillCast>
did around 10 runs and it worked perfect everytime.

I would suguest doing the same for healers profile, I didn't use any onskillcast for healer as it would just run. I did have it 1 time though where it was trying to buff another character, bad timing and so it changed direction running towards the other character it was buffing.

Apart from that very easy trouble free on the jumps. Only ever did one jump per run though, guess I can reduce skills I use so fight lasts longer to test a second jump.

Code: Select all

Use MACRO:    =>   Okander "Mad Man" Mallen (478635/1540233)
Use MACRO: Executing RoMScript "madman.Time".
Clearing target.
Running
Moving in | Suggested range: 200 | Distance: 201
Use MACRO:    =>   Okander "Mad Man" Mallen (422893/1540233)
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

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

Re: Memento farming - concept - Dalanis Dungeon

#67 Post by s018mes » Sun Sep 04, 2011 6:39 pm

I have tried the addon by lisa. Every single time it does start running during the crush even. Great! However... it never stops running and thus will never finish killing boss.

Any ideas why my character isn't stopping running?

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

Re: Memento farming - concept - Dalanis Dungeon

#68 Post by lisa » Sun Sep 04, 2011 7:11 pm

yup, you have version 1.1 get the latest file I uploaded.
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

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

Re: Memento farming - concept - Dalanis Dungeon

#69 Post by s018mes » Sun Sep 04, 2011 7:16 pm

Also, I have never had the bot cast self buffs when targeting "Okander \"Mad Man\" Mallen".

I have used the following code in 2 spots, in the On Load section in the waypoint file and inside one of waypoint 7 when he finds okander, neither work:
-----------------------------------
if target and target.Name == "Okander \"Mad Man\" Mallen" then
player:cast("MAGE_ENERGY_INFLUX");
player:cast("MAGE_INTENSIFICATION");
player:cast("MAGE_MAGIC_DRAIN");
player:cast("MAGE_ELEMENTAL_CATALYST");
printf("targeting mad mallen\n");
_t = os.time();
end
--------------------------------------

If I could get the bot to cast the following spells prior to fight, then I think the bot could actually kill okander on its own:
player:cast("MAGE_ENERGY_INFLUX");
player:cast("MAGE_INTENSIFICATION");
player:cast("MAGE_MAGIC_DRAIN");
player:cast("MAGE_ELEMENTAL_CATALYST");


I just have never had the bot cast buffs prior to boss fight.

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

Re: Memento farming - concept - Dalanis Dungeon

#70 Post by s018mes » Sun Sep 04, 2011 7:30 pm

lisa wrote:yup, you have version 1.1 get the latest file I uploaded.
I have version 1.2, but bots does not stop running after crush event. Even when not botting, make sure it is not the bot somehow messing it up, the addon does not stop running for me.

Any ideas why?

I have the profile in my profile:

<onSkillCast><![CDATA[
target = player:getTarget();
if target.Id == 103857 then
if sendMacro("madman.Time") >= 1 then
player:clearTarget();
printf("Running\n")
yrest(4000)
end
end
]]></onSkillCast>


and in Verison 1.2 addon in my interface folder.

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

Re: Memento farming - concept - Dalanis Dungeon

#71 Post by lisa » Sun Sep 04, 2011 8:01 pm

open madman.lua and have a look at the bottom of the file for this

Code: Select all

function mm_OnUpdate(frame, elapsedTime)
	if madman.Time >= 1 then
		madman.Time = madman.Time + elapsedTime
	end
	if madman.Time >= 5 and mm_once == false then
		MoveForwardStop();
		mm_once = true
	end
	if madman.Time >= 7 and mm_once == true then
		madman.Time = 0
		mm_once = false
	end
end
If it doesn't look exactly like that then please just delete the folder and download the addon again. I did do some updating and there was a different v1.2 I uploaded but I didn't see that anyone had downloaded it before I updated so I just left it as v 1.2

I should have just made it 1.3 to be sure, my bad =(
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: Memento farming - concept - Dalanis Dungeon

#72 Post by lisa » Sun Sep 04, 2011 8:10 pm

s018mes wrote:Also, I have never had the bot cast self buffs when targeting "Okander \"Mad Man\" Mallen".
For some reason I had a lot of issues with getting mad man as target before engaging the fight, no idea why. In the end my solution was just to assume that he is there and do the buffs the waypoint coords before engaging.

Looks like this.

Code: Select all

<onload>
function bossbuff()
	if player.Class1 == 2 and player.Class2 == 7 then
		inventory:useItem(204462)
		yrest(5000)
		inventory:useItem(204463)
		yrest(5000)
		player:cast("WARDEN_SAVAGE_POWER")
		player:cast("SCOUT_ARROW_OF_ESSENCE")
	end
	if player.Class1 == 4 and player.Class2 == 5 then -- mage/priest
		player:cast("MAGE_ENERGY_INFLUX")
		player:cast("MAGE_INTENSIFICATION")
		player:cast("MAGE_MAGIC_DRAIN")
		player:cast("MAGE_ELEMENTAL_CATALYST")
	end
end
</onload>
then coords

Code: Select all

	<!-- #  7 --><waypoint x="2177" z="2540" y="407">	bossbuff()	</waypoint>
	<!-- #  9 --><waypoint x="2228" z="2466" y="401">	</waypoint>
obviously those skills are just an example and by using a function like that you can just load up the skills of every character you use just by doing a class check. That way you can use the same WP for any character you use to bot dod. Also can use for all the bosses very easily since it is a function.
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

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

Re: Memento farming - concept - Dalanis Dungeon

#73 Post by s018mes » Mon Sep 05, 2011 9:38 am

lisa wrote:
s018mes wrote:Also, I have never had the bot cast self buffs when targeting "Okander \"Mad Man\" Mallen".
For some reason I had a lot of issues with getting mad man as target before engaging the fight, no idea why. In the end my solution was just to assume that he is there and do the buffs the waypoint coords before engaging.

Looks like this.

Code: Select all

<onload>
function bossbuff()
	if player.Class1 == 2 and player.Class2 == 7 then
		inventory:useItem(204462)
		yrest(5000)
		inventory:useItem(204463)
		yrest(5000)
		player:cast("WARDEN_SAVAGE_POWER")
		player:cast("SCOUT_ARROW_OF_ESSENCE")
	end
	if player.Class1 == 4 and player.Class2 == 5 then -- mage/priest
		player:cast("MAGE_ENERGY_INFLUX")
		player:cast("MAGE_INTENSIFICATION")
		player:cast("MAGE_MAGIC_DRAIN")
		player:cast("MAGE_ELEMENTAL_CATALYST")
	end
end
</onload>
then coords

Code: Select all

	<!-- #  7 --><waypoint x="2177" z="2540" y="407">	bossbuff()	</waypoint>
	<!-- #  9 --><waypoint x="2228" z="2466" y="401">	</waypoint>
obviously those skills are just an example and by using a function like that you can just load up the skills of every character you use just by doing a class check. That way you can use the same WP for any character you use to bot dod. Also can use for all the bosses very easily since it is a function.

Does it matter where the onload code goes, either the waypoint file or profile file? Cause I still can not get it to work. When I start the bot it casts ELEMENTAL_CATALYST for every mob. This is not good, cause it wastes the skill on lower mobs and slows down the kill of the boss. How can I get it to cast ELEMENTAL_CATALYST ONLY for the boss?

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

Re: Memento farming - concept - Dalanis Dungeon

#74 Post by s018mes » Mon Sep 05, 2011 9:47 am

Had a problem with addon making instance normal:
'AutoAcceptInvitations'

but fixed it myself by changing the lua code.

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

Re: Memento farming - concept - Dalanis Dungeon

#75 Post by lisa » Mon Sep 05, 2011 11:47 am

skills you don't want used all the time you should add
AutoUse="false"
to them in profile

Code: Select all

<skill name="MAGE_ENERGY_INFLUX" 	  hotkey="MACRO" priority="30" AutoUse="false"/>
the skill will only be used if you tell bot to use it with

Code: Select all

player:cast("MAGE_ENERGY_INFLUX")
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

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

Re: Memento farming - concept - Dalanis Dungeon

#76 Post by s018mes » Mon Sep 05, 2011 12:09 pm

lisa wrote: to them in profile
I tired that but it did not work. I put in my profile. Should it go in the database files instead?

Also I noticed that your skill listed has the hotkey as "MACRO", but in my profile I have:

<skills_mage>
<skill name="PRIEST_HOLY_AURA" modifier="" hotkey="VK_7" priority="100" inbattle="true" hpper="30" />
<skill name="PRIEST_REGENERATE" modifier="" hotkey="VK_5" priority="90" inbattle="true" />
<skill name="PRIEST_URGENT_HEAL" modifier="" hotkey="VK_4" priority="95" inbattle="true" hpper="70" />
<skill name="MAGE_FLAME" modifier="" hotkey="VK_3" priority="80" />
<skill name="MAGE_FIREBALL" modifier="" hotkey="VK_1" priority="70" />
<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" />
</skills_mage>

Is hotkey="VK_7" okay ? or does the MACRO work better?

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

Re: Memento farming - concept - Dalanis Dungeon

#77 Post by lisa » Mon Sep 05, 2011 8:47 pm

Hmm a couple of people have said the autouse tag isn't working now. Going to have to test it =(
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: Memento farming - concept - Dalanis Dungeon

#78 Post by lisa » Mon Sep 05, 2011 9:08 pm

Found the issue, not sure best way to fix it.

in the skills table it uses
AutoUse
but when checking profile tags it checks for
autouse

Code: Select all

autouse = v:getAttribute("autouse");
So can either change that bit of code to AutoUse in which case the tag is the same everywhere BUT all of the other tags are all lowercase, so in my mind I think all the AutoUse checks should be changed to autouse.

There are only 3 places with the caps in the bot code, so changing those would be easy. However I have 17 with caps in my userfunctions and WP files lol

Any thoughts Rock?

Of course for now it means you can just do autouse in profile and yes deffinately in profile.

Code: Select all

<skill name="MAGE_ENERGY_INFLUX"      hotkey="MACRO" priority="30" autouse="false"/>
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: Memento farming - concept - Dalanis Dungeon

#79 Post by rock5 » Mon Sep 05, 2011 9:48 pm

I think you missed a step

Code: Select all

autouse = v:getAttribute("autouse");
if( autouse == false ) then tmp.AutoUse = false; end;
I don't think you are supposed to be using capitals in your profile. You should be using

Code: Select all

autouse="true"
or

Code: Select all

autouse="false"
The same as all the other variables.

The reason people are reporting to you that it's not working is probably because you have been telling people to use 'AutoUse'. LoL
  • 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: Memento farming - concept - Dalanis Dungeon

#80 Post by lisa » Mon Sep 05, 2011 9:59 pm

thats what I just said lol
I was saying the capitals because the table tag has capitals, which no other tags do.
It's like it has been made different to all the others.
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: Ahrefs [Bot] and 45 guests