Rune Catapult and unlimited arrows, lvl 55 +

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Rune Catapult and unlimited arrows, lvl 55 +

#1 Post by lisa »

If you are lvl 55 + and have a Rune Catapult xbow then you have unlimited arrows without buying any. The xbow drops in HoDL.

in profile onload

Code: Select all

	<onLoad><![CDATA[
if 999 > inventory:itemTotalCount("Runic Thorn") then 
RoMScript("UseEquipmentItem(10);") 
yrest(1000)
item:use("Runic Thorn")
end
	]]></onLoad>
profile onleavecombat

Code: Select all

	<onLeaveCombat><![CDATA[
if 999 > inventory:itemTotalCount("Runic Thorn") then RoMScript("UseEquipmentItem(10);") end
		-- Additional Lua code to execute after killing an enemy
	]]></onLeaveCombat>
So now you will only need 1 bag slot for arrows and you will never run out, the onload creates the arrow and equips 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
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Rune Catapult and unlimited arrows, lvl 55 +

#2 Post by kanta »

My problem with this is even though I do make and use the runic thorns, I don't use the bow for combat. For that I use my +12 T10 Fury of the Defender of the Jungle :D I'd either have to swap equipment to use it or figure out how to equip the Catapult then re-equip my Fury. Out of curiosity, does this make one stack and equip it then make a 2nd stack to be in your bags so you don't run out in the middle of a boss fight? I'll play around with the code to see if I can figure out how to swap the bows, make arrows then swap back. I'll post something if I figure it out. If you don't see any response saying I succeeded by the time you read this, I've either knocked myself unconscious out of frustration or blown up my computer ;)

UPDATE

Ok, I messed with the code and have it working the way I want. It equips the rune bow, makes the arrows then switches back to my Fury although I needed to change your item:use to inventory:useitem for it to work properly.

Code: Select all

<onLoad>
if 999 > inventory:itemTotalCount("Runic Thorn") then
inventory:useItem(212183) -- Use Rune War Bow
yrest(1000)
RoMScript("UseEquipmentItem(10);")
yrest(1000)
inventory:useItem(212615) -- Use Fury of the Defender of the Jungle
yrest(1000)

inventory:useItem(212185)
end
	</onLoad>

<onLeaveCombat>
if 999 > inventory:itemTotalCount("Runic Thorn") then
inventory:useItem(212183) -- Use Rune War Bow
yrest(1000)
RoMScript("UseEquipmentItem(10);")
yrest(1000)
inventory:useItem(212615) -- Use Fury of the Defender of the Jungle
yrest(1000)
end
</onLeaveCombat>
I tried making these into functions but kept getting errors. Since I have no clue what I'm doing with that I wasn't too surprised. I tried several changes but I couldn't get it to work. Kept getting "end expected near", added some ends to where it thought it was needed, when the errors stopped the functions just didn't do anything at all.

Thank you very much for this code. Now I don't have to make 6+ stacks of arrows for overnight/at work farming.
Scout/Knight/Rogue 70/66/66
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Rune Catapult and unlimited arrows, lvl 55 +

#3 Post by lisa »

you could use something like this and call runicthorn() at both onload and onleavecombat.
Just remember to be cautious as if you start bot and you have vendor opwn it might sell the bows to the vendor.

Code: Select all

function runicthorn()
	if 999 > inventory:itemTotalCount("Runic Thorn") then
		inventory:useItem(212183) -- Use Rune War Bow
		yrest(1000)
		RoMScript("UseEquipmentItem(10);")
		yrest(1000)
		inventory:useItem(212615) -- Use Fury of the Defender of the Jungle
		yrest(1000)

		if inventory:getAmmunitionCount() == 0 then
		inventory:useItem(212185)
		end
	end
end
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: Rune Catapult and unlimited arrows, lvl 55 +

#4 Post by rock5 »

