from genesis.dbdict import DBItemProto
from mud.world.defines import *

item = DBItemProto()
item.itemType = ['COMMON','DRINK']
item.stackMax = 100
item.drink = 1
item.stackDefault = 20

item.name = "Drinking Water"
item.bitmap = "STUFF/1"
item.worthTin = 3

item = item.clone(name = "Zharim Spring Water",drink = 5,worthCopper = 3,worthTin = 5)


item = DBItemProto()
item.itemType = ['COMMON','FOOD']
item.name = "Tasty Meal"
item.food = 3
item.stackMax = 100
item.stackDefault = 20
item.bitmap = "STUFF/32"
item.worthCopper = 5

item = item.clone(name = "Meager Meal",food = 1,worthCopper = 0,worthTin = 5)

#drops for some monster kills
item = item.clone(name ="Flesh and Blood",food=3,drink=3,itemType=[])
item.desc = "This is a mass of flesh and blood.  Delicious and nutritious!"
item.stackDefault = 1
Esempio n. 2
0
from genesis.dbdict import DBItemProto
from mud.world.defines import *

item = DBItemProto()
item.itemType = ['COMMON', 'DRINK']
item.stackMax = 100
item.drink = 1
item.stackDefault = 20

item.name = "Drinking Water"
item.bitmap = "STUFF/1"
item.worthTin = 3

item = item.clone(name="Zharim Spring Water",
                  drink=5,
                  worthCopper=3,
                  worthTin=5)

item = DBItemProto()
item.itemType = ['COMMON', 'FOOD']
item.name = "Tasty Meal"
item.food = 3
item.stackMax = 100
item.stackDefault = 20
item.bitmap = "STUFF/32"
item.worthCopper = 5

item = item.clone(name="Meager Meal", food=1, worthCopper=0, worthTin=5)

#drops for some monster kills
item = item.clone(name="Flesh and Blood", food=3, drink=3, itemType=[])
Esempio n. 3
0
from mud.world.defines import *
from genesis.dbdict import DBItemProto
from mud.world.character import StartingGear


item = DBItemProto(name="Plain Helm")
item.skill = "Light Armor"
item.bitmap = "EQUIPMENT/HEAD/44"
item.model = "head/helmet.dts"
item.material="head/helmet"
item.slots = (RPG_SLOT_HEAD,)
item.flags=RPG_ITEM_SOULBOUND
item.armor = 2

item = DBItemProto()
item.itemType = ['UNIQUE']
item.name = "Magic Shield"
item.skill="Shields"
item.armor = 8
item.bitmap = "EQUIPMENT/SHIELDS/4"
item.model = "weapons/shield02.dts"
item.slots = (RPG_SLOT_SHIELD,)
item.flags = RPG_ITEM_ARTIFACT
item.addStat("agi",4)
item.addStat("dex",3)
item.addStat("maxHealth",25)
item.addStat("resistPoison",5)
item.addStat("defense",16)

item = DBItemProto()
item.itemType = ['COMMON','WEAPON']