Results 1 to 3 of 3

Thread: A little waypoint/action help please

  1. #1
    Normal User
    Join Date
    Aug 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    A little waypoint/action help please

    New to the botting world and cant figure out whats wrong with the script im using, everytime i goto mana shop in svargrond it tries buying snake bite rod instead of manas. Has anyone else had this problem? The script im using is frost giants, it runs great until it comes to buying/replacing manas :/ here are the setups for the waypoints it dont like, i have no clue so if someone could help id appreciate it! It takes the amount of money out perfect just when it goes to the mana NPC.


    if ischannel("NPCs") then
    npcsay("hi")
    wait(500,1500)
    npcsay("trade")
    else
    say("hi")
    wait(1500,2000)
    npcsay("trade")
    end
    for i=283,285 do
    local count = itemcount(i)
    while count > 0 do
    sellitems(i, count)
    wait(100,300)
    count = itemcount(i)
    end
    end
    wait(300,900)

    npcsay("trade")

    buyitemsupto(ManaID, ManaToBuy)
    buyitemsupto(PotID, PotToBuy)

    *next waypoint after above is*

    if (itemcount(ManaID) < (ManaToBuy)) or (itemcount(PotID) < (PotToBuy)) then
    gotolabel("way_bank")
    end

  2. #2
    Focus Group Spike33's Avatar
    Join Date
    Jun 2012
    Posts
    378
    Mentioned
    31 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    23 Post(s)
    Reputation
    55
    Rep Power
    5
    copy paste your actions setup

  3. #3
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    You can delete the local if u have it in Actions/Setup

    PHP Code:
    local ManaID "Mana Potion"
    local PotID "Health Potion"
    local ManaToBuy 200 amount of buy
    local PotToBuy 
    50 -- amount of buy

    opentrade
    ()
    wait(800,1400)
    sellflasks()
    wait(800,1400)
    buyitemsupto(ManaIDManaToBuy,itemcount(ManaID))
    wait(500,900)
    buyitemsupto(PotIDPotToBuy,itemcount(PotID))
    wait(500,900)
    npcsay('Bye'

Tags for this Thread

Posting Permissions

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