Need help to make a fool-proof autosell function or how-to

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Need help to make a fool-proof autosell function or how-to

#1 Post by AngelDrago » Wed Jun 12, 2013 5:14 am

Hello Gurus,

Ok. i have been testing this for a while know and i can not get this to work at all it will not sell anything but it does repair stuff that is good.. but the sell function for some reason is not working for me at all... what do i do wrong in this script or is maybe an different script interfering..yuicks please help...

see script below... and thx for the help
<?xml version="1.0" encoding="utf-8"?><waypoints>

<!-- # 1 --><waypoint x="-6907" z="-8030" y="1453" tag="rerun"> changeProfileOption("HARVEST_DISTANCE", 200);
yrest(100);
player:merchant("Don Cheyk");
yrest(100);
player:openStore(122089)
if sellbag1 == true
then RoMScript("Sellslots1()")
yrest(1000)
end
if sellbag2 == true
then RoMScript("Sellslots2()")
yrest(1000)
end
if sellbag3 == true
then RoMScript("Sellslots3()")
yrest(1000)
end
if sellbag4 == true
then RoMScript("Sellslots4()")
yrest(1000)
end
if sellbag5 == false
then RoMScript("Sellslots5()")
yrest(1000)
end
if sellbag6 == false
then RoMScript("Sellslots6()")
yrest(1000)
end

