say.rb
rbmud-0.2/commands/say.rb · 373 B
From the archive RbMUD-0.2.tar.bz2
Download the archive « Back to the archive contents
#!/usr/bin/env ruby
# $Revision: 1.3 $
# $Date: 2003/12/06 18:12:08 $
# $Author: mikeman2 $
# test.rb
# the contents of this file will probably change every time i want to try
# something new.
def Commands.do_say(user, args = "")
if args.length > 0
user.location.puts("&W#{user.name} says \"&*#{args}&W\"&*", user)
user.puts("&WYou say \"&*#{args}&W\"&*")
end
end