Results 1 to 6 of 6

Thread: Auto drop vials?

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

    Auto drop vials?

    how do you write that code?

  2. #2
    Normal User
    Join Date
    Feb 2012
    Location
    Ottawa, Canada.
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    PHP Code:
    -- Config
        local toDrop 
    50 -- if flasks toDrop.
    -- do 
    not edit above

    function flasks()
        return 
    itemcount(283) +  itemcount(284) + itemcount(285)
    end

    function dropflasks()
        
    local flaskids = {283284285}
        for 
    1#flaskids do
            
    if itemcount(flaskids[i]) > 0 then
                moveitems
    (flaskids[i], 'ground')
                
    wait(400,600)
            
    end
        end
    end

    if flasks() > toDrop then
        dropflasks
    ()
        
    wait(800,1300)
    end 
    Cheers,
    WedNesDay.

  3. #3
    iBot User morgul's Avatar
    Join Date
    May 2012
    Location
    Poland, on Tibia Iridia
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    If u want drop vials when u killed all monsters then use it.

    id_vial : for exemple: 283, 284, 285
    amount vials: amount for exemple; 10


    Code:
    local id_vial = 283
    local amount_vials = 10
    if itemcount(id_vial) > amount_vials and maround() == 0 
    then moveitems(id_vial, 'ground') end
    or

    Code:
    if itemcount(283) > 20 and maround() == 0 
    then moveitems(283, 'ground') end

  4. #4
    Normal User Maniacos's Avatar
    Join Date
    Jun 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    --Vial
    local vialamount = 20

    if itemcount(284)+itemcount(283)+itemcount(285) > vialamount then
    moveitems(284,'ground')
    moveitems(283,'ground')
    moveitems(285,'ground')
    end

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Action for wednesday works good..
    A fim de uma graninha extra... seus problemas acabaram acesse agora mesmo o maior site de cliques do mundo e ganha dinheiro clicando:

    http://www.neobux.com/?rh=7269636B676F73

  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Australia, w.a
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    23
    Rep Power
    5
    thanks for that script wednesday works great

Posting Permissions

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