Purple Item does not get sold at NPC with Autosell

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Purple Item does not get sold at NPC with Autosell

#1 Post by Danni » Mon Jan 13, 2014 6:35 pm

Hey guys,

I am using the below code in my profile:

Code: Select all

		<!-- Auto selling options when used with player:merchant -->
		<option name="INV_AUTOSELL_ENABLE"	value="true" />		<!-- true | false -->
		<option name="INV_AUTOSELL_FROMSLOT" value="1" /> 			<!-- 1 = bag 1 slot 1 -->
		<option name="INV_AUTOSELL_TOSLOT"	value="60" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_QUALITY"	value="white,green,blue,purple" /> 	<!-- white,green,blue,purple  -->
		<option name="INV_AUTOSELL_IGNORE"	value="" />
		<option name="INV_AUTOSELL_NOSELL_DURA" value="101" />
		<option name="INV_AUTOSELL_STATS_NOSELL" value="" />
		<option name="INV_AUTOSELL_STATS_SELL" value="" />
		<option name="INV_AUTOSELL_NOSELL_STATSNUMBER" value="5" />
I want my char, as soon he talks to a NPC and open the Shop, to sell all Items in all bags.
:!: Everything ... even purple stuff which is for example bought from the NPC
:!: If an Item have the Durability of at least 101 , than it should NOT sell it

Result at the moment:
:arrow: It does not sell the purple items
:arrow: An Item with a Durability of 101 is not sold either, which is good, but I am not sure, if it is because the item is purple as well. :?

:?: What am I doing wrong?

Thanks for the help and your time.

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

Re: Purple Item does not get sold at NPC with Autosell

#2 Post by lisa » Mon Jan 13, 2014 6:45 pm

you can turn on the debug messages for selling with this is profile.

Code: Select all

<option name="DEBUG_AUTOSELL"   value="true" />
Then you will get prints telling you why things sold or didn't sell.

My guess though is this
<option name="INV_AUTOSELL_NOSELL_STATSNUMBER" value="5" />
Does the purple item have 5+ stats?
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

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: Purple Item does not get sold at NPC with Autosell

#3 Post by Danni » Mon Jan 13, 2014 7:15 pm

ah thx for quick reply and code,

I am trying it now.
<option name="INV_AUTOSELL_NOSELL_STATSNUMBER" value="5" />
Does the purple item have 5+ stats?
nope, mostly 2-3 green or yellow stats with grad of XII or XV.
I just used 5 cause I saw a thread with a similar problem for SOK and by doing that method it worked there.

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: Purple Item does not get sold at NPC with Autosell

#4 Post by Danni » Mon Jan 13, 2014 7:26 pm

We try to find NPC 114370:
We successfully target NPC Fey Woram and try to open the dialog window.
Shopping .
Use MACRO: Executing RoMScript "CloseWindows()".
Clearing target.
the debug mode did not print anything in MM :?:

What shall I do? :?

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

Re: Purple Item does not get sold at NPC with Autosell

#5 Post by lisa » Mon Jan 13, 2014 10:27 pm

you probably need to turn on debugging in general.

I think you can just add "debug" when you start the bot but you can always just open the settings.lua file in the rom folder and change it to true

Line 21

DEBUGGING = 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

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: Purple Item does not get sold at NPC with Autosell

#6 Post by Danni » Tue Jan 14, 2014 1:25 am

Thx Lisa for the reply.

I changed the Line 21 in the settings.lua.

It seems the debug mode is in someway active, because I get this print at the begining
Attempt to read playerAddress
[DEBUG] playerAddr: 0x49795000
[DEBUG] player classes: 6/5
[DEBUG] player pet: 0x0
[DEBUG] Player target: 0x0
[DEBUG] player in battle: false
[DEBUG] mousePawn: 0x0
[DEBUG] mousePawn id: -1
[DEBUG] camAddress: 0xB8D800
[DEBUG] Cam X: -21828.60, Y: -49.35, Z: 3628.59
[DEBUG] Cam XU: 0.65, YU: 0.66, ZU: -0.39
BUT still no print when I sell thing at NPC in MM :?

Since there is as well a settings.xml, I change the Line 21 there as well to
DEBUGGING = true
This did NOT give me a print at selling either. :?

:?: Any other method to get to know where the mistake is? :?

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

Re: Purple Item does not get sold at NPC with Autosell

#7 Post by rock5 » Tue Jan 14, 2014 1:41 am

To use the autosell and buy features you need to use

Code: Select all

player:merchant("npc 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

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

Re: Purple Item does not get sold at NPC with Autosell

#8 Post by lisa » Tue Jan 14, 2014 2:24 am

it had the Shopping. print, I thought that was done when the bot was buying/selling?
We successfully target NPC Fey Woram and try to open the dialog window.
Shopping .
Use MACRO: Executing RoMScript "CloseWindows()".
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

Danni
Posts: 59
Joined: Sat Nov 09, 2013 6:24 pm

Re: Purple Item does not get sold at NPC with Autosell

#9 Post by Danni » Tue Jan 14, 2014 2:29 am

That solve the problem :) Thx Rock :)

I was using: player:openStore("npc_name")

Thank Lisa and Rock for your time.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests