SVN 395: Autosell with check for durability and stats

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: SVN 395: Autosell with check for durability and stats

#21 Post by akira2102 » Sun Dec 27, 2009 2:10 pm

Thats exactly my problem xD

After the update my problems started, too.

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#22 Post by Administrator » Sun Dec 27, 2009 6:40 pm

I think it's caused by the new item parser code. Turn the DEBUG_INV option on and post the results.

Code: Select all

<option name="DEBUG_INV" value="true" />

Maroco
Posts: 30
Joined: Fri Sep 18, 2009 11:25 pm

Re: SVN 395: Autosell with check for durability and stats

#23 Post by Maroco » Mon Dec 28, 2009 1:54 am

hi ok after implement :

Code: Select all

<option name="DEBUG_INV" value="true" />
I hawe agein:

Code: Select all

[DEBUG] Check item so sell:  520082 Vitality II
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10 |cffEBDF904|r => X
[DEBUG] Check nosellstat line: 11 |cffEBDF9020|r => X
[DEBUG] Check nosellstat line: 12 |cffEBDF900.4|r => X
[DEBUG] Check nosellstat line: 13 |cffEBDF9012|r => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  222664 Blazing Armor
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability => 89
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3 |cffFFFFFFDurability 89/89 => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5 |cffFFFFFFUpper Body => X
[DEBUG] Check nosellstat line: 6 |cffFFFFFFMagical Defense 400 => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8 |cffFFFFFFIntellect VII => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13 |cffEBDF9017 ( |cffff0000- 63|r|cffEBDF90)|r =
> X
[DEBUG] Check nosellstat line: 14 |cffEBDF900 ( |cffff0000- 63|r|cffEBDF90)|r =>
 X
[DEBUG] Check nosellstat line: 15 |cffEBDF900 ( |cffff0000- 10|r|cffEBDF90)|r =>
 X
[DEBUG] Check item so sell:  203588 Rune Rubbing
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  205007 Order of Dark Glory Document
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  204445 Stomach
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  205535 Goldie
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  203544 Sheepskin Parchment Scroll
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  204610 Blessed Seed
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
Paused. (Delete) to continue, (CTRL+L) exit to shell, (CTRL+C) quit
seill still not work. thx for try help

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#24 Post by Administrator » Mon Dec 28, 2009 2:03 am

When it's mapping your inventory, it should display all the information (name, quantity, etc.). Do you notice anything weird there (such as "|cxxxxxxxx")?

Maroco
Posts: 30
Joined: Fri Sep 18, 2009 11:25 pm

Re: SVN 395: Autosell with check for durability and stats

#25 Post by Maroco » Mon Dec 28, 2009 2:54 am

ok thats maping inventori:

Code: Select all

Mapping inventory (bagslot 1 to 60)...
DEBUG item:update(): slot 1 bagId 61 Id 206399 name ... qty 36
DEBUG item:update(): slot 2 bagId 70 Id 520063 name ... qty 1
DEBUG item:update(): slot 3 bagId 69 Id 220366 name ... qty 1
DEBUG item:update(): slot 4 bagId 78 Id 520223 name ... qty 1
DEBUG item:update(): slot 5 bagId 82 Id 0 name  qty 0
DEBUG item:update(): slot 6 bagId 72 Id 220482 name ... qty 1

DEBUG item:update(): slot 7 bagId 89 Id 520022 name ... qty 1
DEBUG item:update(): slot 8 bagId 67 Id 203588 name ... qty 1
DEBUG item:update(): slot 9 bagId 63 Id 0 name  qty 0
DEBUG item:update(): slot 10 bagId 76 Id 220263 name ... qty 1
DEBUG item:update(): slot 11 bagId 65 Id 210298 name ... qty 1

