Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Why it doesnt work?

  1. #1
    Banned
    Join Date
    Nov 2012
    Location
    雪のきらい。
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

    Why it doesnt work?

    Heya i was trying to do new script, but my action dont work.
    Whats wrong here, long time without scripting but on NeoBot i was like god..

    Setup

    Code:
    8888888b.                                     888    d8b          
    888  "Y88b                                    888    Y8P          
    888    888                                    888                 
    888    888  .d88b.   .d8888b 888d888  .d88b.  888888 888 .d8888b  
    888    888 d8P  Y8b d88P"    888P"   d8P  Y8b 888    888 88K      
    888    888 88888888 888      888     88888888 888    888 "Y8888b. 
    888  .d88P Y8b.     Y88b.    888     Y8b.     Y88b.  888      X88 
    8888888P"   "Y8888   "Y8888P 888      "Y8888   "Y888 888  88888P'
    			    	&
    -------------------------     JezoL     -------------------------
    
    
    
    
    --  Backpack Dp:
    		DpBp = "Purple Backpack"
    		Stackbp = "Beach Backpack"
    		Lootbpdp = "Red Backpack"
    
    --  Backpack char:
    		Mainbp = "Moon backpack"
    		Lootbp = "blue Backpack"
    		Goldbp = "brocade Backpack"
    		Suppbp = "Orange Backpack"
    
    --  Supplies options:
    		Mftake = 350 -- How much mf your char will buy
    		Sdtake = 100 -- How much sds your char will buy
    
    --  Hunt options:
    		Manatoleave = 50
    		Captoleave = 50
    		Softboots = true -- True if use or false if exp without soft
    		WorldPVP = true
    And here is the option to open bps + withdraw cash.

    Code:
    --Setting up Backpack
    
    if not islocation() then
    gotolabel('go_bank')
    end
    
    wait(400, 800)
    openitem(Mainbp, 'back')
    wait(400, 700)
    resizewindow(Mainbp, 0)
    wait(400, 700)
    
    openitem(Suppbp, Mainbp, true)
    wait(400, 700)
    resizewindow(Suppbp, 0)
    wait(400, 600)
    
    end
    local ManaCash = positive(Mftake - itemcount(Mfname)) * Mfprice
    local SDCash = positive(Sdtake - itemcount(Sdname)) * Sdprice
    local SoftCash = 0
    
    if RefillSofts then
        SoftCash = (itemcount("worn soft boots") * 10000)
    end
    
    local TotalCash = ManaCash + SDCash + SoftCash + 5000
    
    say('hi') 
    wait(1600, 2000)
    
    npcsay('deposit all')
    wait(300, 600)
    npcsay('yes')
    wait(300, 600)
    npcsay('withdraw '..TotalCash)
    wait(300, 600)
    npcsay('yes')
    wait(300, 600)
    npcsay('balance')
    wait(300, 600)
    
    end
    That action totally dont work, why?

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    help->debug

    Check what is says

  3. #3
    Banned
    Join Date
    Nov 2012
    Location
    雪のきらい。
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    add mfprice and sdprice to the setup

  5. #5
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Its your setup which is the ASCII.

    use --

  6. #6
    Banned
    Join Date
    Nov 2012
    Location
    雪のきらい。
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    Okay now is like

    Code:
    --  8888888b.                                     888    d8b          
    --  888  "Y88b                                    888    Y8P          
    --  888    888                                    888                 
    --  888    888  .d88b.   .d8888b 888d888  .d88b.  888888 888 .d8888b  
    --  888    888 d8P  Y8b d88P"    888P"   d8P  Y8b 888    888 88K      
    --  888    888 88888888 888      888     88888888 888    888 "Y8888b. 
    --  888  .d88P Y8b.     Y88b.    888     Y8b.     Y88b.  888      X88 
    --  8888888P"   "Y8888   "Y8888P 888      "Y8888   "Y888 888  88
    --
    --
    --  Backpack Dp  --
    -- 		DpBp = "purple backpack"
    -- 		Stackbp = "beach backpack"
    -- 		Lootbpdp = "red backpack"
    -- 
    --  Backpack char  --
    -- 		Mainbp = "backpack of holding"
    -- 		Lootbp = "brocade backpack"
    -- 		Goldbp = "golden backpack"
    -- 		Suppbp = "orange backpack"
    -- 
    --  Mana options --
    -- 		Mftake = 350
    -- 		Mfname = "strong mana potion"
    -- 		Mfprice = 80
    -- 
    -- Runes options --
    -- 		Sdtake = 100
    -- 		Sdname = "sudden death rune"
    -- 		Sdprice = 108
    -- 
    --  Hunt options --
    -- 		Manatoleave = 50
    -- 		Captoleave = 50
    -- 		Softboots = true -- True if use or false if exp without soft
    -- 		WorldPVP = true
    And still nothing. I had everything bu just copy beta setup.
    Last edited by Decretis; 01-20-2013 at 05:57 PM.

  7. #7
    Banned
    Join Date
    Nov 2012
    Location
    雪のきらい。
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    Dunno whats wrong, I did everything like on Neo..



    Just problem now with the action.
    Last edited by Decretis; 01-20-2013 at 06:04 PM.

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by decretis View Post
    okay now is like

    Code:
    --  8888888b.                                     888    d8b          
    --  888  "y88b                                    888    y8p          
    --  888    888                                    888                 
    --  888    888  .d88b.   .d8888b 888d888  .d88b.  888888 888 .d8888b  
    --  888    888 d8p  y8b d88p"    888p"   d8p  y8b 888    888 88k      
    --  888    888 88888888 888      888     88888888 888    888 "y8888b. 
    --  888  .d88p y8b.     Y88b.    888     y8b.     Y88b.  888      x88 
    --  8888888p"   "y8888   "y8888p 888      "y8888   "y888 888  88
    --
    --
    --  backpack dp  --
    -- 		dpbp = "purple backpack"
    -- 		stackbp = "beach backpack"
    -- 		lootbpdp = "red backpack"
    -- 
    --  backpack char  --
    -- 		mainbp = "backpack of holding"
    -- 		lootbp = "brocade backpack"
    -- 		goldbp = "golden backpack"
    -- 		suppbp = "orange backpack"
    -- 
    --  mana options --
    -- 		mftake = 350
    -- 		mfname = "strong mana potion"
    -- 		mfprice = 80
    -- 
    -- runes options --
    -- 		sdtake = 100
    -- 		sdname = "sudden death rune"
    -- 		sdprice = 108
    -- 
    --  hunt options --
    -- 		manatoleave = 50
    -- 		captoleave = 50
    -- 		softboots = true -- true if use or false if exp without soft
    -- 		worldpvp = true
    and still nothing. I had everything bu just copy beta setup.


    HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA

    OH god... I laughed so hard.


    You need to just add the "-- " infront of your ASCII graphics.

    So just this bit:
    Code:
    --  8888888b.                                     888    d8b          
    --  888  "Y88b                                    888    Y8P          
    --  888    888                                    888                 
    --  888    888  .d88b.   .d8888b 888d888  .d88b.  888888 888 .d8888b  
    --  888    888 d8P  Y8b d88P"    888P"   d8P  Y8b 888    888 88K      
    --  888    888 88888888 888      888     88888888 888    888 "Y8888b. 
    --  888  .d88P Y8b.     Y88b.    888     Y8b.     Y88b.  888      X88 
    --  8888888P"   "Y8888   "Y8888P 888      "Y8888   "Y888 888  88

    And your labels or notes, like
    Code:
    --  backpack dp

    To sum up, anything typed after "--" is ignored until a new line is started.




    IF you take another look at your first debut, it said a malformed number on line 1:8888888b.

    which is the top of the D and because 8888888b is nothing

    adding -- to the start, makes the bot to ignore everything on that line


    Hope that clears things up
    Last edited by pink_panther; 01-20-2013 at 06:15 PM.

  9. #9
    Banned
    Join Date
    Nov 2012
    Location
    雪のきらい。
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0
    Thanks for help pink, sorry today its second day of my scripts adventure.

    Just last error is:
    22:23 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:38: '' expected near 'end'

  10. #10
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Quote Originally Posted by Decretis View Post
    Thanks for help pink, sorry today its second day of my scripts adventure.

    Just last error is:
    22:23 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:38: '' expected near 'end'

    Thats your cavebot action.

    Look near line 38~

Posting Permissions

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