Page 1 of 1
Rune Catapult and unlimited arrows, lvl 55 +
Posted: Mon Jun 06, 2011 11:25 pm
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Tue Jun 07, 2011 2:04 pm
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

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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Tue Jun 07, 2011 8:02 pm
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
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Tue Jun 07, 2011 10:30 pm
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Tue Jun 07, 2011 11:34 pm
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Wed Jun 08, 2011 4:41 am
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Wed Jun 08, 2011 3:11 pm
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?
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Mon Jan 23, 2012 6:17 am
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Mon Jan 23, 2012 7:25 am
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.
Re: Rune Catapult and unlimited arrows, lvl 55 +
Posted: Mon Jan 23, 2012 10:17 am
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
