Log in

View Full Version : Hive Loot Seller/Mana Buyer



retsamfrost
02-16-2016, 09:32 PM
im looking for simple script that sells creature products and then after that sells vials > buys manas
and then if possible puts the bought manas into BP 4 (thats just extra tho)
ive been trying to get it my older scripts to work but it doesnt so i can really use help


local creatureID = { 14225, 14079, 14083, 14081, 14076, 14080 }

local PotionMin = 300 -- Potions to deposit on.
local PotionMax = 700 -- Amount of Potions to buy.
local PotionName = "mana potion" -- Name of Potions.
local PotionPrice = 50 -- How much Potions cost.

registerEventListener(WALKER_SELECTLABEL, "SelectLabel")

function SelectLabel(Label)
if (Label == "Check") then
if (Self.ItemCount(PotionName) < PotionMin) then
gotoLabel("GoTrade")
end
end
if (Label == "Trade") then
Walker.Stop()
Creature.New("Rock in a Hard Place"):Follow()
Self.SayToNpc({'hi', 'trade', 'creature products'}, 65)
wait(2000,3000)
Self.ShopSellAllItems({creatureID})
Self.SayToNpc({'bye'})
wait(500,1000)


if (Self.ItemCount(PotionName) < PotionMax) then
Self.SayToNpc({"hi", "vials", "yes", "trade", "magic stuff"}, 65)
wait(2000)
Self.ShopBuyItemsUpTo(PotionName, PotionMax)
wait(2000)
Walker.Start()

end

end

this is what i came up with so far but its obviously not working properly

any help for this Hive seller would be greatly appreciated

retsamfrost
02-17-2016, 09:30 PM
got the mana buyer part working now i just need the seller anybody know how to ?

Oscagi
02-17-2016, 10:20 PM
Here (http://forums.xenobot.net/showthread.php?40805-Hive-loot-seller&p=470497#post470497) u have my script of loot seller.

Here (http://forums.xenobot.net/showthread.php?40805-Hive-loot-seller&p=471079#post471079) u have the seller from Jontor. More easy to add items.