DEBUG item:update(): slot 12 bagId 73 Id 0 name  qty 0
DEBUG item:update(): slot 13 bagId 75 Id 0 name  qty 0
DEBUG item:update(): slot 14 bagId 90 Id 205007 name ...
t qty 1
DEBUG item:update(): slot 15 bagId 86 Id 204445 name ... qty 1
DEBUG item:update(): slot 16 bagId 83 Id 205535 name ... qty 1
DEBUG item:update(): slot 17 bagId 84 Id 203544 name ...
qty 1
DEBUG item:update(): slot 18 bagId 68 Id 204610 name ... qty 1
DEBUG item:update(): slot 19 bagId 81 Id 223521 name ... qty 1
DEBUG item:update(): slot 20 bagId 62 Id 224636 name ... qt
y 1
DEBUG item:update(): slot 21 bagId 71 Id 211659 name ... qty 1
DEBUG item:update(): slot 22 bagId 74 Id 223907 name ... qty 1
DEBUG item:update(): slot 23 bagId 85 Id 224632 name ... qt
y 1
DEBUG item:update(): slot 24 bagId 79 Id 211647 name ...
qty 1
DEBUG item:update(): slot 25 bagId 64 Id 210038 name ... qty 1
DEBUG item:update(): slot 26 bagId 77 Id 203495 name ... qty
 1
DEBUG item:update(): slot 27 bagId 87 Id 520043 name ... qty 1
DEBUG item:update(): slot 28 bagId 88 Id 203497 name ... qty
 1
DEBUG item:update(): slot 29 bagId 80 Id 520123 name ... qty 1
DEBUG item:update(): slot 30 bagId 66 Id 225303 name ... qty 1
DEBUG item:update(): slot 31 bagId 94 Id 223332 name ... qty
 1
DEBUG item:update(): slot 32 bagId 100 Id 223597 name ... qty 1
DEBUG item:update(): slot 33 bagId 92 Id 223502 name ... qty 1
DEBUG item:update(): slot 34 bagId 107 Id 211659 name ... qty 1
DEBUG item:update(): slot 35 bagId 101 Id 205663 name ... qty 1
DEBUG item:update(): slot 36 bagId 117 Id 205663 name ... qty 1
DEBUG item:update(): slot 37 bagId 114 Id 203676 name ... (Permanent)
qty 1
DEBUG item:update(): slot 38 bagId 93 Id 202903 name ... qty 1
DEBUG item:update(): slot 39 bagId 97 Id 202902 name ... qty 1
DEBUG item:update(): slot 40 bagId 102 Id 202435 name ... qty 1
DEBUG item:update(): slot 41 bagId 113 Id 202506 name ... qty 1

DEBUG item:update(): slot 42 bagId 104 Id 201967 name ... qty
 1
DEBUG item:update(): slot 43 bagId 110 Id 204890 name ... qty
 91
DEBUG item:update(): slot 44 bagId 119 Id 204890 name ... qty
 99
DEBUG item:update(): slot 45 bagId 111 Id 204889 name ... qty 98
DEBUG item:update(): slot 46 bagId 91 Id 200114 name ... qty 24
DEBUG item:update(): slot 47 bagId 108 Id 205646 name ... qty 1
DEBUG item:update(): slot 48 bagId 96 Id 205426 name ... qty 1
DEBUG item:update(): slot 49 bagId 98 Id 203783 name ... qty 1
DEBUG item:update(): slot 50 bagId 120 Id 203627 name ... qty 1

DEBUG item:update(): slot 51 bagId 116 Id 202754 name ... qty 1
DEBUG item:update(): slot 52 bagId 95 Id 201437 name ... qty 1
DEBUG item:update(): slot 53 bagId 106 Id 201250 name ... qty 1
DEBUG item:update(): slot 54 bagId 115 Id 200923 name ... qty 1
DEBUG item:update(): slot 55 bagId 112 Id 200710 name ... qty 1
DEBUG item:update(): slot 56 bagId 109 Id 200017 name ... qty 1
DEBUG item:update(): slot 57 bagId 103 Id 204222 name ... qty 1
DEBUG item:update(): slot 58 bagId 118 Id 203038 name ... qty 100
0
DEBUG item:update(): slot 59 bagId 99 Id 203038 name ... qty 100
DEBUG item:update(): slot 60 bagId 105 Id 203038 name ... qty 100
0
...= full names of items

