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

Item Vocation

Flighty

New Member
Joined
Jul 3, 2009
Messages
93
Reaction score
0
hello , how do i set that a item just knights and paladins can use that, or just super druid and knight can use that??
 
If it's a rune then it'll be in your spells.xml file.

Code:
<rune name="Super Rune" id="XXXX" allowfaruse="1" charges="5" lvl="100" maglv="50" exhaustion="2000" blocktype="all" event="script" value="custom/special rune.lua">
		<vocation id="4"/> <!-- only knights can use-->
	</rune>
 
If it's a rune then it'll be in your spells.xml file.

Code:
<rune name="Super Rune" id="XXXX" allowfaruse="1" charges="5" lvl="100" maglv="50" exhaustion="2000" blocktype="all" event="script" value="custom/special rune.lua">
		<vocation id="4"/> <!-- only knights can use-->
	</rune>

Still doesnt work, now the rune don'
t work
 
<rune name="Super Rune" id="XXXX" allowfaruse="1" charges="5" lvl="100" maglv="50" exhaustion="2000" blocktype="all" event="script" value="custom/special rune.lua">
<vocation id="4"/> <!-- only knights can use-->
</rune>

<rune name="Super Rune" id="XXXX" allowreuse="1" charges="5" lvl="100" maglv="50" exhaustion="2000" blocktype="all" event="script" value="custom/special rune.lua">
<vocation id="4"/> <!-- only knights can use-->
</rune>

i believe reuse was misspelled
hopefully i helped if so please rep
 
i believe reuse was misspelled
hopefully i helped if so please rep

still doesnt work

Code:
	<rune name="Super Rune" id="2282" allowreuse="1" charges="5" lvl="10" maglv="1" exhaustion="1000" blocktype="all" event="script" value="custom/supersd.lua">
	<vocation id="8"/>
	</rune>

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.53, -30, -3.63, 0)

function onCastSpell(cid, var)
	doSendMagicEffect(getPlayerPosition(cid), 12)
	return doCombat(cid, combat, var)
end
 
Back
Top