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

Spell Exori Spear Hur

manyakbey

New Member
Joined
Jun 3, 2011
Messages
28
Reaction score
3
Hello, my first spells :)

Sorry i'm english bad * im from turkhis..

XML ;

Code:
<instant name="ExoriSpearHur" words="exori spear hur" lvl="100" maglv="10" mana="250" exhaustion="1000" prem="0" needlearn="0" blockwalls="0" aggressive="1" event="script" value="exori spear hur.lua">
</instant>

Script ;

Code:
local combat0_Brush = createCombatObject()
setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat0_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatArea(combat0_Brush,createCombatArea({{0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 0, 0, 0, 2, 0, 0, 0, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0}}))
function getDmg_Brush(cid, level, maglevel)
	return (100)*-1,(300)*-1 
end
setCombatCallback(combat0_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local dfcombat0_Brush = {CONST_ANI_ETHEREALSPEAR,1,1,0,1,-1,1,1,2,0,2,-1,2,2,1,-2,1,3,1,-3,1,2,2,-2,2,-1,3,0,3,1,3,0,4,3,-1,2,-1,1,-1,0,-1,-1,-1,-2,-1,-3,-1,2,-2,1,-2,0,-2,-1,-2,-2,-2,-1,-3,0,-3,1,-3,0,-4,-4,0,4,0}

-- =============== CORE FUNCTIONS ===============
local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part
	if (isCreature(cid)) then
		doCombat(cid, c, var)
		if (dirList ~= nil) then -- Emit distance effects
			local i = 2;
			while (i < #dirList) do
				doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1])
				i = i + 2
			end		
		end
	end
end

function onCastSpell(cid, var)
	local startPos = getCreaturePosition(cid)
	RunPart(combat0_Brush,cid,var,dfcombat0_Brush,startPos)
	return true
end
 
Back
Top