yrest(1000)
</waypoint>
<!-- # 2 --><waypoint x="-6826" z="-7905" y="1451"> </waypoint>
<!-- # 3 --><waypoint x="-6740" z="-7777" y="1449"> </waypoint>
<!-- # 4 --><waypoint x="-6667" z="-7653" y="1448"> </waypoint>
<!-- # 5 --><waypoint x="-6655" z="-7551" y="1437"> </waypoint>
<!-- # 6 --><waypoint x="-6618" z="-7348" y="1395"> </waypoint>
<!-- # 7 --><waypoint x="-6666" z="-7253" y="1393"> </waypoint>
<!-- # 8 --><waypoint x="-6688" z="-7159" y="1393"> </waypoint>
<!-- # 9 --><waypoint x="-6700" z="-7148" y="1391"> </waypoint>
<!-- # 10 --><waypoint x="-6723" z="-7103" y="1389"> </waypoint>
<!-- # 11 --><waypoint x="-6741" z="-7040" y="1389"> </waypoint>
<!-- # 12 --><waypoint x="-6803" z="-6844" y="1357"> </waypoint>
<!-- # 13 --><waypoint x="-6786" z="-6789" y="1357"> </waypoint>
<!-- # 14 --><waypoint x="-6787" z="-6711" y="1360"> </waypoint>
<!-- # 15 --><waypoint x="-6798" z="-6648" y="1361"> </waypoint>
<!-- # 16 --><waypoint x="-6853" z="-6488" y="1360"> </waypoint>
<!-- # 17 --><waypoint x="-6901" z="-6422" y="1360"> </waypoint>
<!-- # 18 --><waypoint x="-6935" z="-6393" y="1365"> </waypoint>
<!-- # 19 --><waypoint x="-6977" z="-6301" y="1356"> </waypoint>
<!-- # 20 --><waypoint x="-7047" z="-6321" y="1342"> </waypoint>
<!-- # 21 --><waypoint x="-7199" z="-6364" y="1315"> </waypoint>
checkdura()
bag()
if inventory:itemTotalCount(0) ~= 0 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
<!-- # 22 --><waypoint x="-7305" z="-6399" y="1314"> </waypoint>
<!-- # 23 --><waypoint x="-7400" z="-6421" y="1317"> </waypoint>
<!-- # 24 --><waypoint x="-7498" z="-6420" y="1322"> </waypoint>
<!-- # 25 --><waypoint x="-7529" z="-6423" y="1326"> </waypoint>
<!-- # 26 --><waypoint x="-7603" z="-6442" y="1318"> </waypoint>
<!-- # 27 --><waypoint x="-7739" z="-6508" y="1313"> </waypoint>
<!-- # 28 --><waypoint x="-7639" z="-6512" y="1314"> </waypoint>
<!-- # 29 --><waypoint x="-7542" z="-6581" y="1315"> </waypoint>
<!-- # 30 --><waypoint x="-7418" z="-6530" y="1315"> </waypoint>
<!-- # 31 --><waypoint x="-7362" z="-6613" y="1313"> </waypoint>
<!-- # 32 --><waypoint x="-7305" z="-6515" y="1314"> </waypoint>
<!-- # 33 --><waypoint x="-7186" z="-6444" y="1313"> </waypoint>
<!-- # 34 --><waypoint x="-7118" z="-6334" y="1324"> </waypoint>
<!-- # 35 --><waypoint x="-7054" z="-6295" y="1339"> </waypoint>
<!-- # 36 --><waypoint x="-6989" z="-6274" y="1355"> </waypoint>
<!-- # 37 --><waypoint x="-6944" z="-6158" y="1357"> </waypoint>
<!-- # 38 --><waypoint x="-6908" z="-6058" y="1364"> </waypoint>
<!-- # 39 --><waypoint x="-6830" z="-5955" y="1362"> </waypoint>
<!-- # 40 --><waypoint x="-6698" z="-5924" y="1361"> </waypoint>
<!-- # 41 --><waypoint x="-6524" z="-5922" y="1357"> </waypoint>
<!-- # 42 --><waypoint x="-6380" z="-6062" y="1357"> </waypoint>
<!-- # 43 --><waypoint x="-6282" z="-6065" y="1363"> </waypoint>
<!-- # 44 --><waypoint x="-5888" z="-5805" y="1364"> </waypoint>
<!-- # 45 --><waypoint x="-5901" z="-5665" y="1360"> </waypoint>
<!-- # 46 --><waypoint x="-5916" z="-5459" y="1359"> </waypoint>
<!-- # 47 --><waypoint x="-5898" z="-5338" y="1365"> </waypoint>
<!-- # 48 --><waypoint x="-5901" z="-5191" y="1359"> </waypoint>
<!-- # 49 --><waypoint x="-5963" z="-5140" y="1360"> </waypoint>
<!-- # 50 --><waypoint x="-6007" z="-5119" y="1357"> </waypoint>
<!-- # 51 --><waypoint x="-6198" z="-5050" y="1318"> </waypoint>
<!-- # 52 --><waypoint x="-6235" z="-5044" y="1318"> </waypoint>
<!-- # 53 --><waypoint x="-6358" z="-5052" y="1309"> </waypoint>
<!-- # 54 --><waypoint x="-6673" z="-5325" y="1315"> </waypoint>
<!-- # 55 --><waypoint x="-6896" z="-5146" y="1325"> </waypoint>
<!-- # 56 --><waypoint x="-6936" z="-5087" y="1342"> </waypoint>
<!-- # 57 --><waypoint x="-7014" z="-4996" y="1353"> </waypoint>
<!-- # 58 --><waypoint x="-7112" z="-4991" y="1355"> </waypoint>
<!-- # 59 --><waypoint x="-7243" z="-4989" y="1359"> changeProfileOption("HARVEST_DISTANCE", 200);
yrest(100);
player:merchant("Hayse Alon");
yrest(100);
player:openStore(122085)
if sellbag1 == true
then RoMScript("Sellslots1()")
yrest(1000)
end
if sellbag2 == true
then RoMScript("Sellslots2()")
yrest(1000)
end
if sellbag3 == true
then RoMScript("Sellslots3()")
yrest(1000)
end
if sellbag4 == true
then RoMScript("Sellslots4()")
yrest(1000)
end
if sellbag5 == false
then RoMScript("Sellslots5()")
yrest(1000)
end
if sellbag6 == false
then RoMScript("Sellslots6()")
yrest(1000)
end

