Results 1 to 3 of 3

Thread: Withdraw cash?

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

    Withdraw cash?

    Hey i try to do my own script its my setup:

    PHP Code:
    --------------Backpack Setup----------------

    mainBP "moon backpack" -- Main Backpack
    lootBP 
    "blue backpack"       -- Loot Backpack
    goldBP 
    "brocade backpack"     -- GP Backpack
    potionBP 
    "orange backpack"    -- Potions Backpack
        

    --------------Depo Setup--------------------

    mainDPbp "Yellow Backpack" -- Main DEPO Backpack
    addonDPbp 
    "Golden Backpack"      -- Addon DEPO Backpack
    itemsDPBp 
    "Brown Backpack"   -- Items DEPO Backpack


    --------------Potion Setup--------------------

        --
    Manas Settings:
        
    nameMP "mana potion"
        
    MPbuy "100"
        
    MPleave "150"
     

        
    --Great Health Potion Settings:
        
    Pbuy "100"
        
    Pleave "20" 
    And the action (dont work)

    PHP Code:
    local ManaCash positive(MPbuy itemcount(nameMP)) * priceManaPot
    local HealthCash 
    positive(Pbuy itemcount(nameP)) * pricePot
    local SoftCash 
    0

    if RefillSofts then
        Soft 
    = (itemcount("worn soft boots") * 10000)
    end
    local TotalCash 
    ManaCash HealthCash HiHealthCash SoftCash 2000

    if gold() < TotalCash then
    gotolabel
    ('bank1')
    end 
    so can some1 tell me whats wrong

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

  3. #3
    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
    You set integers as strings.
    PHP Code:
    --------------Backpack Setup---------------- 

    mainBP "moon backpack" -- Main Backpack 
    lootBP 
    "blue backpack"       -- Loot Backpack 
    goldBP 
    "brocade backpack"     -- GP Backpack 
    potionBP 
    "orange backpack"    -- Potions Backpack 
         

    --------------Depo Setup-------------------- 

    mainDPbp "Yellow Backpack" -- Main DEPO Backpack 
    addonDPbp 
    "Golden Backpack"      -- Addon DEPO Backpack 
    itemsDPBp 
    "Brown Backpack"   -- Items DEPO Backpack 


    --------------Potion Setup-------------------- 

        --
    Manas Settings
        
    nameMP "mana potion" 
        
    MPbuy 100 
        MPleave 
    150
      

        
    --Great Health Potion Settings
        
    Pbuy 100
        Pleave 
    20 

Posting Permissions

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