To make it into a userfunction you would have to remove the current bow/crossbow but remember where you put it. Then when you have made the arrows move the bow/crossbow back. That way it will work with any currently equiped weapon. Or maybe after finding the runic weapon you can do a swap with the equiped. That way you will know where it is.
  • 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: Rune Catapult and unlimited arrows, lvl 55 +

#5 Post by lisa »

I guess to make it swap with any weapon you could make it find the slot number the rune catapult is in. then use the rune catapult, get the arrows. then do a use on that same slot. It isn't bug proof though.

Best would be to detect name of current equiped ranged weapon and if not rune catapult then remember that name. Then look for rune catapult in bag and if found use it. then use it while equiped to get the arrows. then use the name from earlier to requip the main bow.

That should cover it. lol
I'll have a look to see if there is already something in existing code for getting name of equiped items.
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: Rune Catapult and unlimited arrows, lvl 55 +

#6 Post by rock5 »

I think the opposite. If you remember the slot number where you put the weapon then reequiping it will be reliable. But if you remember the name of the weapon and use that to equip, you could end up equiping another weapon with the same name.
  • 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
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Rune Catapult and unlimited arrows, lvl 55 +

#7 Post by kanta »

lisa wrote:you could use something like this and call runicthorn() at both onload and onleavecombat.
Just remember to be cautious as if you start bot and you have vendor opwn it might sell the bows to the vendor.
Well, to be safe, couldn't you start it with

Code: Select all

if RoMScript("StoreFrame:IsVisible()") then
sendMacro("CloseAllWindows()");
end
to make sure such a mistake doesn't happen?
Scout/Knight/Rogue 70/66/66
User avatar
MustHave
Posts: 28
Joined: Sat Jan 21, 2012 11:51 pm
Location: 742, Evergreen Terrace, Springfield

Re: Rune Catapult and unlimited arrows, lvl 55 +

#8 Post by MustHave »

Well you could prevent seeling items as a accident easily with setting the following option:

Code: Select all

<option name="INV_AUTOSELL_FROMSLOT" value="3" /> 			<!-- 1 = bag 1 slot 1 -->
In this case everything getting sold except Items from slot 1 + 2 in your Inventory.
If you put your weapon (which one you use to create arrows) in a slot from 1 + 2 and you swap items,
your current weapon will goes straight ahead to the slot where your weapon was which you have now equipped,
Then create your arrows and swap weapon again. It will happen the same thing as before. If you go to merchant all will be fine.

I don't know if this is an current issue, guess not. But maybe someone noobish like me could help this out if he has the same questions.
Beer: The cause of, and solution to, all of life's problems.
Thnx to all of those who are working their ass off for us dumb asses
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rune Catapult and unlimited arrows, lvl 55 +

#9 Post by rock5 »

MustHave wrote:If you put your weapon (which one you use to create arrows) in a slot from 1 + 2 and you swap items,
your current weapon will goes straight ahead to the slot where your weapon was which you have now equipped,
Then create your arrows and swap weapon again. It will happen the same thing as before. If you go to merchant all will be fine.
I just keep my Rune War Bow in my Arcane Transmutor. No danger of selling there and my code for getting the arrows works fine.
  • 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
MustHave
Posts: 28
Joined: Sat Jan 21, 2012 11:51 pm
Location: 742, Evergreen Terrace, Springfield

Re: Rune Catapult and unlimited arrows, lvl 55 +

#10 Post by MustHave »

rock5 wrote:I just keep my Rune War Bow in my Arcane Transmutor. No danger of selling there and my code for getting the arrows works fine.
Thnx a lot sir! Didn't thought about that possibility.
Could you please post me the lines you're using?

A thousand of apologizes. Just tested it and yes works like a charm!
Thank you very much! Always glad to learn somthing ;)
Beer: The cause of, and solution to, all of life's problems.
Thnx to all of those who are working their ass off for us dumb asses
Post Reply