Results 1 to 6 of 6

Thread: Anyone know how to add a players name to a variable?

  1. #1
    Join Date
    Sep 2007
    Location
    Manchester, NH
    Posts
    286

    Default Anyone know how to add a players name to a variable?

    Anyone know how to add a players name into a variable? Require lich?

  2. Default

    If you need that functionality you're probably writing a script that will get you banned.

    Trust me on this.

  3. #3
    Join Date
    Sep 2007
    Location
    Manchester, NH
    Posts
    286

    Default

    Quote Originally Posted by Drew2 View Post
    If you need that functionality you're probably writing a script that will get you banned.

    Trust me on this.
    Advice taken.

  4. #4

    Default

    Quote Originally Posted by Drew2 View Post
    If you need that functionality you're probably writing a script that will get you banned.

    Trust me on this.
    Or your a godly MA'r and you don't want to have near 3k scripts in your script folder. I have nearly 1k as is, and I use close to the "functionality" asked for.

    I don't think I'm banned, just flagged, and definately not for scripting

    Jinsem
    Wizard FE MA Scripter God.
    (Not BOT's)

  5. #5
    Join Date
    Dec 2006
    Location
    Baltimore
    Posts
    4,033

    Default

    If you look at gibreficuls script, which is posted here somewhere, one of the modules for his picking script had that functionality written into SF

  6. #6
    Join Date
    Dec 2006
    Location
    Baltimore
    Posts
    4,033

    Default

    I think I understand how this works I marked the relevant parts you would need to port the routine to another script


    debug off
    setvariable word
    START
    match abc You accept <------Heres were he grabs the name
    match DISARME You pick up
    match ACCEPT offers you
    match WAIT have no offers to
    match ACCEPT has accepted your offer
    match WAIT Both of your hands are full.
    match GIVE Your offer to %customer%
    match GIVE has expired
    match wait is no longer holding

    put accept
    matchwait

    GIVE
    put give %customer%
    goto start
    put .waitbox

    DISARME
    setvariable customer %me%
    DISARM
    put .setbox

    WAIT
    match ACCEPT Offers you
    match ACCEPT has accepted your offer
    match GIVE has expired
    match DISARME You pick up
    matchwait

    ACCEPT
    match abc You accept
    match WAIT have no offers to
    match WAIT Both of your hands are full.
    match wait is no longer holding
    put accept
    matchwait



    abc <-------comes down here and grabs first letter i think
    matchre a ^ai
    matchre b ^bi
    matchre c ^ci
    matchre d ^di
    matchre e ^ei
    matchre f ^fi
    matchre g ^gi
    matchre h ^hi
    matchre i ^ii
    matchre j ^ji
    matchre k ^ki
    matchre l ^li
    matchre m ^mi
    matchre n ^ni
    matchre o ^oi
    matchre p ^pi
    matchre q ^qi
    matchre r ^ri
    matchre s ^si
    matchre t ^ti
    matchre u ^ui
    matchre v ^vi
    matchre w ^wi
    matchre x ^xi
    matchre y ^yi
    matchre z ^zi
    matchre done 'i
    matchre done '$
    matchwait


    <-------this keeps appending the next letter to the first till the name is
    saved as word I think
    a
    setvariable word %word%a
    goto abc
    b
    setvariable word %word%b
    goto abc
    c
    setvariable word %word%c
    goto abc
    d
    setvariable word %word%d
    goto abc
    e
    setvariable word %word%e
    goto abc
    f
    setvariable word %word%f
    goto abc
    g
    setvariable word %word%g
    goto abc
    h
    setvariable word %word%h
    goto abc
    i
    setvariable word %word%i
    goto abc
    j
    setvariable word %word%j
    goto abc
    k
    setvariable word %word%k
    goto abc
    l
    setvariable word %word%l
    goto abc
    m
    setvariable word %word%m
    goto abc
    n
    setvariable word %word%n
    goto abc
    o
    setvariable word %word%o
    goto abc
    p
    setvariable word %word%p
    goto abc
    q
    setvariable word %word%q
    goto abc
    r
    setvariable word %word%r
    goto abc
    s
    setvariable word %word%s
    goto abc
    t
    setvariable word %word%t
    goto abc
    u
    setvariable word %word%u
    goto abc
    v
    setvariable word %word%v
    goto abc
    w
    setvariable word %word%w
    goto abc
    x
    setvariable word %word%x
    goto abc
    y
    setvariable word %word%y
    goto abc
    z
    setvariable word %word%z
    goto abc
    space
    setvariable customer %word%
    goto abc
    done
    setvariable customer %word%<--------resets word as customer and uses it in another part of the script later
    goto DISARM
    Last edited by g++; 07-10-2008 at 11:54 AM.

Similar Threads

  1. Variable to take into consideration RT
    By The in forum Miscellaneous Scripts
    Replies: 7
    Last Post: 01-13-2013, 12:54 PM
  2. Variable interaction
    By JustDan in forum The Lich Project
    Replies: 1
    Last Post: 12-04-2011, 09:38 AM
  3. SLoot variable
    By Kinslar in forum The Lich Project
    Replies: 3
    Last Post: 09-30-2011, 04:54 PM
  4. Replies: 0
    Last Post: 09-29-2011, 02:54 PM
  5. Replies: 5
    Last Post: 08-25-2011, 05:28 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
  •