Results 1 to 6 of 6

Thread: Script Help

  1. #1

    Default Script Help

    I'm trying to rewrite ;surge into a script that will run burst of swiftness in the same capacity but I'm running into some issues.

    This is essentially a copy and paste from ;surge but with the cool down spell id change to bursts cool down:
    Code:
    loop{
    wait_until{ !Spell[9051].active and checkstamina > 40 }
    if Spell[9699].active
    poptime = Spell[9699].remaining
    echo "your muscles are popped, you must wait #{poptime}"
    wait_while{ Spell[9699].active }
    fput “cman burst”
    elsif
    fput “cman burst”
    end
    sleep 1
    }
    But when I try to run ;cmanburst (what the file name is) I get this:
    Code:
    >;cman
    --- Lich: cmanburst active.
    --- Lich: error: undefined local variable or method `burst”' for main:Object
    	cmanburst:16:in `block in _script'
    	cmanburst:8:in `loop'
    --- Lich: cmanburst has exited.
    Although it will run if my muscles are popped and I'm in the cool down period but will exit once the cool down resets.

    FYI I have no idea what I'm doing but maybe something went wonky when I converted the .txt file to a .lic file and its not showing up when I view the text. I'm using a Mac running El Capitan.

  2. #2

    Default

    Quote Originally Posted by wetsand View Post
    I'm trying to rewrite ;surge into a script that will run burst of swiftness in the same capacity but I'm running into some issues.

    This is essentially a copy and paste from ;surge but with the cool down spell id change to bursts cool down:
    Code:
    loop{
    wait_until{ !Spell[9051].active and checkstamina > 40 }
    if Spell[9699].active
    poptime = Spell[9699].remaining
    echo "your muscles are popped, you must wait #{poptime}"
    wait_while{ Spell[9699].active }
    fput “cman burst”
    elsif
    fput “cman burst”
    end
    sleep 1
    }
    But when I try to run ;cmanburst (what the file name is) I get this:
    Code:
    >;cman
    --- Lich: cmanburst active.
    --- Lich: error: undefined local variable or method `burst”' for main:Object
    	cmanburst:16:in `block in _script'
    	cmanburst:8:in `loop'
    --- Lich: cmanburst has exited.
    Although it will run if my muscles are popped and I'm in the cool down period but will exit once the cool down resets.

    FYI I have no idea what I'm doing but maybe something went wonky when I converted the .txt file to a .lic file and its not showing up when I view the text. I'm using a Mac running El Capitan.
    Try deleting and retyping the quotation marks.

  3. #3

    Default

    Tried that and rewriting everything line by line.

    This is the message I get once the cool down resets:

    Code:
    Your muscles feel much less strained than they did a moment ago.
    --- Lich: error: undefined local variable or method `burst”' for main:Object
    	cmanburst:14:in `block in _script'
    	cmanburst:8:in `loop'
    --- Lich: cmanburst has exited.
    Last edited by wetsand; 05-04-2017 at 07:31 PM.

  4. #4

    Default

    After some headaches I used terminal to copy ;surge and edit the copy and bam it works now.

  5. #5

    Default

    My guess is you typed and retyped the code in Word... Smart quotes screws everything up. IMO Notepad++ is your friend. Try copying and pasting the below code with regular quotes.

    Code:
    loop{
    wait_until{ !Spell[9051].active and checkstamina > 40 }
    if Spell[9699].active
    poptime = Spell[9699].remaining
    echo "your muscles are popped, you must wait #{poptime}"
    wait_while{ Spell[9699].active }
    fput "cman burst"
    elsif
    fput "cman burst"
    end
    sleep 1
    }

  6. #6

    Default

    Missed the Mac El Captain part..

Similar Threads

  1. Learn how to script with this simple hunting script
    By Tgo01 in forum The Lich Project
    Replies: 69
    Last Post: 08-24-2020, 03:20 PM
  2. adding a custom script to my script folder
    By sentral in forum The Lich Project
    Replies: 1
    Last Post: 08-09-2016, 10:05 AM
  3. Replies: 19
    Last Post: 02-03-2010, 09:49 PM
  4. In Search of COL Script and a Huntin Script...
    By Gizmo in forum Scripting Discussion
    Replies: 5
    Last Post: 01-13-2005, 06:15 PM
  5. Pookas: Smart cone script and 906 bolt script.
    By J-Tech in forum Scripting Discussion
    Replies: 27
    Last Post: 01-15-2004, 03:06 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
  •