• 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 Request! [maybe a pro scripter can make this?]

Thylonn

New Member
Joined
Dec 15, 2012
Messages
52
Reaction score
3
Hi, I'm very bad at making spells so im just going to request this one.

A spell that when u use it will make an area of smoke 4x4 sqm, makes you invisible and gives you haste.
everyone hit by the smoke gets paralyzed.


Usable for a quick escape, something like a smoke bomb, that makes u fast and slows people that are hit.

Is this doable?
 
Everything is do able.... What if they trap him? he wont be able to move even if he is invisable. Do you want me to make it so it teleports him somewhere? or do you not care?
 
Everything is do able.... What if they trap him? he wont be able to move even if he is invisable. Do you want me to make it so it teleports him somewhere? or do you not care?

It doesn't have to teleport him, because it should be a quick advantage, nothing more. Because if you can teleport its nearly impossible to catch/trap him and that would make pvp too hard. Thanks though
 
Try this..

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setCombatParam(combat, COMBAT_PARAM_TYPE, CONDITION_PARALYZE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0) -- POFF hits nothing. --

local area = createCombatArea(AREA_CIRCLE4X4)
setCombatArea(combat, area)

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

local disable = createConditionObject(CONDITION_PACIFIED)
setConditionParam(disable, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat1, disable)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 1)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat1, exhaust)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
	return doCombat(cid, combat1, var)	
end
 
try this

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setCombatParam(combat, COMBAT_PARAM_TYPE, CONDITION_PARALYZE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0) -- POFF hits nothing. --
 
local area = createCombatArea(AREA_CIRCLE4X4)
setCombatArea(combat, area)
 
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, 0.8, -72, 0.8, -72)
setCombatCondition(combat1, condition)
 
local disable = createConditionObject(CONDITION_PACIFIED)
setConditionParam(disable, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat1, disable)
 
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 1)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat1, exhaust)
 
function onCastSpell(cid, var)
if (isPlayer(cid)) then
	return doCombat(cid, combat, var)	
	if (isPlayer(cid)) then
	return doCombat(cid, combat1, var)
end
end
end
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setAttackFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0)

local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat1, area)

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

/\/\ if this one doesn't work... Try this one \/\/
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setAttackFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0)

local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat1, area)


local combat8 = true

function onCastSpell(cid, var)
if (combat8 == true) then
	 doCombat(cid, combat, var)
	 doCombat(cid, combat1, var)
return true
end
end
 
Lua:
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
 
local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat, area)
 
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

If you want to slow other players, I have no idea how to do it, seems a bit harder.

THIS MIGHT slow the players...

Lua:
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition, 0.7, -56, 0.7, -56)
setCombatCondition(combat, condition)
 
local combat = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_POFF)

local condition2 = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 22000)
setConditionFormula(condition2, 0.7, -56, 0.7, -56)
setCombatCondition(combat2, condition)
 
local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat2, area)

local combats = {combat, combat2}
 
function onCastSpell(cid, var)
return doCombat(cid, combats, var)
end
 
Last edited:
First one removed the effect, still no attributes and the second one made me unable to speak the words of the spell
unable to cast it. ;/
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 4, 6)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)

local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat, area)
----------------------------------------------------------------
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, false)

local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition2, 0.3, -24, 0.3, -24)
setCombatCondition(combat2, condition)


local spells = doCombat(cid, combat, var), doCombat(cid, combat2, var)



function onCastSpell(cid, var)
	return spells
end
 
Last edited:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 4, 6)
 
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)
 
local area = createCombatArea(AREA_SQUARE4X4)
setCombatArea(combat, area)
----------------------------------------------------------------
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, false)
 
local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 33000)
setConditionFormula(condition2, 0.3, -24, 0.3, -24)
setCombatCondition(combat2, condition)
 
 
 
function onCastSpell(cid, var)
if (isPlayer(cid)) then
		doCombat(cid, combat, var)
		doCombat(cid, combat2, var)
end
end

soz man don't normally do spells.


This one is my custom make of spell...
Lua:
local level_to_get_pked = 50
local para_time = 5 --seconds to be paralyzed with spell--
local hatste_time = 5 --time to be hasted--
 
 
 local top_left = {x = getPlayerPosition(cid).x - 1, y = getPlayerPosition(cid).y + 1, z = getPlayerPosition(cid).z}
 local bottom_right = {x = getPlayerPosition(cid).x + 1, y = getPlayerPosition(cid).y - 1, z = getPlayerPosition(cid).z}
 local playerarea = {top_left, bottom_right}
 
 
function onCastSpell(cid, var)
if (isPlayer(cid)) then
		doSendMagicEffect(playerarea, CONST_ME_POFF)
		for i, pid in ipairs(playeraera)) do
		if (isPlayer(pid)) then
			if getPlayerLevel(pid) >= level_to_get_pked then
				doAddCondition(cid, CONDITION_PARALYZE)
				addEvent(unparalyze, para_time * 1000, pid)
end
end
end
	doAddCondition(cid, CONDITION_HASTE)
	addEvent(unhaste, haste_time * 1000, cid)
return true
end


local function unparalyze
if getPlayerName(pid) then
	doRemoveCondition(cid, CONDITION_PARALYZE)
end
end

local function unhaste
if getPlayerName(cid) then
	removeCondition(cid, CONDITION_HASTE)
end
end
 
Last edited:
First one paralyzes myself, second one does nothing,

I don't know how to do spells at all so I'm glad that ur helping me..
 
Back
Top