• 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!

Solved Custom rune

vTune

KakelmästareN^
Joined
Jun 14, 2012
Messages
3,675
Reaction score
395
Location
Sweden
Hello otland.

Im trying to do a sd that is a little bit stronger then the normal one so its a quite simple script. But I cant get it to work.... What am I doing wrong/missing..
I've tried to search around on custom runes over here and I cant see why mine wont work. So anyways here are my scripts:

spells.xml
PHP:
<rune name="Super SD" id="2306" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1250" needtarget="1" blocktype="solid" event="script" value="supersd.lua"/>
supersd.lua
PHP:
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, -60, -3, -60, 2, 3, 2, 3)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

And items.xml
PHP:
	<item fromid="2306" toid="2306" article="a" name="Super SD">
		<attribute key="weight" value="120" />
	</item>

I'll rep ++ if you manage to figure it out :)

Kind regards vTune

EDIT: lol im retarded. Fucked up in the spells.xml and put the code in another rune by misstake....

SOLVED!
 
Last edited:
Back
Top