Page 1 of 1

Purple Item does not get sold at NPC with Autosell

Posted: Mon Jan 13, 2014 6:35 pm
by Danni
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.

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

Posted: Mon Jan 13, 2014 6:45 pm
by lisa
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?

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

Posted: Mon Jan 13, 2014 7:15 pm
by Danni
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.

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

Posted: Mon Jan 13, 2014 7:26 pm
by Danni
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? :?

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

Posted: Mon Jan 13, 2014 10:27 pm
by lisa
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,

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

Posted: Tue Jan 14, 2014 1:25 am
by Danni
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? :?

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

Posted: Tue Jan 14, 2014 1:41 am
by rock5
To use the autosell and buy features you need to use

Code: Select all

player:merchant("npc name")

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

Posted: Tue Jan 14, 2014 2:24 am
by lisa
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()".

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

Posted: Tue Jan 14, 2014 2:29 am
by Danni
That solve the problem :) Thx Rock :)

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

Thank Lisa and Rock for your time.