S/R changing ranged weapons

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
parramet
Posts: 15
Joined: Wed Feb 13, 2013 7:49 pm

S/R changing ranged weapons

#1 Post by parramet » Sat Feb 16, 2013 1:14 pm

Hello all,

I tried to use throwing attack with mm but the problem is that i have to switch from bow+arrows to throwing knives . I do it manually by pressing a macro usually. I would like to use mm for it when my rogue energy is below 25 but the first problem i find is that mm spams too much the macro and mess the swap and the skill. Any way to make mm push only once that macro ingame? like making it wait a couple of seconds after tries to cast the skill. And the second problem is how to tell mm use this skill only when my energy is below 25.

I hope I explained myself , thanks for taking a look.

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: S/R changing ranged weapons

#2 Post by abron1 » Sun Feb 17, 2013 6:04 pm

try this in your profile so the bot don't just spam

Code: Select all

<skills_rogue>
		
		<skill name="ROGUE_WOUND_ATTACK"  hotkey="MACRO" priority="100" reqbuffname="Grievous Wound" reqbufftarget="target"/>
		<skill name="ROGUE_LOW_BLOW"      hotkey="MACRO" priority="90" reqbuffname="Bleed" reqbufftarget="target" nobuffname="Grievous Wound" nobufftarget="target"/>
		<skill name="ROGUE_SHADOWSTAB"    hotkey="MACRO" priority="85" nobuffname="Bleed" nobufftarget="target"/>
		<skill name="ROGUE_BLIND_STAB"   	  	hotkey="MACRO" priority="70" />
		<skill name="ROGUE_HIDE"    			hotkey="MACRO" priority="10" autouse="false" />
		<skill name="ROGUE_INFORMER"    		hotkey="MACRO" priority="80" />
		<skill name="ROGUE_ASSASSINS_RAGE"    	hotkey="MACRO" priority="60" />
		<skill name="ROGUE_COMBAT_MASTER"    	hotkey="MACRO" priority="80" />
		<skill name="SCOUT_SHOT"          		hotkey="MACRO" priority="80" />
		<skill name="SCOUT_VAMPIRE_ARROWS" 		hotkey="MACRO" priority="110" />

		</skills_rogue>
that will use some of your scout skills and it won't cast shadowstab while bleed is on and will cast low blow if it see bleed then grievious and if you don't have energy with will cast vampire arrow or shot hope that helps. becasue i don't know how to make it change

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

Re: S/R changing ranged weapons

#3 Post by rock5 » Sun Feb 17, 2013 11:45 pm

That's not what he asked.

The problem with Throw is the bot checks to see if you have the right ammunition so if you have arrows equipped it wont even try to use throw. If you swap the ammunition to thrown then it will use Throw but stop using arrow skills. The bot should probably be rewritten to automatically swap ammunition but I'm not sure how best to do that.
  • 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: S/R changing ranged weapons

#4 Post by lisa » Mon Feb 18, 2013 2:08 am

parramet wrote:I do it manually by pressing a macro usually.
If you have a macro that works then just post the code here and we can get the bot to do the macro for you, instead of making the bot try to press a key to do the macro.
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

parramet
Posts: 15
Joined: Wed Feb 13, 2013 7:49 pm

Re: S/R changing ranged weapons

#5 Post by parramet » Mon Feb 18, 2013 6:13 pm

Hello again,

Thanks for the feedback. The thing is I managed to trick mm instead of telling to use throw attack i put shot skill . The other skills I can use diyce or ubberflex , but they cant use macros thats their problem after devs nerfed them.
The macro ingame I use to swap the range weapons is this.

/script if(GetEquipSlotInfo(11)) then EquipItem(11); UseItemByName("One-Kill-A-Day"); end;
/Cast Throw
/wait 0.9
/Cast Combo Throw
/use Runic Thorn
/use Jenny's Power

Thank you.

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

Re: S/R changing ranged weapons

#6 Post by lisa » Mon Feb 18, 2013 6:40 pm

Something like this should work for the bot.

Code: Select all

if RoMScript("GetEquipSlotInfo(11)") then RoMScript("EquipItem(11)") inventory:useItem("One-Kill-A-Day") end
SlashCommand('/script CastSpellByName("Throw")')
yrest(900)
SlashCommand('/script CastSpellByName("Combo Throw")')
inventory:useItem("Runic Thorn")
inventory:useItem("Jenny's Power")
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

parramet
Posts: 15
Joined: Wed Feb 13, 2013 7:49 pm

Re: S/R changing ranged weapons

#7 Post by parramet » Mon Feb 18, 2013 7:45 pm

Hello there , very fast answering my doubts . I´ve been checking around on how to put all that . Is that an userfunction then ? I really don´t know how to call it from my profile skill I supouse It would be something like :

Code: Select all

<skill name="SCOUT_SHOT"          	hotkey=(calling parameter) reqbuffname="Vampire Arrows" reqbufftarget="target" />
Well I put shot because if I put throwing attack It wont work so I mod the skills.lua and make shot to have a range like trowings and also a cd of 4s. And I add the bleed requirement also important.

Big thanks Lisa.

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

Re: S/R changing ranged weapons

#8 Post by lisa » Mon Feb 18, 2013 8:01 pm

depends when you want to use it, I would be looking at using it in a profile event, such as onpreskillcast.

So yeah it comes down to when you want to actually use the "macro"
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

parramet
Posts: 15
Joined: Wed Feb 13, 2013 7:49 pm

Re: S/R changing ranged weapons

#9 Post by parramet » Mon Feb 18, 2013 11:08 pm

Hum,

This is the closer I get after looking into choices. I think in my case it´s better if the macro works only when I press F , because there is where I have my ubberflex+diyce macro so would be a nice combo .
It worked once but I touched something and now doesn´t work at all.. too late I think.
I changed from doing this in the profile to do it straight to the waypoint file. This is how it looks like :

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while (true) do
   player:checkSkills(true) -- buff and heal 
   if keyPressed(key.VK_F) then
      target = player:getTarget()
     end
    	
      if target:hasBuff("Vampire Arrows") then
       RoMScript("EquipItem(11)") inventory:useItem("One-Kill-A-Day") 
       SlashCommand('/script CastSpellByName("Throw")') 
       yrest(900) 
       SlashCommand('/script CastSpellByName("Combo Throw")') 
       inventory:useItem("Runic Thorn")
       inventory:useItem("Jenny's Power")
	yrest(5000)	
  
    
   end
end
</onLoad>
</waypoints>
I finish this quest tomorrow , good night.

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

Re: S/R changing ranged weapons

#10 Post by lisa » Mon Feb 18, 2013 11:22 pm

I don't see the need to use a keypress.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while (true) do
	player:checkSkills(true) -- buff and heal 
	target = player:getTarget() -- checks for target
	player:updateMP()
	if target and target:hasBuff("Vampire Arrows") and 25 > player.Energy then -- is buff name correct?
		RoMScript("EquipItem(11)")
		yrest(500)
		inventory:useItem("One-Kill-A-Day")
		yrest(500)
		SlashCommand('/script CastSpellByName("Throw")') 
		yrest(900) -- global cooldown?
		SlashCommand('/script CastSpellByName("Combo Throw")')
		yrest(900) -- global cooldown?
		inventory:useItem("Runic Thorn")
		inventory:useItem("Jenny's Power")
		yrest(5000) -- I am assuming time between uses
	end
	yrest(100) -- needs a yielding rest, even just 1 millisecond, I went with 100
end
</onLoad>
</waypoints>
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

parramet
Posts: 15
Joined: Wed Feb 13, 2013 7:49 pm

Re: S/R changing ranged weapons

#11 Post by parramet » Tue Feb 19, 2013 1:06 pm

Nice ¡ It works good thank you a lot for that push . Now the only thing I want to add is about using the skill only when my energy is lower than 25 . Is that possible with mm , in diyce is something like (EnergyBar1 <= 20) .

Looking forward to hearing from you.

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

Re: S/R changing ranged weapons

#12 Post by lisa » Tue Feb 19, 2013 7:51 pm

I edited the above code to check for Energy less than 25.
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 6 guests