• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Cant use Super SD

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
:p:p:p
 
Yea but if you want to use runes for example, you need to have an item that gives you an crossair function when you right click on it.

If you right click on the rune normally you should be able to choose a target, that's how you need the itemid to be.
LIEK A FISHING ROD
 
Back
Top