Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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)