yrest(1000)
</waypoint>
<!-- # 60 --><waypoint x="-7091" z="-5005" y="1356"> </waypoint>
<!-- # 61 --><waypoint x="-6982" z="-5041" y="1353"> </waypoint>
<!-- # 62 --><waypoint x="-6756" z="-5296" y="1314"> </waypoint>
<!-- # 63 --><waypoint x="-6702" z="-5368" y="1320"> </waypoint>
<!-- # 64 --><waypoint x="-6496" z="-5442" y="1310"> </waypoint>
<!-- # 65 --><waypoint x="-6521" z="-5571" y="1309"> </waypoint>
<!-- # 66 --><waypoint x="-6529" z="-5683" y="1324"> </waypoint>
<!-- # 67 --><waypoint x="-6563" z="-5749" y="1338"> </waypoint>
<!-- # 68 --><waypoint x="-6586" z="-5799" y="1350"> </waypoint>
<!-- # 69 --><waypoint x="-6750" z="-5931" y="1362"> </waypoint>
<!-- # 70 --><waypoint x="-6851" z="-6015" y="1360"> </waypoint>
<!-- # 71 --><waypoint x="-6870" z="-6094" y="1364"> </waypoint>
<!-- # 72 --><waypoint x="-6871" z="-6239" y="1358"> </waypoint>
<!-- # 73 --><waypoint x="-6859" z="-6323" y="1362"> </waypoint>
<!-- # 74 --><waypoint x="-6823" z="-6545" y="1360"> </waypoint>
<!-- # 75 --><waypoint x="-6781" z="-6858" y="1359"> </waypoint>
<!-- # 76 --><waypoint x="-6766" z="-6904" y="1371"> </waypoint>
<!-- # 77 --><waypoint x="-6748" z="-6958" y="1382"> </waypoint>
<!-- # 78 --><waypoint x="-6718" z="-7033" y="1389"> </waypoint>
<!-- # 79 --><waypoint x="-6673" z="-7185" y="1393"> </waypoint>
<!-- # 80 --><waypoint x="-6644" z="-7332" y="1393"> </waypoint>
<!-- # 81 --><waypoint x="-6640" z="-7419" y="1404"> </waypoint>
<!-- # 82 --><waypoint x="-6646" z="-7520" y="1428"> </waypoint>
<!-- # 83 --><waypoint x="-6682" z="-7669" y="1449"> </waypoint>
<!-- # 84 --><waypoint x="-6719" z="-7854" y="1451"> </waypoint>
<!-- # 85 --><waypoint x="-6731" z="-7961" y="1452"> </waypoint>
<!-- # 86 --><waypoint x="-6839" z="-7925" y="1450"> </waypoint>
<!-- # 87 --><waypoint x="-6904" z="-8030" y="1453"> changeProfileOption("HARVEST_DISTANCE", 200);
yrest(100);
player:merchant("Don Cheyk");
yrest(100);
player:openStore(122089)
if sellbag1 == true
then RoMScript("Sellslots1()")
yrest(1000)
end
if sellbag2 == true
then RoMScript("Sellslots2()")
yrest(1000)
end
if sellbag3 == true
then RoMScript("Sellslots3()")
yrest(1000)
end
if sellbag4 == true
then RoMScript("Sellslots4()")
yrest(1000)
end
if sellbag5 == false
then RoMScript("Sellslots5()")
yrest(1000)
end
if sellbag6 == false
then RoMScript("Sellslots6()")
yrest(1000)
end

yrest(1000)
</waypoint>
</waypoints>

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

Re: Need help to make a fool-proof autosell function or how-

#2 Post by lisa » Wed Jun 12, 2013 5:34 am

Ok 2 questions.

1. When is the variable "sellbag1" being set to true or false?

2. I have never heard of this ingame function, Sellslots2(), is it an addon?
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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Need help to make a fool-proof autosell function or how-

#3 Post by AngelDrago » Wed Jun 12, 2013 5:53 am

Hello Lisa... thank you for the reply....

1. When is the variable "sellbag1" being set to true or false?
I don't understand this question.. see below
2. I have never heard of this ingame function, Sellslots2(), is it an addon?
Yes, its an addon please see here...http://www.curse.com/addons/rom/sellmode

Or is their a better way to sell without the addon? and thank you again

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

Re: Need help to make a fool-proof autosell function or how-

#4 Post by rock5 » Wed Jun 12, 2013 8:28 am

Well the bot is super fast at selling these day, thanks to me :D, so there's no reason why you can't just let "player:merchant" do the selling with the appropriate autosell options in your profile.
I even added the ability to use your own item evaluation function with player:merchant for advanced users.
  • 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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Need help to make a fool-proof autosell function or how-

#5 Post by AngelDrago » Wed Jun 12, 2013 9:18 am

