cmd_save.rb

znmud-0.0.1/cmd/zombie/cmd_save.rb · 569 B

From the archive znmud-minimal-0.0.1.tar.gz

Download the archive   « Back to the archive contents

#
# file::    cmd_save.rb

# This source code copyright (C) 2009 Craig Smith
# All rights reserved.
#
# Released under the terms of the TeensyMUD Public License
# See LICENSE file for additional information.
#

module Cmd

  bindtextdomain("cmd")

  # The save command.  Similar to "rent" in other muds...sort of...
  def cmd_save(args)
	loc = get_object(location)
	if loc.has_attribute? :savepoint
		self.lastsavedlocation = location
		sendto _("You now call this place your home.")
	else
		sendto _("You can not save here.")
	end
  end

end

Site Stats

Snippets: 1791
Codebases: 571