Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)
Moderator: Moderators
-
[F6]PsyKoMaN
- Posts: 4
- Joined: 2004-03-09 13:34
Post
by [F6]PsyKoMaN » 2004-03-09 13:38
Does anybody know this??
I working on commands for operators only, the commands work, the only problem is that everyone on the hub can see them when they are typed in. How can I hide the commands an operator typed??
Tnx
I know we all gotta go, but I'd hate to go fast ... then again I don't think it'd be fun to stick around and go last !!
-
Todi
- Forum Moderator
- Posts: 699
- Joined: 2003-03-04 17:16
Post
by Todi » 2004-03-09 13:39
The solution to your problem is different on almost all hubsoftwares, please specify which one you are using (Yhub, PtokaX, NMDC etc).
-
[F6]PsyKoMaN
- Posts: 4
- Joined: 2004-03-09 13:34
Post
by [F6]PsyKoMaN » 2004-03-09 13:42
NMDC
I know we all gotta go, but I'd hate to go fast ... then again I don't think it'd be fun to stick around and go last !!
-
[F6]PsyKoMaN
- Posts: 4
- Joined: 2004-03-09 13:34
Post
by [F6]PsyKoMaN » 2004-03-09 17:09
i also need a function that returns a random number between 1 and 3
i tried:
Code: Select all
Dim R as New Random()
Dim iRnd
iRnd = R.Next(1, 3)
But that doesn't work in a NMDC script

I know we all gotta go, but I'd hate to go fast ... then again I don't think it'd be fun to stick around and go last !!
-
Todi
- Forum Moderator
- Posts: 699
- Joined: 2003-03-04 17:16
Post
by Todi » 2004-03-09 17:26
There is no really existing solution to your problem in that hubsoft, so the best solution is to use a Private Message to a botname for the commands instead. If you really, really want to use them in mainchat, check out
Gadget's Hubmod. You'll need to disable mainchat and route it through a script instead.
For the number, it's been awhile since i did vbscript, but this is how you randomize anyway, hope it helps.
(i think it's like that anyway)

-
[F6]PsyKoMaN
- Posts: 4
- Joined: 2004-03-09 13:34
Post
by [F6]PsyKoMaN » 2004-03-09 18:11
I already found that random function in the meanwhile
Code: Select all
Dim iRnd
Randomize Timer
iRnd = cint(2 * Rnd) + 1
this code works for me
I know we all gotta go, but I'd hate to go fast ... then again I don't think it'd be fun to stick around and go last !!
-
Todi
- Forum Moderator
- Posts: 699
- Joined: 2003-03-04 17:16
Post
by Todi » 2004-03-09 18:38
Aha, you're right. You can probably just specify the upper number to randomize to, so the lowest one is 0 (that's why you need the +1). However, i don't think you need the Randomize Timer, and Int() and cInt() most likely has the same effect on non-decimal numbers.
Users browsing this forum: Google [Bot] and 0 guests