Results 1 to 4 of 4

Thread: Alguem pode me ajudar com essa action?

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    17
    Rep Power
    5

    Alguem pode me ajudar com essa action?

    Esse é o setup

    PHP Code:
    -------- Script Setup ---------

    PvP true
    UseSoftsBoots 
    true
    DefaultBoots 
    "boots of haste"
    UseStake true
    UseKnife 
    true
    UseMount 
    false


    -------- Backpack setup -------- 

    MainBP "Backpack of Holding"
    SupplyBP "Heart Backpack"
    LootBP "Moon Backpack"
    GoldBP "Jewelled Backpack"

    MainDPBP "Backpack"
    LootDPBP "Brocade backpack"
    StackDPBP "Golden Backpack"
    FoodDPBP "Camouflage Backpack"

    -------- Supplies setup -------- 

    ManaName "strong mana potion"
    ManaToBuy 200
    ManaPrice 
    80
    RuneName 
    "Avalanche Rune"
    RuneToBuy 200
    RunePrice 
    45

    -------- Hunt Setup ---------

    ManaToLeave 50
    CapToLeave 
    50
    RuneToLeave 
    50 

    E essa é a action que não esta funcionando!

    PHP Code:
    closewindows()
    wait(1000,1500)

    if 
    windowcount(MainBP) == 0 then
        openitem
    (MainBP,"back")
       
    wait(800,1000)
       
    resizewindows()
    end

    wait
    (800,1000)

    if 
    windowcount(SupplyBP) == 0 then
        openitem
    (SupplyBPMainBPtrue)
       
    wait(800,1000)
       
    resizewindows()
    end

    wait
    (800,1000)

    local ManaCash positive(ManaToBuy itemcount(ManaName)) * ManaPrice
    local RuneCash 
    positive(RuneToBuy itemcount(RuneName)) * RunePrice
    local SoftCash 
    0

    if UseSoftsBoots  then
        SoftCash 
    itemcount("worn soft boots") * 10000
    end

    local TotalCash 
    ManaCash RuneCash SoftCash 5000

    say
    ('hi'
    wait(14001800)

    npcsay('deposit all')
    wait(100200)
    npcsay('yes')
    wait(100200)
    npcsay('withdraw '..TotalCash)
    wait(100200)
    npcsay('yes')
    wait(100200)
    npcsay('balance')
    wait(100200)

    end 

  2. #2
    Normal User tinicius's Avatar
    Join Date
    Nov 2012
    Location
    Minas Gerais, Brazil.
    Posts
    457
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    38
    Rep Power
    5
    PHP Code:
    local ManaCash positive(ManaToBuy itemcount(ManaName)) * ManaPrice 
    local RuneCash 
    positive(RuneToBuy itemcount(RuneName)) * RunePrice 
    local softs 
    positive(itemcount('worn soft boots')) * 10000
    local Total 
    ManaCash RuneCash softs 3000

    say
    ("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300
    npcsay("yes")
    wait(200,300

    if 
    Total 0 then   
       npcsay
    ("withdraw "..Total)   
       
    wait(200,300)    
       
    npcsay("yes")   
       
    wait(200,300)
       
    npcsay("Balance")
       
    wait(200,300)
    end 
    tenta usar esse aí

    edit:

    ou então troca isso
    PHP Code:
    if UseSoftsBoots  then 
        SoftCash 
    itemcount("worn soft boots") * 10000 
    end 
    pra isso

    PHP Code:
    if UseSoftsBoots  then 
    local    SoftCash 
    itemcount("worn soft boots") * 10000 
    end 
    Last edited by tinicius; 04-14-2013 at 05:40 PM.
    If i helped you rep+


    Scripter
    Selling EK 410 w/ 87 days of voucher AND 390 ED w/ 6 days of voucher BOTH PVP
    Actions That You May Need Here!

  3. #3
    iBot User
    Join Date
    Apr 2012
    Posts
    117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    17
    Rep Power
    5
    Quote Originally Posted by tinicius View Post
    PHP Code:
    local ManaCash positive(ManaToBuy itemcount(ManaName)) * ManaPrice 
    local RuneCash 
    positive(RuneToBuy itemcount(RuneName)) * RunePrice 
    local softs 
    positive(itemcount('worn soft boots')) * 10000
    local Total 
    ManaCash RuneCash softs 3000

    say
    ("hi")
    wait(1500,2500)
    npcsay("deposit all")
    wait(200,300
    npcsay("yes")
    wait(200,300

    if 
    Total 0 then   
       npcsay
    ("withdraw "..Total)   
       
    wait(200,300)    
       
    npcsay("yes")   
       
    wait(200,300)
       
    npcsay("Balance")
       
    wait(200,300)
    end 
    tenta usar esse aí

    edit:

    ou então troca isso
    PHP Code:
    if UseSoftsBoots  then 
        SoftCash 
    itemcount("worn soft boots") * 10000 
    end 
    pra isso

    PHP Code:
    if UseSoftsBoots  then 
    local    SoftCash 
    itemcount("worn soft boots") * 10000 
    end 

    Funcionou perfeitamente muito obrigado

  4. #4
    Normal User tinicius's Avatar
    Join Date
    Nov 2012
    Location
    Minas Gerais, Brazil.
    Posts
    457
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    38
    Rep Power
    5
    por nada, precisando tamo ae!

    agradeceria muito o rep+ u.u
    If i helped you rep+


    Scripter
    Selling EK 410 w/ 87 days of voucher AND 390 ED w/ 6 days of voucher BOTH PVP
    Actions That You May Need Here!

Posting Permissions

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