- May 28, 2000
-
-
Chris Fry authored
Set up the makefile and C files to allow hashtable/list switching. Uncomment the 'DEFS+=-DHASHTABLES' line to get hashtables (uncommented by default) Left 'clearvars' broken - 'VAR_DESTROY(&op)' left commented, At least it stops it from segv'ing... Fry
-
Chris Fry authored
Ok. possibly fixed the incoming pipe stuff. I think finnw had a '<'->'<=' mistake. So when it got to the maximum pipe length, you got an array overflow by 1. Fry
-
- May 27, 2000
-
-
Chris Fry authored
Final fixes for infinite length lines in script reading. Updated handle_mesg for longer incoming pipes Fry
-
Chris Fry authored
Fixed a bug in the scripts, which cant cope with long lines when loading functions. Increased the amount of text that can be sent via the talker etc..., become some bloody pillock (cmc) cant be arsed not to write a *long* slap script that somehow happens to bugger his scripts, and then block the text sent to the talker. :( Wibble Fry
-
Chris Fry authored
Fixed the hashtables - they were case sensitive - where variables had ALWAYS been insensitive in every other part of mw beforehand. [Fry whacks finnw] Added a couple of script commands - Q-ROOM, IREGEX, and CLEARVARS. These change rooms quietly, regex case insensitive, and clear all variables respectively. I think thats it, although I've most probably made other changes - I usually do. Fry
-
- May 25, 2000
-
-
Finn Wilcox authored
-
- May 24, 2000
-
-
Finn Wilcox authored
hashtables, by changing the definitions of the VAR_xxx macros in script.h. The old macros are still there but disabled by a '#if' directive. The new macros do not yet work with the threaded version. Added hash.h and hash.c, containing structures and functions for manipulating hashtables. There is also code for garbage collection, but this is untested, and needs more changes to the interpreter (the way function arguments are stored) before it can be useful. The hashtable code can also be used to implement arrays, but there are no new commands for this yet. Removed the second (string) argument to VAR_FOUND. It was redundant, because a pointer to the variable name is already stored in the var_op_t structure. Introduced a few new macros for iterating through variable lists. Modified some functions to use the new (and old) macros, including ListVars(). Removed the function VAR_STR_GET, which has never been used, from script.h.
-
Robert Grant authored
I made a major change to mw and it still works :) ok: I change the link list that holds the script varables in to a ORDERED link list, I did this for 2 resons: a) faster search time for misses (each time to uses a global var you get a miss on the local var search. b) the command .variables now returns an ordered list. file changes: A lot of changes to macros in script.h he macro VAR_FOUND now takes 2 input the second being the name of the var you where looking for changes to script.c and script_inst.c to uses the new 2 input VAR_FOUND To be done: change the strcasecmp in script.h:48 to a nice number freindle one, ie: 'fish1wibble' < 'fish12wibble' -- Rob aka Tnarg
-
- May 21, 2000
-
-
Chris Fry authored
Now allows user to specify 'reasons' for mrod and zod. There is an optional text after the user, eg: .zod dez .zod dez for being irritating .mrod dez .mrod dez for logging back on after the zod, and not taking the hint :) Fry
-
- May 20, 2000
-
-
Chris Fry authored
Fixed the 'change groups' message for 'changeinfo' Fry
-
- May 19, 2000
-
-
Chris Fry authored
Changed '.variables' to allow a user to specify an optional argument, which is a starting pattern for the variable. eg: [.variables] Variable 'developer_mode' contains value '1' Variable 'encrypttag' contains value '<ENCRYPTED> ' Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr' Variable 'tclr_listbg' contains value '---------m--' Variable 'tclr_listpos' contains value '6' Variable 'slap_1' contains value 'a fetid running oozing decayed haddock' Variable 'slap_2' contains value 'a pint of 4 month old green milk glop' [.variables s] Variable 'slap_1' contains value 'a fetid running oozing decayed haddock' Variable 'slap_2' contains value 'a pint of 4 month old green milk glop' [.variables dog] [.variables tclr_list] Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr' Variable 'tclr_listbg' contains value '---------m--' Variable 'tclr_listpos' contains value '6' [.variables tclr_listf] Variable 'tclr_listfg' contains value 'WGBMgYCcmYRr' Simple huh :) Fry
-
Chris Fry authored
Added the .e's talker command, FOR THOSE PEOPLE WHO ARE SILLY ENOUGH TO KEEP TYPING IT!! (FireFury :) Made the random function 'int get_rand(int min, int max)' truly random. Any random numbers, please use this function. Added the 'Q-IGNORE', and 'Q-UNIGNORE' script functions for those with developer mode privs. NOTE: THIS IS ONLY FOR PEOPLE LIKE CMCKENNA, AND FRY WHO DO ROOM TESTING, AND IGNORE MANY PEOPLE. ANY ABUSE OF THIS COMMAND WILL NOT BE TOLERATED. PLEASE USE THE NORMAL 'VISIBLE' ONE Erm.. another fix, to do with scripts I think. May have already committed it, but its something to do with WHEREAMI or something. [Fry reminds himself, he really out to keep a log of what he does :/] Fry
-
- May 18, 2000
-
-
Chris Fry authored
Fixed a mode/priv problem in the WHEREAMI script command Fry
-
Chris Fry authored
Can now pass commandline arguments into the autoexec function See 'mw -help' for details Fry
-
Chris Fry authored
MUDEXITS script command - returns a list of the visible room exits for the current room Fry
-
- May 17, 2000
-
-
Chris Fry authored
Fixed tnargs WHEREAMI command slightly to cope with mudmode Completely changed TALKPRIV to return your chatmodes, with a few differences. You have 'T' for timestamp, and you dont have the chat, verbose, or sticky modes listed. Fry
-
Robert Grant authored
I added the script command whereami whereami needs globle to run whereami returns the room number your in regardless of mudmode PS: my first big vhange that I did mostly on my own!!! PPS: can some one give me globle :)
-
Chris Fry authored
Made the gags slightly nicer Added an extra gag flag, so now have 64 gags, and I'm going to leave it at that, so we still have 4 free chatmodes (or more, maybe) Fixed the script BOOLOPT command Fry
-
Chris Fry authored
Oodles of new mud stuff to do with rooms (ie, the .examine command) Fixed the gags stuff Just commented out the new 'USER' code atm, which gives '?' if you dont have spy - because there is no GUESSUSER stuff for non-thread code. The threaded version still uses GUESSUSER. ERmm..Fish? Fry
-
- May 16, 2000
-
-
Steve Hill authored
Bunny gag (at jo's request).. also her duck gag, but commented out because it doesn't seem to work with 16 gags defined :( - Steve
-
- May 12, 2000
-
-
Finn Wilcox authored
-
Chris Fry authored
More Tnargian. Lots of new 'rooms' stuff. ERmm.. a few other small changes, which I really cant remember. Most of them typo fixes Fry
-
Finn Wilcox authored
checks there. Added 'auto-ignore' function, intended for test users. The new special flag '+D' will cause a message (FORCE_TESTING) to be broadcast whenever you log on, to all other logged-on users, making them ignore you automatically. Also when a user joins the talker for the first time after logging on, they will check the 'who' list for anyone with the flag set, and ignore them. Test users do ignore each other (but not themselves). You can unignore a test user at any time, but you will automatically ignore them again if they log off and on. I don't recommend setting this flag for test users who log on/off frequently for the moment, since anyone running an earlier version will get 'unknown message type #20'. A possible temporary workaround might be to broadcast these messages only to people with the 'D' or 'A' chatprivs, as they are more likely to be running the current cvs version. Or to disable broadcasting (the checking when you join the talker will still work).
-
- May 06, 2000
-
-
Chris Fry authored
More Tnargian.. Fixed some small problems with virtual room names, and allows rooms to be hidden, to create 'not-obvious' links from rooms. This can be useful if you say 'there is a waterfall over <blah>', then a .room waterfall will take you to a hidden place. This is the start of a more advanced roomy thingy, where a room can also specify a series of 'examine' strings. ie: [examine] waterfall=There appears to be a room behind here. this way, a cunning user can do a '.examine <object>' and if it is defined will give cunning clues and hints about an environment. Fry
-
- May 05, 2000
-
-
Finn Wilcox authored
you have the 'spy' priv. Otherwise, it now returns '?'.
-
- May 04, 2000
-
-
Finn Wilcox authored
records on exit.
-
- May 02, 2000
-
-
Chris Fry authored
Changes the 'look' command for rooms, so it still lists users, if you are in a 'void' Fry
-
- May 01, 2000
-
-
Justin Mitchell authored
-
- Apr 30, 2000
-
-
Chris Fry authored
Turned off the wrappers firefury and I left on Fry
-
Chris Fry authored
Fixed a memory leak when loading script files Fry
-
Chris Fry authored
Fixed the line numberings when reading in scripts.. Fry
-
Chris Fry authored
some mem fixes... Fry
-
Steve Hill authored
Fixed a memory problem - frl.c was trying to free a static string. (i.e. 'free("")'). Still does it for some stuff, looking into it - Steve
-
Chris Fry authored
Put quotes around the 'realname' changeinfo message. Fixed room directions, I accidently got them the wrong way round. (said 'entering room <left> from <going>' etc..) Fixed the soundproof stuff in rooms. Any room in the new format that didnt specify soundproof, was soundproofed, rather than *not* soundproofed (doh!) Fry
-
- Apr 29, 2000
-
-
Justin Mitchell authored
committed for future reference.
-
Chris Fry authored
Added tab-completion to .notsayto Fry
-
Chris Fry authored
Ermm.. fixed the privs I just broke in the last CVS ;) Fry
-
Chris Fry authored
fixed the privs on notsayto Fry
-
Chris Fry authored
Updated the '.sayto', and '.notsayto' commands, so it'll all work nicely from scripts and stuff too... Fry
-
Chris Fry authored
Fixed some spelling in db.c ;) Added the '.notsayto' command to exclude a user - this needs RAW priv changed the '.sayto' command to not need the RAW priv - like whisper Fry
-