Name: Programming
====================================================================
Message Number: 1
Date: Mon Mar 23 07:14:08 1998 PST
From: Vampire (#1113)
To: *Programming (#597)
Subject: island ontology
There is a small object that might be of assistance to folks just onto
the island. Grab you web browser and check out all the generics :
http://necro.mcc.ac.uk:6666/533
There is quite a bit of flexiblity in its coding, so if anyone wants an
overview map, compass, containment diagram . . .
====================================================================
Message Number: 2
Date: Tue Mar 24 06:21:04 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: New @verbs
I have added a new @verbs thing to the generic player. It's a bit handier than the old one, in that you can specify what verbs you wanna list.
Help @verbs will give more info.
Wildcard
====================================================================
Message Number: 3
Date: Tue Mar 24 06:21:45 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: Ooooops
Previous Post:
I mean the generic programmer ;)
Wildcard
====================================================================
Message Number: 4
Date: Tue Apr 21 06:30:12 1998 PDT
From: SQuiZZY (#631)
To: *Programming (#597)
Subject: user input
is it possible to do something like this:
X = $command_utils:read(player);
without it saying "enter a line... bnlah blah..."
please?
thanks
Al.
====================================================================
Message Number: 5
Date: Tue Apr 21 08:50:42 1998 PDT
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: read()
The $command_utils:read gives the "line" thing. Use 'read()' instead.
Wildcard
====================================================================
Message Number: 6
Date: Tue Apr 21 08:56:58 1998 PDT
From: Triton (#302)
To: Father_Wildcard (#3) and *Programming (#597)
Subject: Re: read()
but we all know of course:
Read can only be called by a wizard or the player being read from. If you want to read from other players, you should probably use $command_utils:read() instead.
So, this is a real problem.
====================================================================
Message Number: 7
Date: Tue Apr 21 10:32:42 1998 PDT
From: active (#1222)
To: *Programming (#597)
Subject: Re: read()
$command_utils:read() accepts an optional argument to replace the standard prompt. The reason there is a prompt is so players know when they're being read from. Type "help $command_utils:read" for more info.
active
====================================================================
Message Number: 8
====================================================================
Message Number: 9
====================================================================
Message Number: 10
====================================================================
Message Number: 11
====================================================================
Message Number: 12
====================================================================
Message Number: 13
====================================================================
Message Number: 14
====================================================================
Message Number: 15
====================================================================
Message Number: 16
====================================================================
Message Number: 17
====================================================================
Message Number: 18
====================================================================
Message Number: 19
====================================================================
Message Number: 20
====================================================================
Message Number: 21
====================================================================
Message Number: 22
====================================================================
Message Number: 23
====================================================================
Message Number: 24
====================================================================
Message Number: 25
====================================================================
Message Number: 26
====================================================================
Message Number: 27
====================================================================
Message Number: 28
====================================================================
Message Number: 29
====================================================================
Message Number: 30
====================================================================
Message Number: 31
====================================================================
Message Number: 32
====================================================================
Message Number: 33
====================================================================
Message Number: 34
====================================================================
Message Number: 35
====================================================================
Message Number: 36
====================================================================
Message Number: 37
====================================================================
Message Number: 38
====================================================================
Message Number: 39
====================================================================
Message Number: 40
====================================================================
Message Number: 41
====================================================================
Message Number: 42
Date: Wed Apr 22 05:47:34 1998 PDT
From: Triton (#302)
To: *Programming (#597)
Subject: Re: read()
Unfortunaly, the output of the '[Type
Date: Fri May 1 03:37:39 1998 PDT
From: SQuiZZY (#631)
To: *Programming (#597)
Subject: testing player matches
i need to test to see if a player_match has been succesful or not... any ideas?
cheers, al.
Date: Fri May 1 04:10:28 1998 PDT
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: Squizzy
Ideas? What do you think I am??? A wizard or something??
Oh....hang on. Right, here's a way you can test:
if ($command_utils:player_match_failed(person = $string_utils:match_player(dobjstr)))
This will assign person as a player matched from the player_db, and then double check it. So, there you go.
Or, you could just use:
if(is_player(whatever))
Hope that's some help.
Wildcard
Date: Thu May 7 05:08:13 1998 PDT
From: Halbarad (#60)
To: *Programming (#597)
Subject: Confusing arrays and stuff
I have a complex property set up on my C4 room and I can't change anything in it. IT's a {{0,0,0},{0,0,0}} type of property except mines in a 7x9 grid. I can't remember how to set a certain section to a value.
I think it's something like 'this.board2[2][2] = x' but it seems to treat the [2][2] as part fo the name.
nAy ideas would be appreciated.
Date: Thu May 7 05:19:11 1998 PDT
From: Halbarad (#60)
To: *Programming (#597)
Subject: It works
The problem in my precious letter was solved.
Previous letter, obviously.
Date: Thu May 7 05:21:39 1998 PDT
From: Sharrow (#397)
To: *Programming (#597)
Subject: last letter
Oh I don't know Hal, they're pretty precious to me..........
Sharrow - relising this should probably be in babble
Date: Tue May 19 16:29:45 1998 PDT
From: Dan (#376)
To: *Programming (#597)
Subject: Hack the moo
I am here to ask how do you hack the # numbers on a moo?
because i know it is possible, because you have managed to do it.
How do you hack the # numbers>?
Date: Fri May 22 17:45:58 1998 PDT
From: Tal (#1289)
To: *Programming (#597)
Subject: woo getting lower numbers
1.
2. recycle()
3. renumber()
4. re load() the player_db
note: step 1 is the fun one, figure it out yourself. :) or, just start at #2, if you want a moo that doesn't function. :)
oh, and these builtins may have changed since last I messed w/them. (2 years ago. woo) and I'm too lazy to check for sure. :)
Date: Wed Oct 21 06:36:33 1998 PDT
From: drizzt (#421)
To: *Programming (#597)
Subject: mailing in a verb
i really need some help to send messages in a verb. I need the descripson in english so that i can usnderstand it or i am fucked. Help me
Date: Mon Nov 2 03:03:41 1998 PST
From: Si (#665)
To: *Programming (#597)
Subject: Programming!
@nn
Nope, there's no news.
* HINT: If you have a coding problem, *programming is useful*
Yeah i got a problem, i can't code! any advice! ;)
Si
Date: Mon Nov 2 05:54:56 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: Advice
Yeah! Read the fecking tutorials ;)
Date: Tue Nov 3 04:08:50 1998 PST
From: Si (#665)
To: *Programming (#597)
Subject: advice...
Well there's another problem....i can't read...er...hmm.
Si
Date: Tue Nov 3 04:11:25 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: advice
Ahhhh. Well, that's a bit of a problem then innit. You know, you can actually get some gratification out of being able to read. You'll be able to understand loads of stuff. Like....urm....why Bill 'n' Julie went to the beach. And of course, let's not forget Spot's Ball. Spot's Big Ball. Spot's big RED Ball. Amazing.
Date: Tue Nov 3 04:13:30 1998 PST
From: Claudette (#105)
To: *Programming (#597)
Subject: N Bed time stories
of course Wildcard can't read either.. those are the stories his younger brother reads him at night.
Date: Tue Nov 3 04:14:53 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject:
Isn't this a programming mailing list? Can we talk MOO code please?
Date: Tue Nov 3 05:53:52 1998 PST
From: Tarot (#99)
To: *Programming (#597)
Subject: si
from the look of si's recent poasts he carn't type eather
Date: Tue Nov 3 05:55:46 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject:
And you can? Anyone wanna write a typo remover?
Date: Tue Nov 3 05:57:09 1998 PST
From: Claudette (#105)
To: *Programming (#597)
Subject: Typos
i would, but i'd probably typew it wrong
Date: Tue Nov 3 05:59:03 1998 PST
From: Fugaz (#1321)
To: *Programming (#597)
Subject: let's talk MOO code please :)
text = "Let us talk MOO-code!";
player.location:announce(player.name," tells us: \"",text,"\"");
have fun ;)
Date: Tue Nov 3 05:59:29 1998 PST
From: Tarot (#99)
To: *Programming (#597)
Subject: crap remover
how about someone writing a crap remover that will remove andy crap mails to mailing lists
of course this means that wild will never be able to post anything again
but every good plan has its drawbacks
Date: Tue Nov 3 06:01:23 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597)
Subject: MOO Code
Ooooh. Someone actually posted some code to the *programming mailing list!
I get the impression that no one codes anymore. 'Cept myself and Jack, and we're wizzies, so we don't count. Does anyone out there actually code anything on this MOO?
W.
Date: Tue Nov 3 06:03:00 1998 PST
From: Tarot (#99)
To: *Programming (#597)
Subject: re: MOO Code
nope no one codes they just sit around having cyber sex
Date: Tue Nov 3 06:03:19 1998 PST
From: Halbarad (#60)
To: *Programming (#597)
Subject: Me
I code. Once in a while.
Who's Andy Crap anyway - see Tarot's post, no 27ish.
Date: Tue Nov 3 06:27:24 1998 PST
From: Si (#665)
To: *Programming (#597)
Subject: Tarot
sorry, but what's a poasts? tarot?
Si
Date: Tue Nov 3 06:30:20 1998 PST
From: Si (#665)
To: *Programming (#597)
Subject: Crap remover
Yeah good idea tarot, a crap remover....
But wouldn't that mean you won't be able to log on any more?
Si
Date: Wed Nov 11 14:38:06 1998 PST
From: Dan (#376)
To: *Programming (#597)
Subject: Network reading.
I am trying to make a login script that is run b4 the char is logged in.
I can do all the things I want to do, except reading input.
I have tried $command_utils:read, $netowrk:read and even read().
$command_utils:read returns invalid something.
$network:read() doesn't take input.
and read() works, takes input, except, it won't let the char login! I know all the code works, but for some reason the return statments don't work after using, read()?
For the record I have wi_perms, and the verb is #10:co*nnect.
Dan.
Any ideas will be gratefully recived. :)
Date: Thu Nov 12 06:44:20 1998 PST
From: SQuiZZY (#631)
To: *Programming (#597)
Subject:
inputl = $string_utils:words(input);
person = $string_utils:match_player(inputl[1]);
speech = $string_utils:words(inputl[3]);
for words in (speech)
if (words == "TOAST" || words == "TOASTING" || words == "TOASTED" || words== "TOASTER")
jobby = random(13);
suspend(10);
if (jobby == 1)
this.location:announce_all_but({this}, "Toaster says, \"Toast? Did someone say they wanted toast??\"");
elseif (jobby == 2)
this.location:announce_all_but({this, person}, "Toaster says to ", person.name, ", \"Do you want some toast then?\"");
person:tell("Toaster says to you, \"Do you want some toast then?\"");
elseif (jobby == 3)
this.location:announce_all_but({this}, "Toaster says, \"TOAST! That's what I'm here for...\"");
elseif (jobby == 4)
this.location:announce_all_but({this}, "The Toaster pops up with a slice of slightly floppy, underdone toast.");
suspend(2);
this.location:announce_all_but({this}, "Toaster says, \"Tada!\"");
elseif (jobby == 5)
this.location:announce_all_but({this}, "Toaster says, \"And we all love toast..\"");
elseif (jobby == 6)
this.location:announce_all_but({this}, "Toaster says, \"If any of you ask for toast one more *&@!$*! time, I'll be forced to..\"");
suspend(2);
this.location:announce_all_but({this}, "Toaster says, \"Forced to..\"");
suspend(2);
this.location:announce_all_but({this}, "Toaster says, \"MAKE SOME!\"");
elseif (jobby == 7)
this.location:announce_all_but({this}, "Toaster says, \"I'm sorry, I am currently out of order. The microwave might be able to help though.\"");
elseif (jobby == 8)
this.location:announce_all_but({this}, "Toaster says, \"Jaske ekkgfo gnbkkwu fjgbbkew.\"");
suspend(2);
this.location:announce_all_but({this}, "Toaster says, \"Oh I'm sorry, I'd forgotten how to talk for a moment.\"");
elseif (jobby == 9)
this.location:announce_all_but({this}, "Toaster says, \"Shut up.\"");
elseif (jobby == 10)
this.location:announce_all_but({this}, "Toaster says, \"Leave me alone, I'm sleeping.\"");
elseif (jobby == 11)
this.location:announce_all_but({this}, "Toaster says, \"One... Two... Three...\"");
suspend(2);
this.location:announce_all_but({this}, "******** BANG! ********");
suspend(2);
this.location:announce_all_but({this}, "The Toaster picks itself up and puts itself back on the table.");
elseif (jobby == 12)
this.location:announce_all_but({this}, "Toaster says, \"Toast? Ask the fridge for some bread then.\"");
elseif (jobby == 13)
this.location:announce_all_but({this}, "Toaster says, \"TOAST! Oh I'm sorry, I wasn't paying attention.\"");
endif
endif
endfor
Have fun,
Al.
Date: Thu Nov 12 06:46:22 1998 PST
From: SQuiZZY (#631)
To: *Programming (#597)
Subject:
yadda yadda..
Sorry, the rest of the code is on the previous post ;)
Date: Thu Nov 12 07:10:28 1998 PST
From: SQuiZZY (#631)
To: *Programming (#597)
Subject:
Well, I can't seem to post to mailing lists which is nice,
they all mess up.
If you want the code for the talking toaster, check out #718:notify!
Al.
Date: Fri Nov 13 04:39:18 1998 PST
From: Fugaz (#1321)
To: *Programming (#597)
Subject: better reference the code, not post it :)
hihi!
this is just a positive comment:
as SQuiZZY has done in mail numbered 36, better tell people
the reference #object:verb so they can use
the @list object:verb command, instead of including
the whole code.
keep programming! byebye
Date: Mon Dec 7 13:57:35 1998 PST
From: Father_Spam(R) (#13)
To: *Core-mods (#102) and *Programming (#597)
Subject: $object_utils:"has_readable_prop*erty hrp"
Added the verb $object_utils:"has_readable_prop*erty hrp" to fix traceback in #374:"@doss*ier @file".
Date: Fri Dec 11 02:56:58 1998 PST
From: Father_Wildcard (#3)
To: *Core-mods (#102) and *Programming (#597)
Subject: Verb Protection
Hiya,
Righty ho, I have added a prop to #80 ($root) called .verb_protection. If you don't want people to be able to @verbs your objects ('cos of porting etc) set this bit to 1.
Of course, us wizzies can see anything anyway, but hey ;)
If you want to unprotect your verbs again, set the bit to 0
Wildcard
Date: Fri Dec 11 02:58:54 1998 PST
From: Father_Wildcard (#3)
To: *Programming (#597) and *Core-mods (#102)
Subject: Oooops.
It would help if I gave you the right property name ;)
It's verb_protected
Sorry ;)
Date: Sun Dec 20 23:32:34 1998 PST
From: Quad (#1127)
To: *Programming (#597)
Subject:
Ok, @verbs == .verbs_protected.. but can't I just use my own @verbs or equivalent? It would be better to place a core override on verbs() and verb_info().
Date: Mon Dec 21 03:23:17 1998 PST
From: Dan (#376)
To: *Programming (#597)
Subject: .verbs_protected
What was the point of .verbs_protected? To stop people seeing that, that verb isn't there? or to stop people @listing your verbs?
doesn't @chmod