from genesis.dbdict import DBVendorProto,DBItemProto,DBDict from mud.world.defines import * vendor = DBVendorProto(name="Vendorman") for ip in DBDict.registry['ItemProto']: if 'STONE' in ip.itemType and 'COMMON' in ip.itemType: vendor.addItem(ip.name)
from genesis.dbdict import DBVendorProto,DBItemProto,DBDict from mud.world.defines import * spells = ["Arcane Blast","Arcane Storm","Summon Wolf Consort","Sapre's Airy Melody"] vendor = DBVendorProto(name="Spell Dealer") for s in spells: vendor.addItem("Scroll of %s"%s)
from genesis.dbdict import DBVendorProto, DBItemProto, DBDict from mud.world.defines import * spells = [ "Arcane Blast", "Arcane Storm", "Summon Wolf Consort", "Sapre's Airy Melody" ] vendor = DBVendorProto(name="Spell Dealer") for s in spells: vendor.addItem("Scroll of %s" % s)
from genesis.dbdict import DBVendorProto, DBItemProto, DBDict from mud.world.defines import * vendor = DBVendorProto(name="Snacks") for ip in DBDict.registry['ItemProto']: if 'FOOD' in ip.itemType and 'COMMON' in ip.itemType: vendor.addItem(ip.name) for ip in DBDict.registry['ItemProto']: if 'DRINK' in ip.itemType and 'COMMON' in ip.itemType: vendor.addItem(ip.name)