steinachen
New Member
- Joined
- Jul 1, 2009
- Messages
- 20
- Reaction score
- 0
Hi,
my problem is that i cant use The Super SD (ID 11390) with Hotkeys. When i try it for example with F2 it says only Sorry not possible...
This is my entry in items.xml
<item id="11390" article="a" name="Super SD">
<attribute key="description" value="A Stronger SD." />
<attribute key="charges" value="0" />
<attribute key="weight" value="130" />
</item>
This is my entry in spells.xml
<rune name="Super SD" id="11390" allowfaruse="1" charges="1" lvl="200" maglv="1" exhaustion="500" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua"/>
My super sd.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2, -120, -2, -120, 5, 5, 4, 7)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I hope somebody can help me



my problem is that i cant use The Super SD (ID 11390) with Hotkeys. When i try it for example with F2 it says only Sorry not possible...
This is my entry in items.xml
<item id="11390" article="a" name="Super SD">
<attribute key="description" value="A Stronger SD." />
<attribute key="charges" value="0" />
<attribute key="weight" value="130" />
</item>
This is my entry in spells.xml
<rune name="Super SD" id="11390" allowfaruse="1" charges="1" lvl="200" maglv="1" exhaustion="500" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua"/>
My super sd.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2, -120, -2, -120, 5, 5, 4, 7)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I hope somebody can help me