Results 1 to 3 of 3

Thread: Problem with buying ammo

  1. #1
    zami84's Avatar
    Join Date
    May 2012
    Posts
    316
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    48
    Rep Power
    5

    Problem with buying ammo

    PHP Code:
    wait(10001200)
    npcsay("trade")
    wait(10001200)
    npcsay("ammunition")
    wait(10001200)


    local amountammo AmmoMax-itemcount(AmmoType)
    while 
    amountammo do
    buyitems(AmmoTypeamountammo)
    wait(200,800)
    moveitems(AmmoTypeMainBPSupplyBP100)
    wait(250,500)
    amountMPamountammo 100
    wait
    (400,600)
    end 
    For me - looks fine. But bot standing and trying to buy bolts all-the-time. Even when the maximum value is exceeded ...

  2. #2
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    PHP Code:
    wait(10001200
    npcsay("trade"
    wait(10001200
    npcsay("ammunition"
    wait(10001200


    local amountammo AmmoMax-itemcount(AmmoType
    while 
    amountammo do 
    buyitems(AmmoTypeamountammo
    wait(200,800
    moveitems(AmmoTypeMainBPSupplyBP100
    wait(250,500
    amountammo amountammo 100 
    wait
    (400,600
    end 
    Try this.

  3. #3
    zami84's Avatar
    Join Date
    May 2012
    Posts
    316
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    48
    Rep Power
    5
    OMG. silly mistake.

Posting Permissions

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