ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Okay I am using TFS 0.3.6 Crying Damson 8.60 V5 and in mods/scripts/custom spells I have
mana rune.lua
And the rune works fine, but it does not conjure when I say
adura magica
it just does nothing, no poof or no error or anything
Here is the "spells.xml" for custom spells
spellls.xml
Here is the line I have for it being conjurable in data/spells/spells.xml
This is the item in items.xml
mana rune.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid)
return doPlayerAddMana(cid, math.random(50,150))
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
And the rune works fine, but it does not conjure when I say
adura magica
it just does nothing, no poof or no error or anything
Here is the "spells.xml" for custom spells
spellls.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Custom Spells" version="1.0" author="Ziggy" contact="" enabled="yes">
<!-- Custom Spells -->
<!-- Custom Runes -->
<rune name="Mana Rune" words="adura majica" lvl="14" mana="240" soul="5" maglv="10" reagentId="2260" conjureId="2298" conjureCount="1" exhaustion="2000" needlearn="0" event="function" value="customspells/mana rune.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</rune>
</mod>
Here is the line I have for it being conjurable in data/spells/spells.xml
Code:
<conjure name="Mana Rune" words="adura majica" lvl="14" mana="240" soul="5" reagentId="2260" conjureId="2298" conjureCount="1" exhaustion="1000" needlearn="0" event="function" value="conjureRune">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</conjure>
This is the item in items.xml
Code:
<item id="2298" article="a" name="mana rune">
<attribute key="runeSpellName" value="adura magica" />
<attribute key="weight" value="120" />
</item>