Results 1 to 5 of 5

Thread: Drop vials

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

    Drop vials

    Can anybody help me out, i need an action to drop vials in certain cap for example 100 cap.

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    local POTIONS = {283,284,285}
    local AMOUNT = {10,30}
    local CAP_TO_DROP 100

    if (cap <= CAP_TO_DROPthen
        
    for 1#POTIONS do
            
    if (itemcount(POTIONS[i]) >= math.random(unpack(AMOUNT))) then
                moveitems
    (POTIONS[i],"all",ground(posx,posy,posz),100)
            
    end
        end  
    end 
    btw, wrong forum.
    Last edited by soder; 12-15-2012 at 10:26 AM.

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    ok i will give it a try thanks for replying.

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Overly complicated.



    PHP Code:
    if cap 100 then dropvials() end 
    Last edited by pink_panther; 12-15-2012 at 10:36 AM.

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    soder's action is working for me just fine but thanks for your answer pink panther

Posting Permissions

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