• 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 resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell [HELP] Combo Exori Vis "Name

Badoo604

New Member
Joined
Nov 14, 2010
Messages
10
Reaction score
0
Umm im kinda just learning how to make spells and umm....
i was wondering if some1 can help me make a spell for example:

if you cast
PHP:
exori vis "name
. it should hit u 3x in 3 seconds so a delay of 1 second per hit wondering if this is possible? and if its not...
the normal exori vis will be fine and hits u same thing etc. thanks people of otland =D
 
spells.xml
XML:
	<instant name="Energy Strike" words="exori vis" lvl="12" mana="20" prem="1" needtarget="1" params="1" exhaustion="2000" needlearn="0" event="script" value="attack/energy strike.lua">
		<vocation id="1"/>
		<vocation id="2"/>
		<vocation id="5"/>
		<vocation id="6"/>
	</instant>

energy strike.lua
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

local attackTimes = 3 -- here you can set how many time will attack target

function onCastSpell(cid, var)
	for i = 0, attackTimes - 1 do
		addEvent(doCombat, 1000 * i, cid, combat, var)
	end
	
	return true
end

Working only with people.
 
wow your amazing lol REP++

umm wut do all these numbers mean?

PHP:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
 
min=math.max(10, level / 5 + maglevel 1.4)
max=math.max(20, level / 5 + maglevel 2.1)
 
Back
Top Bottom