• 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 spell apocalypse [script here]

GOD lolsito

New Member
Joined
Aug 16, 2010
Messages
78
Reaction score
1
Friends who wave this time I leave a very good spell I did in a time of boredom I hope you like it.

Give me + rep and subscribe to my youtube account or go to my forum was a joke lol just suscribe to my youtube and go to my channel.

Code:
    local combat1 = createCombatObject()
    setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
    setCombatParam(combat1, COMBAT_PARAM_EFFECT, 43)
    setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -200, 2.0, -100)

    local combat2 = createCombatObject()
    setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
    setCombatParam(combat2, COMBAT_PARAM_EFFECT, 10)
    setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -300, 2.0, -1000)
   
    local combat3 = createCombatObject()
    setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combat3, COMBAT_PARAM_EFFECT, 31)
    setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -200, 2.0, -500)
    
   arr1 = {
   {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
   {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
   {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
   {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
   {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0},
   {0, 1, 0, 1, 1, 3, 1, 1, 0, 0, 0},
   {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0},
   {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0},
   {0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
   {0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
   {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
   }

   arr2 = {
   {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, 0, 0, 0, 0, 0},
   {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
   {0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0},
   {0, 1, 1, 0, 1, 3, 1, 0, 1, 1, 0},
   {0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0},
   {0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0},
   {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
   {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
   {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
   }
 
  arr3 = {
  {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, 0, 1, 0, 0, 0, 0},
  {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
  {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  {0, 0, 1, 0, 0, 3, 0, 0, 1, 0, 0},
  {0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
  {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0},
  {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0},
  {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
  {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
  }
 

    
 
    local area1 = createCombatArea(arr1)
    local area2 = createCombatArea(arr2)
    local area3 = createCombatArea(arr3)
    

    setCombatArea(combat1, area1)
    setCombatArea(combat2, area2)
    setCombatArea(combat3, area3)



    local function onCastSpell1(parameters)
    doCombat(parameters.cid, combat1, parameters.var)
    end
    local function onCastSpell2(parameters)
    doCombat(parameters.cid, combat2, parameters.var)
    end
    local function onCastSpell3(parameters)
    doCombat(parameters.cid, combat3, parameters.var)
    end
    function onCastSpell(cid, var)
    local parameters = { cid = cid, var = var}
    addEvent(onCastSpell1, 100, parameters)
    addEvent(onCastSpell2, 100 , parameters)
    addEvent(onCastSpell3, 100 , parameters)
    return TRUE
    end


Give me more reputation!! :blink:




Video of the spell:
[video=youtube;i_oaMTASCJM]http://www.youtube.com/watch?v=i_oaMTASCJM[/video]


Credits %100 me
 
looks to messy sorry, if your going to use spells you dont want to use energy with ice with stun and other effects it justs looks like spam in a big area.

stick to using spell effects that go well together and look awesome :)
 
Back
Top