def CreatePotion(name,stat,value,message,level,desc): effect = DBEffectProto(name = name) effect.addPermanentStat(stat,value) spell = DBSpellProto(name = name) spell.target = RPG_TARGET_SELF spell.duration = 0 spell.castTime = 0 spell.recastTime = 0 spell.harmful = False spell.addEffect(name) spell.beginMsg = message spell.sndBegin = "sfx/Pickup_Special12.ogg" item = DBItemProto(name = name) item.addSpell(name,RPG_ITEM_TRIGGER_USE,1) item.level = level if value == 1: item.bitmap = "STUFF/13" else: item.bitmap = "STUFF/40" item.useMax = 1 item.desc = desc item.stackMax = 20 item.stackDefault = 1
def CreatePotion(name,effect,desc): spell = DBSpellProto(name = name) spell.target = RPG_TARGET_SELF spell.duration = 0 spell.castTime = 0 spell.recastTime = 0 spell.harmful = False spell.addEffect(effect) item = DBItemProto(name = name) item.addSpell(name,RPG_ITEM_TRIGGER_USE,1) item.bitmap = "STUFF/3" item.useMax = 1 item.desc = desc item.stackMax = 20 item.stackDefault = 1
def CreatePotion(name, effect, desc): spell = DBSpellProto(name=name) spell.target = RPG_TARGET_SELF spell.duration = 0 spell.castTime = 0 spell.recastTime = 0 spell.harmful = False spell.addEffect(effect) item = DBItemProto(name=name) item.addSpell(name, RPG_ITEM_TRIGGER_USE, 1) item.bitmap = "STUFF/3" item.useMax = 1 item.desc = desc item.stackMax = 20 item.stackDefault = 1
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=[])
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
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']