Results 1 to 3 of 3

Thread: Action bugg, first script

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Action bugg, first script

    So, I'm trying to make my first script but it keeps bugging at the spearbuyer.
    It's like my Setup doesnt exist, it doesnt follow my inputs in the setup.

    Here's my setup:
    Code:
    -- Bp's 
    
    mainbp = 'Golden Backpack'
    lootbp = 'Blue Backpack'
    
    -- Supps
    
    hppot = "health potion" -- Type of hp potion you want to buy.
    hpbuy = 7 -- Ammount of hp potions you want to buy.
    hpleave = 3 -- Ammount of hp potions to go deposit.
    spearsbuy = 5  -- Remember, you loot theese!
    goldleave = 3500 -- Ammount of GP to go deposit.
    And here's the spearbuyer:

    Code:
    local SpearToBuy = spearsbuy - weaponamount
    
    opentrade()
    buyitemsupto("Spear", SpearToBuy) wait(1000)
    npcsay("bye") wait(600)
    It buys spears for all the cash that it took out of the bank, so it cant afford pots.
    Any help is appreciated!

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Nvm, noob mistake.

    Solved it! *proud*

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks for the action bro

Posting Permissions

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