thank you for the input.. is their something i need to add in the wp file to be able to sell or can i leave it the way it is in the profile.aee below

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="180" /> 			<!-- 30 = last slot bag 1 -->
		<option name="INV_AUTOSELL_TYPES"    value="Weapons,Armor,Other" />		
		<option name="INV_AUTOSELL_QUALITY"	 value="white,green," /> 	<!-- white,green,blue,purple  -->
		<option name="INV_AUTOSELL_IGNORE"   value="Miller's Special Cake, Hero Potion,
		Invisibility Potion, Phirius Elixir - Type E, Phirius Elixir - Type C, Phirius Elixir - Type B, Phirius Elixir - Type A,
		Phirius Elixir - Type D, Phirius Elixir - Type C, Ancient Spirit Water, Spellweaver Potion, Dessert of Happiness, Mysticite,
		Dusk Orchid, Dark Crystal, Green Thistle, Phirius Potion - Type C, Phirius Potion - Type B, Phirius Potion - Type A, Phirius Potion - Type D, 
		Phirius Potion - Type E, Phirius Elixir - Type B, Phirius Special Water - Type E, Phirius Special Water - Type B, Phirius Special Water - Type A, Phirius Special Water - Type C, 
		Resistance iii, Resistance iv, Resistance v, Magic Bottle, Small Hoe, Magic iii, Magic iv, Magic v, Shell iii, Shell iv, Shell v, 
		Oak Lumber, Redwood Timber, Oak Timber, Redwood, Oak Wood, Endurance iii, Endurance iv, Endurance v, Mind iii, Mind iv, Mind v, Strike iii, Strike iv, 
		Strike v, Defense iii, Defense iv, Defense v, Vigor iii, Vigor iv, Vigor v, Elven Encyclopedia, Phirius Special Water - Type D, Small Spade,
		Wizard-Iron Ore, Touch of the Unicorn, Chocolate Cake, Moon Orchid Bundle, Egg Rice Dumplings, Straw Mushroom Bundle, Moon Orchid, Wizard-Iron Sand, 
		Wolfram Nail, Dragon Beard Root Plank,	Mithril Ingot, Magic Hormone, Transparent Jade, Ancient Fossil, Mist Emerald, Dilan'y Ring, Defense iii, Defense iv, 
		Defense v, Quickness iii, Quickness iv, Quickness v, Vitality iii, Vitality iv, Vitality v, Harm iii, Harm iv, Harm v, Soaring Tower Metal Stone, 
		Harvest God Star Stone, Parasol Tree Fiber, Wisdom God Star Stone, White Gold Nail, Sago Palm Fiber, Loaf of Magic Hard Bread, Serenstum, Rainbow Crystal Candy, 
		Moti Blended Sausage, Lettuce Sandwich,	Dinner of the Gods, Glimmering Long Boots of the Fort, Callous Halo Leg Guards, Shoulder Guards of a Thousand Feathers, 
		Moon Silver Ore, Mithril, Sinners Palm, Straw Mushroom, Grapefruit, Juice Concentrate, Tarslin Demon Wood, Sagewood, Fairywood Timber, Dragon Beard Root Wood, Yew Wood, Superior Collection Potion I, Superior Collection Potion II, Superior Collection Potion III," />

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

Re: Need help to make a fool-proof autosell function or how-

#6 Post by rock5 » Wed Jun 12, 2013 9:54 am

Wow, where did you get such a long ignore list?

As it's set up, it will sell only Weapons, Armor and Other. I think 'Other' should be spelt 'Others'.

All you need in the ignore list is any Weapons, Armor or Others items that you don't want to sell. I'm not sure what effect having such a long list will have. It may be fine but make sure you test it.

I think the spaces before each ignore item is ok but I'm not sure about the last comma in the list. I suggest you remove that to be sure.

You could also probably simplify things by using the INV_AUTOSELL_TYPES and INV_AUTOSELL_TYPES_NOSELL instead for a lot of those items.
  • 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

AngelDrago
Posts: 133
Joined: Fri May 06, 2011 10:39 am

Re: Need help to make a fool-proof autosell function or how-

#7 Post by AngelDrago » Wed Jun 12, 2013 10:53 am

cool i will try to simplify the list and will test it as well thank you rock5 for all the input i will notify you all of the results. And thank you again

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest