savage lands

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

savage lands

#1 Post by jboggan »

is there a script for green forest deer leg farmin?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: savage lands

#2 Post by lisa »

Been a while since I used this 1 so I will share it =)
Attachments
sllongdeer.xml
WP for deer in SL, also repairs/buys stuff from merchant.
(1.88 KiB) Downloaded 294 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
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#3 Post by jboggan »

oh ty
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#4 Post by jboggan »

where does it start at?
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#5 Post by jboggan »

am i missing something in it or something. all it did was run down path and then turn around and run bak toward camp
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: savage lands

#6 Post by lisa »

Yup it will keep going back and forth along that path, if it didn't attack anything then you need to fix something in your profile.
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
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#7 Post by jboggan »

lol i had a brain fart. i forgot to add green forest deer to my mobs list


also is there a part i can add that will bring me bak to the sell guy when my bag is full and sell the gear stuff i loot??
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: savage lands

#8 Post by lisa »

It should just make the long walk down the path and then long walk back to camp, sell/repair and then continue. It should be selling/repairing on every trip
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
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#9 Post by jboggan »

when it got to the merchant it bought arrows and throwables and potions.

i may still have something in my profile that needs to change.

im writing mine off the default.
i found auto sell/auto repair stuff on rombot wiki. im gonna try and play around with it all and see wat i come up with. i will post a finished copy of wat i made in this forum for u to try out and debug/recode wats i mess up lol
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: savage lands

#10 Post by lisa »

you will be looking at adding code like this to your profile

Code: Select all

		<option name="INV_AUTOSELL_ENABLE"		value="true" />
		<option name="INV_AUTOSELL_FROMSLOT"		value="1" />
		<option name="INV_AUTOSELL_TOSLOT"		value="30" />
		<option name="INV_AUTOSELL_QUALITY"		value="white,green" />
the reason you bought those other items is this section of your profile

Code: Select all

		<option name="HEALING_POTION" value="99" />
		<option name="MANA_POTION" value="99" />
		<option name="ARROW_QUIVER" value="0" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
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
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#11 Post by jboggan »

so i dont add the auto sell options to the waypoint coding. i put it in the profile? or can it be in the waypoint?
basically so if i use that one for farmin i sell certain things that are specified in there?

and how would i put to ignore the deer legs?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: savage lands

#12 Post by lisa »

all the code i just posted is for profile, you don't need to worry about the legs as you can't sell them to the merchant even if you wanted to. it's a daily item.
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
jboggan
Posts: 55
Joined: Sun Jun 05, 2011 3:18 am

Re: savage lands

#13 Post by jboggan »

ran into a problem with the deer farming waypoints.

it ran thru them all fine, killed, looted, etc etc

but when it got to the merchant i got a error

"[DEBUG] Check item so sell: 91 200819 Military Regeneration Formula
[DEBUG] Check item so sell: 92 205661 Green Forest Deer Leg
[DEBUG] Check item so sell: 93 224438 Red-Edged Leather Belt
[DEBUG] Durability check, search for: Durability => 87
[DEBUG] Check item so sell: 94 211985 Armor Splitting Long Blade
[DEBUG] Durability check, search for: Durability => 71
[DEBUG] Check item so sell: 95 220264 Belt of the Universe
[DEBUG] Durability check, search for: Durability => 74
4:47pm - ...es of Magic/micromacro/scripts/rom/classes/store.lua:153: attempt to
compare number with nil"
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: savage lands

#14 Post by rock5 »

Make sure all your shopping options have valid numbers. If you don't want to buy something make sure it has a zero "0", not just "".

Code: Select all

		<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="HEALING_POTION" value="85" />
		<option name="MANA_POTION" value="0" />
		<option name="ARROW_QUIVER" value="0" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
		<option name="EGGPET_HOE"		value="99" />
		<option name="EGGPET_SPADE"		value="99" />
		<option name="EGGPET_HATCHET"	value="99" />
  • 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: savage lands

#15 Post by lisa »

we should probably change it so when checking for this if == nil or "" to default to 0
Seen this a few times now =)
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: savage lands

#16 Post by rock5 »

lisa wrote:we should probably change it so when checking for this if == nil or "" to default to 0
Seen this a few times now =)
Yeh, I was thinking that too.
  • 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: savage lands

#17 Post by lisa »

actually easier to just check if not >= 0 then = 0
that should do 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: savage lands

#18 Post by rock5 »

Ok fixed.

I just changed

Code: Select all

	if totalCount < quantity then
to

Code: Select all

	if quantity ~= nil and quantity ~="" and totalCount < quantity then
On second thought, why go through the whole function if "quantity" is invalid?

I think instead I'll add this at the top

Code: Select all

if quantity == nil or quantity == "" then
    return
end 
  • 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
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: savage lands

#19 Post by Administrator »

Code: Select all

 if quantity ~= nil and quantity ~="" and totalCount < quantity then
I think that in Lua, it will still evaluate everything within that statement (that is, there is no short circuiting), so if quantity is nil, it could still give a comparison with nil error.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: savage lands

#20 Post by rock5 »

What?

I thought that that was the way to avoid nil errors. if you have

Code: Select all

if a ~= nil and a > 5 then
If a is nil then there is no point in doing the second check so it doesn't and you don't get nil errors.

Just the same with

Code: Select all

if a == nil or a < 1 then
if a is nil then the first argument is true so it doesn't do the second argument so it gets no error.

That's also why you can use

Code: Select all

a = a or 0
You should know this or are you just having a mind freeze. :)
  • 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
Post Reply