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

New Spells

Proland

New Member
Joined
Dec 28, 2008
Messages
116
Reaction score
0
Anyone know how to add new spells such a utani tempo hur, utani tempo san?

i tryied it, i coypied the script from strong haste and just renamed it to tempo san, and i added it also to spells.xml but isn working :(


Anyone Know?
 
Here's a example of Swift Foot (utamo tempo san)

in spells.xml
PHP:
<instant name="Swift Foot" words="utamo tempo san" lvl="55" mana="400" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="support/swift foot.lua">
		<vocation name="Paladin" /> 
		<vocation name="Royal Paladin" />
	</instant>

the spell
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, 0.8, -72, 0.8, -72)
setCombatCondition(combat, condition)

local dhealing = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(dhealing, CONDITION_PARAM_TICKS, 10000)

local weaponex = createConditionObject(CONDITION_EXHAUST_WEAPON)
setConditionParam(weaponex, CONDITION_PARAM_TICKS, 10000)

local exhaustweapon = createConditionObject(CONDITION_EXHAUST_COMBAT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)

function onCastSpell(cid, var)
doAddCondition(cid,weaponex)
doAddCondition(cid,dhealing)
doAddCondition(cid,exhaustweapon)
	return doCombat(cid, combat, var)
end
 
Last edited:
Isnt working for me :(

im also not getting any errors or such, by writing utamo tempo san nothing is happening, no idea. :D


anyone know what to do and whats the problem?
 
Back
Top