Hello people from windbot, recently the market functions have been introduced in bot and i've seen that no one use's then, i don't have big knowledge on scripting but i've always found myself thinking in some logic with the functions i do know how to use... so i've designed a made by myself market function (haven't used user options yet)
There you go:
Step 1 - Create a persistent script with the following code:
You need to edit ItemsToSell and ItemsValueToSell tables according to your area and value of server
-- Use Market To Sell Looted Items? --- Made by Ragekemi
SellItemsMarket = "yes"
ItemsToSell = {"Crystal Necklace", "Giant Sword", "War Axe", "Steel Boots", "Titan Axe", "Behemoth Trophy", "Terra Legs", "Terra Mantle", "Medusa Shield", "Terra Amulet", "Knight Armor", "Sacred Tree Amulet"}
ItemsValueToSell = {250, 15500, 10500, 29000, 3000, 18500, 10000, 10000, 8000, 1200, 4500, 2500}
You can see there's 2 Tables, the first one is for the string name of items you want to sell after every round, the second one the amount you want to sell. Example: In my world people pay around 70~80% of the value of its so you can set around those values.
Step 2 - Create an Action Waypoint after your Depot Waypoint:
Step 3 - Insert in the Market Action Waypoint
-- Made by Ragekemi
if SellItemsMarket == "yes" then
openmarket()
for a = 1, #ItemsToSell do
for i = a, #ItemsValueToSell do
sellitemsmarket(ItemsToSell[a], ItemsValueToSell[a], 9999,true)
end
end
end
There you go, it'll sell everything for the amount of price set, if there's no offer it'll create a sell offer at that value.
This way is the easiest i've found so far on my knowledge of the bot, on near future i'll release it using user options.