Great add! For who want to add directly into the object.lua other spells, copy/paste this code:
defineObject{
name = "magicscroll_frostbolt",
class = "Item",
uiName = "Magic scroll of Frostbolt",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful frostbolt.",
skill = "ice_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "frostbolt",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_lightning_bolt",
class = "Item",
uiName = "Magic scroll of Lightning bolt",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful lightning bolt.",
skill = "air_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "lightning_bolt",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_poison_bolt",
class = "Item",
uiName = "Magic scroll of Poison Bolt",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful poison bolt.",
skill = "earth_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "poison_bolt",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_ice_shards",
class = "Item",
uiName = "Magic scroll of Ice Shards",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful ice shards.",
skill = "ice_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "ice_shards",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_shock",
class = "Item",
uiName = "Magic scroll of Shock Bolt",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful shock bolt.",
skill = "air_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "shock",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_invisibility",
class = "Item",
uiName = "Magic scroll of Invisibility",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will make the party invisible.",
skill = "air_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "invisibility",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_enchant_fire_arrow",
class = "Item",
uiName = "Magic scroll of Enchant Fire Arrow",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will make an arrow enchanted with fire.",
skill = "fire_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "enchant_fire_arrow",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_fire_shield",
class = "Item",
uiName = "Magic scroll of Fire Shield",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release fire shield for the party.",
skill = "fire_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "fire_shield",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_frost_shield",
class = "Item",
uiName = "Magic scroll of Frost Shield",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release frost shield for the party.",
skill = "ice_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "frost_shield",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_poison_shield",
class = "Item",
uiName = "Magic scroll of Poison Shield",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release poison shield for the party.",
skill = "earth_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "poison_shield",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_shock_shield",
class = "Item",
uiName = "Magic scroll of Shock Shield",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release shock shield for the party.",
skill = "air_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "shock_shield",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_fireburst",
class = "Item",
uiName = "Magic scroll of Fireburst",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful fireburst.",
skill = "fire_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "fireburst",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}
defineObject{
name = "magicscroll_poison_cloud",
class = "Item",
uiName = "Magic scroll of Poison Cloud",
model = "assets/models/items/scroll.fbx",
description = "Reading this scroll will release a powerful poison cloud.",
skill = "earth_magic",
gfxIndex = 113,
accuracy = 0,
coolDownTime = 5,
attackMethod = "castWandSpell",
spell = "poison_cloud",
wandPower = 25,
charges = 1,
emptyItem = "magicscroll_empty",
weight = 0.3,
}