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
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