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

RunarM

Finally back
Joined
Jul 17, 2008
Messages
1,636
Reaction score
32
Location
Norway/Tromsø
I'm not a good scripter so can anyone make a spell for me.

I'll try to explain hows its going to be:

You say the spell name "whatever"
and the spell will shoot fire on all players/monsters on the screen.
Can you make one spell for the monsters and one spell for players and one for both :$


Example;
You say the spell name and it shoots like this;
5shoot.png



Thanks for the help, RunarM.
 
Last edited:
Hey,
I didnt know if you wanted it to create fire fields or just shoot fire.. I just made it shoot fire..

If its not right, tell me and ill change it for ya ;]

Lua:
local acombat1 = createCombatObject()

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 0)
 
arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 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, 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}
}

local area1 = createCombatArea(arr1)

setCombatArea(acombat1, area1)

function onTargetTile(cid, pos)
    doCombat(cid,combat1,positionToVariant(pos))
end

setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

local function onCastSpell1(parameters)
    doCombat(parameters.cid, acombat1, parameters.var)
end
 
function onCastSpell1(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 0, parameters)

end

It should work, but, im only learning. >.<
 
Last edited:
Back
Top