• 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] Two Spell Requests.

Rthom19

New Member
Joined
Mar 2, 2009
Messages
50
Reaction score
0
Location
Australia
Second Spell.
I havent started to make a code for this cause i have no idea how to do it. lol.

0, 0, 0, 0, 0, 0, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 0, 0
0, 0, 0, 1, 1, 1, 0, 0, 0
0, 0, 1, 1, 1, 1, 1, 0, 0
0, 0, 1, 1, 3, 1, 1, 0, 0
0, 0, 1, 1, 1, 1, 1, 0, 0
0, 0, 0, 1, 1, 1, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 0, 0
0, 0, 0, 0, 0, 0, 0, 0, 0

3 = Spell Caster
1's = Area Of Effect.

So Basically the same shape of divine caldera, ground shaker. etc.

I want there to be an effect to shoot from the top left hand side of the screen (offscreen) that shoots randomly in that area, that lasts for about 5 secs.

For example..
The effect that shoots from offscreen.. lets make it Ice(28) and the area is hits.. lets make it Ice Area(41).

I hope someone can help me, and i hope iv'e explained it well enough.

Thanks in advance.

btw. Im using tfs 0.3.5pl1 (Crying Damson)
 
Last edited:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -1.1, 0)

local condition = createConditionObject(CONDITION_FROZEN)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, condition)

local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}


local area = createCombatArea(arr)

setCombatArea(combat, area)

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