Thread

HELP ON XELABOT pleasee (Bots)

HELP ON XELABOT pleasee // Bots

1  |  

starcube.vr

May 21, 2001, 12:08am
Um on the script i have

$moderador = "StarCubE.VR"

How can i do to put more than one moderador

m a k a v e l i

May 21, 2001, 12:21am
Xelagot*

[View Quote]

xelag

May 22, 2001, 12:28pm
include a Text field with all the names in the area with subs and events:

Text Moderators
StarCube.VR
AMD
Evesolyn
XelaG
EndText

at the begining of your code:
var /s_Moderators
SListSetText /s_Moderators Moderators
(this reads your text field into a string list)

supposing $n has the name of a person, to check for the presence of the name
in the list:
IfSlistGetString /s_Moderators $n %c <DoSomethingHere>
Else <DoSomethingElse>
(%c has the index in the string list, 0 if it fails to find it)

XelaG

[View Quote]

who

May 23, 2001, 12:39pm
Hi,

Some extra help pleas (see below) :)

[View Quote] In this case I assume %c > 0 if the string $n is matched?

eg if string $n = XelaG then %c = 4?

If not, then what would it (%c) be? (Considering using this elsewhere)

--
Cheers,

Who

xelag

May 24, 2001, 4:51pm
For experts I say: look in the docs :)

Well, since it is an IF statement, the value of %c does not matter if it
fails (and is set to 0), but can be of value if it succeeds: indices in my
string lists start with 1. You can test it easily.

XelaG

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn