Results 1 to 4 of 4

Thread: Action to buy supplies

  1. #1
    Normal User
    Join Date
    Feb 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    236
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Action to buy supplies

    I need an action to buy supplies (mana and health potions), if it's possible I'd like to each stack of potions that the bot buy I want the bot to push it to the supplies bp.
    Example: Bot will buy 120 manas and 5 ultimates.
    Buy 100 manas
    Push those manas to supplies bp
    Buy 20 manas
    Push those manas to supplies bp
    Buy 5 ultimates
    Push those ultimates to supplies bp

    PS: I USE SETUP!!!

  2. #2
    Normal User orimorfus's Avatar
    Join Date
    Mar 2012
    Location
    MOVED TO INFERNA
    Posts
    222
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    21
    Rep Power
    5
    this is my SETUP

    PHP Code:
    -- SETUP HERE -- 


    BP_MAIN 'Purple Backpack'  -- MAIN  BP IN EQUIPMTENT SLOT
    BP_RARE 
    'Red Backpack'     -- BACKPACK FOR LOOT (one in one must be in BP_MAIN)
    BP_GOLD 'Blue Backpack'    -- BACKPACK FOR GOLD (one in one must be in BP_MAIN)
    BP_SUPPLIES 'Beach Backpack' -- BACKPACK FOR SUPPLIES (must be as first bp in BP_MAIN)


    DP_BP_STACKABLE 'Orange Backpack'  -- BACKPACK IN DEPOT CHEST FOR STACKABLE LOOT
    DP_BP_RARE 
    'Fur Backpack' -- BACKPACK FOR RARE LOOT IN DEPOT CHEST


    MP_COUNT 
    900  -- MANA POTIONS TO START EXP
    GHP_COUNT 
    50  -- GREAT HEALTH POTIONS TO START EXP
    UHP_COUNT 
    75 -- ULTIMATE HEALTH POTION TO START EXP


    MP_BACK 
    200 -- MANA POTIONS TO START REFIL
    GHP_BACK 
    30 -- GREAT HEALTH POTION TO START REFIL
    UHP_BACK 
    30 -- ULTIAMTE HEALTH POTION TO START REFIL
    CAP_BACK 
    150 -- CAP TO START REFIL
    STAMINA_BACK 
    -- STAMINA TO LEAVE EXP AND LOGOUT 
    and this is my action in mana shoop
    its buying potions, closing supplies backpack, moving potions to supplies backpack and reopening it..


    PHP Code:
    if islocation(10) and not islocation() then
    gotolabel
    ('MANA') else
    say('hi')
    wait(1500,2000)
    npcsay('trade')
    while 
    itemcount('mana potion') < MP_COUNT and islocation() do
    buyitemsupto('mana potion',MP_COUNT ,itemcount('mana potion'))
    wait(200)
    end
    while itemcount('Great Health potion') < GHP_COUNT and islocation() do
    buyitemsupto('great health potion',GHP_COUNT ,itemcount('great health potion'))
    wait(200)
    end
    while itemcount('ultimate health potion') < UHP_COUNT and islocation() do
    buyitemsupto('ultimate health potion',UHP_COUNT ,itemcount('ultimate health potion'))
    wait(200)
    end


    while windowcount(BP_SUPPLIES) ~= do
    closewindow(BP_SUPPLIES)
    end
    resizewindow
    (BP_MAIN,5)
    while 
    itemcount('mana potion')+itemcount('great health potion')+itemcount('ultimate health potion') ~= do
    moveitemsonto('mana potion',BP_MAIN,BP_SUPPLIES,100,0)
    wait(100,300)
    moveitemsonto('great health potion',BP_MAIN,BP_SUPPLIES,100,0)
    wait(100,300)
    moveitemsonto('ultimate health potion',BP_MAIN,BP_SUPPLIES,100,0)
    wait(100,300)
    end
    while windowcount(BP_SUPPLIES) ~=do
    openitem(BP_SUPPLIES,BP_MAIN,true,0)
    wait(300,450)
    resizewindows()
    end
    resizewindows
    ()
    end 

    I hope it will help you
    Last edited by orimorfus; 05-05-2012 at 02:14 PM.

  3. #3
    Normal User
    Join Date
    Feb 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    236
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Not working here, here is my setup:

    PHP Code:
    -- Setup

    -- Backpack Setup:
    MainBP "Backpack of Holding" -- The Main BP.
    SupplyBP "Dragon Backpack" -- BP to mana and health potions.
    LootBP "Jewelled Backpack" -- Looting BP.
    GoldBP "Beach Backpack" -- BP to gold
    MainDPBP "Brown Backpack" -- Main backpack on DP.
    StackableDPBP "Yellow Backpack" -- BP to deposit stackable loot on dp.
    LootDPBP "Yellow Backpack" -- BP to deposit loot on dp.

    -- 
    Potions Setup:
    MPname "mana potion" -- Name of mana potion.
    MPprice 50 -- Price of mana potion to buy.
    MPtobuy 500 -- How many mana potions to buy?
    MPtoback 30 -- How many potions to back reffil?
    HPname "ultimate health potion" -- Name of health potion.
    HPprice 310 -- Price of health potion to buy
    HPtobuy 
    100 -- How many potions buy?
    HPtoback 50 -- How many potions to back reffil

  4. #4
    Normal User orimorfus's Avatar
    Join Date
    Mar 2012
    Location
    MOVED TO INFERNA
    Posts
    222
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    21
    Rep Power
    5
    you're doing sth wrong , maybe your action isn't placed next to mana shoop and islocation() dont work. here its working perfect.. just edit variables

Posting Permissions

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