XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Potion next to the shop

  1. #1

    Join Date
    Apr 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Potion next to the shop

    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

  2. #2
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    You could make a simple loop in the walker to do that, it's not super safe though

  3. #3

    Join Date
    Apr 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, what do You recommend?
    I want to make mlvl 85 on my mage. I have couple days voucher.
    Thanks for answer!

  4. #4

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    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
    Code:
    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
    Last edited by yompa93; 05-02-2016 at 09:10 PM.

  5. #5
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    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
    Code:
    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

    lua code:

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


    REMEMBER TO SAY THANKS.

  6. #6

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    Check if flask and sell all types of flasks

    lua code:

    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.

  7. #7

    Join Date
    May 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Oscagi View Post
    Check if flask and sell all types of flasks

    lua code:

    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.

  8. #8

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    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) > 0then --using all of the mana potions
            
    while (Self.ItemCount(PotionName) > 0) do
                if 
    Self.CanCastSpell(prio1then
                Self
    .Cast(prio1)
                elseif (
    not Self.CanCastSpell(prio1)) then
                
    if Self.CanCastSpell(prio2then
                Self
    .Cast(prio2)
                elseif (
    not Self.CanCastSpell(prio2)) then
                
    if Self.CanCastSpell(prio3then
                Self
    .Cast(prio3)
                
    end
            end
        end
    end
        
    else -- we must buy more potions
            
    --firstlysell flasks..
            
    Self.SayToNpc({"hi""trade"}, 100)
            if (
    Self.Flasks() > 0then
                
    while (Self.Flasks() > 0) do
                
    Self.ShopSellFlasks()
                
    end        
            end
            
            
    -- lets buy potions
            
    if (Self.Money() > 0then -- just to reduce amount of gold coins (wasting cap)
                while (
    Self.ItemCount(3031) > PotionPrice) do
                    
    Self.ShopBuyItem(PotionID1)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 100 10)) and (Self.Money() > PotionPrice 100)) do
                    
    Self.ShopBuyItem(PotionID100)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 10 10)) and (Self.Money() > PotionPrice 10)) do
                    
    Self.ShopBuyItem(PotionID10)
                    
    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:

    PHP Code:
    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) > 0then
            Self
    .UseItemWithFollow(PotionID)
        elseif (
    Self.Flasks() >= 0then
                
    while (Self.Flasks() > 0) do
                    
    Self.SayToNpc({"hi""trade"}, 100)
                    
    Self.ShopSellFlasks()
                
    end
            
    -- lets buy potions
            
    if (Self.Money() > 0then -- just to reduce amount of gold coins (wasting cap)
                while (
    Self.ItemCount(3031) > PotionPrice) do
                    
    Self.ShopBuyItem(PotionID1)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 100 10)) and (Self.Money() > PotionPrice 100)) do
                    
    Self.ShopBuyItem(PotionID100)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 10 10)) and (Self.Money() > PotionPrice 10)) do
                    
    Self.ShopBuyItem(PotionID10)
                    
    sleep(math.random(300,900))
                
    end
            end
        end
        sleep
    (math.random(600,1400))
    end 
    Last edited by yompa93; 05-05-2016 at 05:17 PM.

  9. #9

    Join Date
    Sep 2015
    Posts
    25
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yompa93 View Post
    PHP Code:
    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) > 0then --using all of the mana potions
            
    while (Self.ItemCount(PotionName) > 0) do
                if 
    Self.CanCastSpell(prio1then
                Self
    .Cast(prio1)
                elseif (
    not Self.CanCastSpell(prio1)) then
                
    if Self.CanCastSpell(prio2then
                Self
    .Cast(prio2)
                elseif (
    not Self.CanCastSpell(prio2)) then
                
    if Self.CanCastSpell(prio3then
                Self
    .Cast(prio3)
                
    end
            end
        end
    end
        
    else -- we must buy more potions
            
    --firstlysell flasks..
            
    Self.SayToNpc({"hi""trade"}, 100)
            if (
    Self.Flasks() > 0then
                
    while (Self.Flasks() > 0) do
                
    Self.ShopSellFlasks()
                
    end        
            end
            
            
    -- lets buy potions
            
    if (Self.Money() > 0then -- just to reduce amount of gold coins (wasting cap)
                while (
    Self.ItemCount(3031) > PotionPrice) do
                    
    Self.ShopBuyItem(PotionID1)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 100 10)) and (Self.Money() > PotionPrice 100)) do
                    
    Self.ShopBuyItem(PotionID100)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 10 10)) and (Self.Money() > PotionPrice 10)) do
                    
    Self.ShopBuyItem(PotionID10)
                    
    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:

    PHP Code:
    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) > 0then
            Self
    .UseItemWithFollow(PotionID)
        elseif (
    Self.Flasks() >= 0then
                
    while (Self.Flasks() > 0) do
                    
    Self.SayToNpc({"hi""trade"}, 100)
                    
    Self.ShopSellFlasks()
                
    end
            
    -- lets buy potions
            
    if (Self.Money() > 0then -- just to reduce amount of gold coins (wasting cap)
                while (
    Self.ItemCount(3031) > PotionPrice) do
                    
    Self.ShopBuyItem(PotionID1)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 100 10)) and (Self.Money() > PotionPrice 100)) do
                    
    Self.ShopBuyItem(PotionID100)
                    
    sleep(math.random(300,900))
                
    end
                
                
    while ((Self.Cap() > (ratio 10 10)) and (Self.Money() > PotionPrice 10)) do
                    
    Self.ShopBuyItem(PotionID10)
                    
    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...7-manatraining

  10. #10

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by yoyoa1 View Post
    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...7-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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •