# # file:: cmd_list.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") # Lists items available from a merchant def cmd_list(args) found = false get_object(location).people(id).each do |p| if p.is_a? Merchant add_event(id, p.id, :list) found = true end end sendto _("Nodoby here is selling anything.") if not found end end