Results 1 to 4 of 4

Thread: ID?

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    ID?

    A HUD that shows the id of the item?

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    addtext(cursorinfo().id, 50, 50)

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Eldar View Post
    Lua Code:
    addtext(cursorinfo().id, 50, 50)
    Thanks buddy, could also verify that this Action is not working, it checks if buy the right potion, but does not work perfectly.

    PS: ignore the comments of the setup in Portuguese.

    Setup:

    PHP Code:
    -- Setup (Configurações):

    -- 
    Configurações da Backpack do Char:

    MainBP "Blue Backpack" -- Backpack principal.
    PotionsBP "Camouflage Backpack" -- Backpack dos Potions.
    LootBP "Backpack" -- Backpack dos Loot.
    GoldBP "Red Backpack" -- Backpack dos Gold.

    -- 
    Configurações da Backpack do Depot

    MainDPBP "Backpack" -- Backpack principal do Depot.
    StackableDPBP "Greey Backpack" -- Backpack das Stack do Depot.
    LootDPBP "Orange Backpack" -- Backpack dos Loot do Depot.

    -- 
    Configurações dos Potions:

    MPname "Mana Potion" -- Mana Potions.
    MPprice 50 -- Preço das Mana Potions.
    MPtobuy 50 -- Quantas Mana Potion deseja comprar?
    MPtoback 10 -- Com quantas Mana Potion o Char vai pro Reffil?
    HPname "Health Potion" -- Health Potions.
    HPprice 45 -- Preço dos Health Potions.
    HPtobuy 30 -- Quantas Health Potions deseja comprar?
    HPtoback 10 -- Com quantas Health Potions o Char vai pro Reffil?

    -- 
    Labels:

    Captoback 20 -- Cap para ir pro Reffil
    buyPOTIONS:

    PHP Code:
    closewindows()
    wait(5001000)
    openitem(MainBP'back')
    wait(5002000)
    resizewindows() 
    wait(5001500)
    openitem(PotionsBPMainBPtrue)
    wait(5002000)
    minimizewindows("equip")
    wait(5001000)
    resizewindows() 
    wait(500,900)
    sellflasks()
    wait(500,900)
    opentrade()
    wait(5001000)
    if 
    itemcount(HPname) < HPtobuy then
    buyitemsupto
    (HPnameHPtobuy)
    end
    wait
    (500,1000)
    buyitemsupto(MPnameMPtobuy)
    npcsay('bye')
    wait(500,1000
    checkPOTIONS:

    PHP Code:
    if itemcount(MPname) < MPtobuy and itemcount(HPname) < HPtobuy then
    gotolabel
    ("buyPOTIONS")
    end 

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    PHP Code:
    if (itemcount(MPname) < MPtobuy or itemcount(HPname) < HPtobuythen 
    gotolabel
    ("buyPOTIONS"
    end 
    I changed and to or

Posting Permissions

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