PDA

View Full Version : Anyone know how to add a players name to a variable?



Kyrandos
07-09-2008, 07:58 PM
Anyone know how to add a players name into a variable? Require lich?

Drew2
07-09-2008, 08:59 PM
If you need that functionality you're probably writing a script that will get you banned.

Trust me on this.

Kyrandos
07-09-2008, 10:05 PM
If you need that functionality you're probably writing a script that will get you banned.

Trust me on this.

Advice taken.

Jinsem
07-10-2008, 04:30 AM
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)

g++
07-10-2008, 11:46 AM
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

g++
07-10-2008, 11:52 AM
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