Results 1 to 4 of 4

Thread: Safe Bank

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

    Safe Bank

    action:
    PHP Code:
    local npcname 'Jefrey'

    local index 
    local msgs 
    getnewmessages()
    local qtd msgs.count-1
    for i=0,qtd do
       if 
    msgs[qtd].sender == npcname and msgs[qtd].text:find("There is not enough gold on your account.") and msgs[qtd].type == 5 then
          setcavebot
    ('off')
          
    wait(5000,10000)
          
    closetibia()
       
    end
    end 
    error =
    06:36 : LUA:PersistentAction - LuaInterface.LuaScriptException: [string "chunk"]:4: invalid arguments to method call

    Line 4 =
    PHP Code:
    local msgs getnewmessages() 
    Any know why that dont work good ?

  2. #2
    Normal User
    Join Date
    Sep 2012
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    Quote Originally Posted by Ropiderz View Post
    Because getnewmessages() raise an error if you don't specify what channel you want to get the messages.

    Use getnewmessages("NPCs")
    haha Well I see Thx Work fine now

  3. #3
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    good to know thanks for post rossie.
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  4. #4
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Thanks guys!
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

Posting Permissions

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