예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
item.bitmap = "STUFF/66"
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
item.bitmap = "STUFF/66"