View Full Version : Potion next to the shop
florkrzych
05-02-2016, 09:55 AM
Hi,
this is my first post. I have some kk's to waste and I want to train my 26lvl sorc. I need a script which can buy potions staying next to npc and sell empty potion flasks. I can't wrise script myself, and i didn't found what i want :(
For example:
I have cap for 200 mana potions, when less than 50 potions bot sell vials and buy 200 again. I'm before computer screen and look from time to time.
Sorry for my english, I'm from Poland.
Thanks for Your help :)
Infernal Bolt
05-02-2016, 11:36 AM
You could make a simple loop in the walker to do that, it's not super safe though :D
florkrzych
05-02-2016, 11:50 AM
So, what do You recommend?
I want to make mlvl 85 on my mage. I have couple days voucher.
Thanks for answer! :)
yompa93
05-02-2016, 07:36 PM
Stand next to the npc with trade open and run this script, but change the spells first
I do not take credit for this script since i didnt make it, but i dont know who made it either so credits goes to @somerandomdude
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
local PotionName = "mana potion"
while(true) do
if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
while (Self.ItemCount(PotionName) > 0) do
if Self.CanCastSpell("exevo gran mas flam") then
Self.Cast("exevo gran mas flam")
elseif (not Self.CanCastSpell("exevo gran mas flam")) then
if Self.CanCastSpell("utana vid") then
Self.Cast("utana vid")
elseif (not Self.CanCastSpell("utana vid")) then
if Self.CanCastSpell("exura vita") then
Self.Cast("exura vita")
if (Self.Mana() < 2000) then
Self.UseItemWithMe(PotionID)
sleep(math.random(200,500))
end
end
end
end
end
else -- we must buy more potions
--firstly, sell flasks..
if (Self.Flasks() > 0) then
while (Self.Flasks() > 0) do
if (Self.ItemCount(283) > 0) then
Self.ShopSellAllItems(283)
end
if (Self.ItemCount(284) > 0) then
Self.ShopSellAllItems(284)
end
if (Self.ItemCount(285) > 0) then
Self.ShopSellAllItems(285)
end
end
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
Oscagi
05-03-2016, 05:28 AM
Stand next to the npc with trade open and run this script, but change the spells first
I do not take credit for this script since i didnt make it, but i dont know who made it either so credits goes to @somerandomdude
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
local PotionName = "mana potion"
while(true) do
if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
while (Self.ItemCount(PotionName) > 0) do
if Self.CanCastSpell("exevo gran mas flam") then
Self.Cast("exevo gran mas flam")
elseif (not Self.CanCastSpell("exevo gran mas flam")) then
if Self.CanCastSpell("utana vid") then
Self.Cast("utana vid")
elseif (not Self.CanCastSpell("utana vid")) then
if Self.CanCastSpell("exura vita") then
Self.Cast("exura vita")
if (Self.Mana() < 2000) then
Self.UseItemWithMe(PotionID)
sleep(math.random(200,500))
end
end
end
end
end
else -- we must buy more potions
--firstly, sell flasks..
if (Self.Flasks() > 0) then
while (Self.Flasks() > 0) do
if (Self.ItemCount(283) > 0) then
Self.ShopSellAllItems(283)
end
if (Self.ItemCount(284) > 0) then
Self.ShopSellAllItems(284)
end
if (Self.ItemCount(285) > 0) then
Self.ShopSellAllItems(285)
end
end
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
Check if flask and sell all types of flasks
if (Self.Flasks() > 0) then
Sell.ShopSellFlasks()
end
Instead of use Self.ItemCount(3031) for the money use Self.Money() (It Counts gp, platinums and CC).
yompa93
05-03-2016, 05:59 AM
Check if flask and sell all types of flasks
if (Self.Flasks() > 0) then
Sell.ShopSellFlasks()
end
Instead of use Self.ItemCount(3031) for the money use Self.Money() (It Counts gp, platinums and CC).
I honestly havent looked at the script since i grabbed it a few months back. well, not more than needed. Like i said, it's not my creation.
yolodota
05-05-2016, 01:55 PM
Check if flask and sell all types of flasks
if (Self.Flasks() > 0) then
Sell.ShopSellFlasks()
end
Instead of use Self.ItemCount(3031) for the money use Self.Money() (It Counts gp, platinums and CC).
Where I should add this in the original code? Thanks.
yompa93
05-05-2016, 02:46 PM
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
local PotionName = "mana potion"
--Spells
prio1 = "exevo gran mas vis"
prio2 = "utana vid"
prio3 = "exura vita"
while(true) do
if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
while (Self.ItemCount(PotionName) > 0) do
if Self.CanCastSpell(prio1) then
Self.Cast(prio1)
elseif (not Self.CanCastSpell(prio1)) then
if Self.CanCastSpell(prio2) then
Self.Cast(prio2)
elseif (not Self.CanCastSpell(prio2)) then
if Self.CanCastSpell(prio3) then
Self.Cast(prio3)
end
end
end
end
else -- we must buy more potions
--firstly, sell flasks..
Self.SayToNpc({"hi", "trade"}, 100)
if (Self.Flasks() > 0) then
while (Self.Flasks() > 0) do
Self.ShopSellFlasks()
end
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
Made it abit different, more user friendly i guess.
Use the support tab for potions, or use another script to do it.
I can also add the Mana on follow if you need it:
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
while(true) do
if (Self.ItemCount(PotionID) > 0) then
Self.UseItemWithFollow(PotionID)
elseif (Self.Flasks() >= 0) then
while (Self.Flasks() > 0) do
Self.SayToNpc({"hi", "trade"}, 100)
Self.ShopSellFlasks()
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
yoyoa1
05-07-2016, 10:20 AM
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
local PotionName = "mana potion"
--Spells
prio1 = "exevo gran mas vis"
prio2 = "utana vid"
prio3 = "exura vita"
while(true) do
if (Self.ItemCount(PotionName) > 0) then --using all of the mana potions
while (Self.ItemCount(PotionName) > 0) do
if Self.CanCastSpell(prio1) then
Self.Cast(prio1)
elseif (not Self.CanCastSpell(prio1)) then
if Self.CanCastSpell(prio2) then
Self.Cast(prio2)
elseif (not Self.CanCastSpell(prio2)) then
if Self.CanCastSpell(prio3) then
Self.Cast(prio3)
end
end
end
end
else -- we must buy more potions
--firstly, sell flasks..
Self.SayToNpc({"hi", "trade"}, 100)
if (Self.Flasks() > 0) then
while (Self.Flasks() > 0) do
Self.ShopSellFlasks()
end
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
Made it abit different, more user friendly i guess.
Use the support tab for potions, or use another script to do it.
I can also add the Mana on follow if you need it:
local ratio = 2.7 -- 100 mana potions = 270.00oz
local PotionID = Item.GetID("mana potion")
local PotionPrice = 50
while(true) do
if (Self.ItemCount(PotionID) > 0) then
Self.UseItemWithFollow(PotionID)
elseif (Self.Flasks() >= 0) then
while (Self.Flasks() > 0) do
Self.SayToNpc({"hi", "trade"}, 100)
Self.ShopSellFlasks()
end
-- lets buy potions
if (Self.Money() > 0) then -- just to reduce amount of gold coins (wasting cap)
while (Self.ItemCount(3031) > PotionPrice) do
Self.ShopBuyItem(PotionID, 1)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 100 + 10)) and (Self.Money() > PotionPrice * 100)) do
Self.ShopBuyItem(PotionID, 100)
sleep(math.random(300,900))
end
while ((Self.Cap() > (ratio * 10 + 10)) and (Self.Money() > PotionPrice * 10)) do
Self.ShopBuyItem(PotionID, 10)
sleep(math.random(300,900))
end
end
end
sleep(math.random(600,1400))
end
Thanks for it, I used your potion buyer script with an another spell caster script I found on another thread which was way water to burn the mana.
Got ML87 to ML96 wasting 19.5kk in 24 hours (ultimate mana potion, life ring, soft boots and food) with a voucher (so 3x faster).
Surprisingly I encountered 4 (maybe 5) players at the place I was and I was afk for just one guy so I didn't get mass reported, let's see if I'll survive the cip automatic ban tool :P
http://forums.xenobot.net/showthread.php?42497-manatraining
yompa93
05-07-2016, 10:55 AM
Thanks for it, I used your potion buyer script with an another spell caster script I found on another thread which was way water to burn the mana.
Got ML87 to ML96 wasting 19.5kk in 24 hours (ultimate mana potion, life ring, soft boots and food) with a voucher (so 3x faster).
Surprisingly I encountered 4 (maybe 5) players at the place I was and I was afk for just one guy so I didn't get mass reported, let's see if I'll survive the cip automatic ban tool :P
http://forums.xenobot.net/showthread.php?42497-manatraining
Good to hear :) You should check out my hotkey script aswell, there's a mana trainer with antipush in there(not on hotkey but command)
dinmamma
05-07-2016, 09:53 PM
-edit-
wops wrong thread lol.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.