proc/GetCode() |
Where "Alphabet" is a pre-defined list. I've also tried:
proc/GetCode() |
Which one SHOULD I do? Thanks for your help/time in advance.
ID:170813
Dec 12 2004, 10:06 am
|
|||
How would I go about, "Adding up text strings, the RIGHT way?" So far, I have tried this:
Where "Alphabet" is a pre-defined list. I've also tried:
Which one SHOULD I do? Thanks for your help/time in advance. | |||
#1 Dec 12 2004, 10:10 am
|
|
with the COMBO = line, it's the same as above to my belief.
| |
Hell Ramen wrote:
with the COMBO = line, it's the same as above to my belief. Aiight, well, I was just curious because I left this running for about 10 hours and had not received one email about it, or page for that matter. | |
#3 Dec 12 2004, 10:29 am
|
|
hmmm, I wonder why you're not getting an error.
if this is just a proc, not a mob proc, client should be null. | |
Airjoe wrote:
hmmm, I wonder why you're not getting an error. Well, that isn't the EXACT proc, but the exact proc IS a mob proc. I just created a small proc on the fly for an example. | |
#5 Dec 12 2004, 10:59 am
|
|||
For one, you're using the options argument as multiple arguments. It's a text string that is converted using text2params(). So you'd do this:
Another way you could do that whole thing is to use associated lists:
Hope that helps. ~>Volte | |||
Aiight, thanks for all the help ya'll, I think I understand now :P
[EDIT] hrm..another question, is it possible to like, "suppress" the message that pops up for comfirmation after client.SendPage() ? | |
No, because it could be used for bad purposes.
e.g. Person A logs into your game. You use personA.SendPage() to page Person B with a mean message. That wouldn't be very good. | |
#8 Dec 12 2004, 11:28 am
|
|
Lenox wrote:
How would I go about, "Adding up text strings, the RIGHT way?" <code>proc/AddUpTextString(letters=6) var/string = "" for(letters, letters>0, letters--) string += pick(Alphabet) return string</code> The proc's argument is the number of letters to have in the string. It will return the random string you wanted, for whatever reason. | |