Results 1 to 3 of 3

Thread: Bank Action Decides to do nothing

  1. #1

    Join Date
    Oct 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question Bank Action Decides to do nothing

    Hello,

    I'm working on a banking action but whatever I put in the action it doesn't even say hi.
    I've made a simple NPC action before but this time it just doesn't do anything >.>

    Here's my code
    PHP Code:
    if not islocation() then
    gotolabel
    ('start_banking')
    else

    local ManaCash positive(MPbuy itemcount(MPname)) * PriceMP
    local HealthCash 
    positive(HPbuy itemcount(HPname)) * PriceHP

    local TotalCash 
    ManaCash HealthCash

    ---< Talking >---
    say("hi")
    wait(1300,1450)
    npcsay("deposit all")
    wait(300,450)
    npcsay("yes")
    wait(300,450)
    npcsay('withdraw '..TotalCash)
    wait(100200)
    npcsay('yes')
    wait(100200)
    end

    npcsay
    ('balance')
    wait(100200)

    end 
    I have no clue where it goes wrong :/

    Kind regards,

  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
    One end too much.
    PHP Code:
    if not islocation() then 
        gotolabel
    ('start_banking'
    else 
        
    local ManaCash positive(MPbuy itemcount(MPname)) * PriceMP 
        local HealthCash 
    positive(HPbuy itemcount(HPname)) * PriceHP 

        local TotalCash 
    ManaCash HealthCash 

        say
    ("hi"
        
    wait(1300,1450
        
    npcsay("deposit all"
        
    wait(300,450
        
    npcsay("yes"
        
    wait(300,450
        
    npcsay('withdraw '..TotalCash
        
    wait(100200
        
    npcsay('yes'
        
    wait(100200)
        
    npcsay('balance'
        
    wait(100200)     
    end 

  3. #3

    Join Date
    Oct 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thank you very much sir!

Posting Permissions

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