I didnt faund nothing wired man, any idea?

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#26 Post by Administrator » Mon Dec 28, 2009 3:47 am

Ok, it's not the item link parser. Might be caused by a change in the RoM API with the latest patch. Try this... open up ingamefunctions.lua (part of the addon you installed), and look for this (should be near the top):

Code: Select all

GameTooltip:SetBagItem(_bagid);
Try changing it to this:

Code: Select all

GameTooltip:SetBagItem(GetBagItemInfo(_bagid));
Then save it and (if you're in-game already) reload the addon by typing in /script ReloadUI();

There might still be problems after making this change. I'm not sure. Can you test it for me and report back?

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: SVN 395: Autosell with check for durability and stats

#27 Post by akira2102 » Mon Dec 28, 2009 11:32 am

Hi,

that does not work for selling but now i get a new message

Itemcolor not in option INV_AUTOSELL_QUALITY


EDIT: It is definitly the color! I changed something in the inventory.lua that the script dont cares about the colour and it worked again. I hope the information helps u to find this issue.

Maroco
Posts: 30
Joined: Fri Sep 18, 2009 11:25 pm

Re: SVN 395: Autosell with check for durability and stats

#28 Post by Maroco » Mon Dec 28, 2009 12:51 pm

hi , ok i sed that and naw i hawe that mesages...

Code: Select all

[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  220366 Sharpmoon Long Robe
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  520223 Shell III
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  220482 Soft Boots of Elegance
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  520022 Power II
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  203588 Rune Rubbing
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  220263 Belt of the Stars
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  210298 Improved Throwing Axe
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  205007 Order of Dark Glory Document
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  204445 Stomach
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  205535 Goldie
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  203544 Sheepskin Parchment Scroll
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
[DEBUG] Check item so sell:  204610 Blessed Seed
[DEBUG] Itemcolor not in option INV_AUTOSELL_QUALITY:
[DEBUG] Durability check, search for: Durability =>
[DEBUG] Check nosellstat line: 1   => X
[DEBUG] Check nosellstat line: 2   => X
[DEBUG] Check nosellstat line: 3   => X
[DEBUG] Check nosellstat line: 4   => X
[DEBUG] Check nosellstat line: 5   => X
[DEBUG] Check nosellstat line: 6   => X
[DEBUG] Check nosellstat line: 7   => X
[DEBUG] Check nosellstat line: 8   => X
[DEBUG] Check nosellstat line: 9   => X
[DEBUG] Check nosellstat line: 10   => X
[DEBUG] Check nosellstat line: 11   => X
[DEBUG] Check nosellstat line: 12   => X
[DEBUG] Check nosellstat line: 13   => X
[DEBUG] Check nosellstat line: 14   => X
[DEBUG] Check nosellstat line: 15   => X
[DEBUG] Check nosellstat line: 16   => X
[DEBUG] Check nosellstat line: 17   => X
[DEBUG] Check nosellstat line: 18   => X
[DEBUG] Check nosellstat line: 19   => X
[DEBUG] Check nosellstat line: 20   => X
Paused. (Delete) to continue, (CTRL+L) exit to shell, (CTRL+C) quit
still dont seill

akira2102
Posts: 51
Joined: Sat Jul 18, 2009 2:10 pm

Re: SVN 395: Autosell with check for durability and stats

#29 Post by akira2102 » Tue Dec 29, 2009 1:42 pm

Nothing yet?

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#30 Post by Administrator » Tue Dec 29, 2009 4:48 pm

No news as of yet. It's being worked on.

Maroco
Posts: 30
Joined: Fri Sep 18, 2009 11:25 pm

Re: SVN 395: Autosell with check for durability and stats

#31 Post by Maroco » Tue Dec 29, 2009 7:26 pm

ok thx still waiting. If u will need moor tests just let me knou.

Guard
Posts: 2
Joined: Wed Dec 30, 2009 8:49 am

Re: SVN 395: Autosell with check for durability and stats

#32 Post by Guard » Wed Dec 30, 2009 9:00 am

It's definitely related to the colours. I'm looking through the code myself to see if I can find something.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

Re: SVN 395: Autosell with check for durability and stats

#33 Post by d003232 » Wed Dec 30, 2009 9:35 am

Guard wrote:It's definitely related to the colours. I'm looking through the code myself to see if I can find something.
Perhaps the RoM API itemlink structure has changes? I would suggest you to take a look into item.lua and check the content from the color field within the function item:update and also for the field itemLink in the function itemLink parser.
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#34 Post by Administrator » Mon Jan 04, 2010 11:45 am

I just committed a change that should get item auto-selling working again. Please update off SVN and test it further for me.

ekuth1
Posts: 3
Joined: Wed Dec 16, 2009 9:44 pm

Re: SVN 395: Autosell with check for durability and stats

#35 Post by ekuth1 » Mon Jan 04, 2010 9:00 pm

Autosell is working again!

*bows before the almighty Admin*

Thankyouthankyouthankyou. :mrgreen:

Maroco
Posts: 30
Joined: Fri Sep 18, 2009 11:25 pm

Re: SVN 395: Autosell with check for durability and stats

#36 Post by Maroco » Tue Jan 05, 2010 9:39 pm

hi, i tested and its work, but i thing that

Code: Select all

<option name="INV_AUTOSELL_NOSELL_DURA"      value="110" />
<option name="INV_AUTOSELL_STATS_NOSELL"      value="X" />
<option name="INV_AUTOSELL_STATS_SELL"      value="IX" />

its not work. It is selling all items and don sort them. Any idea? thx

askme
Posts: 2
Joined: Sat Jan 09, 2010 9:24 pm

Re: SVN 395: Autosell with check for durability and stats

#37 Post by askme » Sat Jan 09, 2010 9:31 pm

autosell won´t work

if fixed this by myself by editing the

item.lua

Code: Select all

-- itemquality -> color code
ITEMCOLOR = { 
	--WHITE =  tonumber("0xFFFFFFFF"),
	--GREEN =  tonumber("0xFF00FF00"),
	--BLUE =   tonumber("0xFF0072BC"),
	--PURPLE = tonumber("0xFFA864A8"),
	--ORANGE = tonumber("0xFFF68E56"),
	--GOLD =   tonumber("0xFFA37D50"),
	WHITE =  "FFFFFF",
	GREEN = "00FF00",
	BLUE =   "0072BC",
	PURPLE = "A864A8",
	ORANGE = "F68E56",
	GOLD = "FFA37D50",
	}

inventory.lua

Code: Select all

--	ITEMCOLORS table is defined in item.lua
	local function sellColor(_itemcolor)
		--debugMsg(settings.profile.options.DEBUG_AUTOSELL,"FARBTEST",string.upper(_itemcolor));
		for i,v in pairs(hf_quality_table) do
		-- debugMsg(settings.profile.options.DEBUG_AUTOSELL,ITEMCOLOR[string.upper(v)], string.upper(v), string.upper(_itemcolor));
			if( ITEMCOLOR[string.upper(v)] == string.upper(_itemcolor) ) then
i think something is wrong with the tonumber function

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#38 Post by Administrator » Sat Jan 09, 2010 11:35 pm

No, it works fine. You just have one or more files that weren't updated properly.

raff
Posts: 96
Joined: Thu Jan 22, 2009 10:46 am

Re: SVN 395: Autosell with check for durability and stats

#39 Post by raff » Tue Jan 12, 2010 9:27 pm

Hi,

I get sometimes this error when bot is selling items to a vendor

Code: Select all

D:/bot/rom/scripts/classes/inventory.lua:474: attempt to compare number
with nil
This will not happen everytime, have someone got this problem, too?

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN 395: Autosell with check for durability and stats

#40 Post by Administrator » Wed Jan 13, 2010 2:30 am

Try changing line 474 of inventory.lua to this:

Code: Select all

		if( slotitem  and  tonumber(slotitem.Id) > 0 ) then
That should fix it.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest