Results 1 to 1 of 1

Thread: Action not working help

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

    Action[SOLVED]

    local suppliesMoney = calcSupplies({{mpName, mpToBuy}, {ghpName, ghpToBuy}, {uhpName, uhpToBuy}})

    local TotalMoney = math.ceil((suppliesMoney + itemcount("worn soft boots") * 10000 + 3000) / 1000) * 1000





    local NPC = "Ebenizer"

    local x = findcreature(NPC)

    if x == -1 then

    gotolabel("atBank")

    return

    elseif x > 0 then

    wait(RAND_TIME)

    _npcTalk("hi", "deposit all", "yes", "balance", "withdraw "..TotalMoney, "yes", "balance")

    wait(RAND_TIME)

    end



    if stamina < 14*60 then

    logout() closetibia() message("Client closed due low stamina, character: "..name)

    return

    end



    if gold() < Money then

    goBack()

    return

    end


    This action is not working my character just stay there in front of npc for a few secs then leave
    Last edited by hcapelas; 10-22-2013 at 06:44 PM.

Posting Permissions

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