Ir para conteúdo
  • 0

Spell De Sacrifício


WellRamalho

Pergunta

Oi pessoal,

Bom eu estou aqui para pedir que vocês me ajudem, ontem eu passei o dia todo tentando fazer esse script, só consegui fazer os efeitos.

Esse script é +/- o nasce uns pilares com o id 12384 ao redor do player assim=

 

{0, 0, 1, 0, 1, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{1, 0, 0, 0, 0, 0, 1},

{0, 0, 1, 2, 1, 0, 0},

{1, 0, 0, 0, 0, 0, 1},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 1, 0, 1, 0, 0},

 

Até ai tudo bem, mas agora deveria nascer uns monstros ao redor, isso eu não consegui=

 

{0, 0, 0, 1, 0, 0, 0},

{0, 1, 0, 0, 0, 1, 0},

{0, 0, 0, 0, 0, 0, 0},

{1, 0, 0, 2, 0, 0, 1},

{0, 0, 0, 0, 0, 0, 0},

{0, 1, 0, 0, 0, 1, 0},

{0, 0, 0, 1, 0, 0, 0},

como são vários monstros terá que ter várias áreas, aí é apenas uma amostra.

 

E agora tudo que apareceu iria ir sumindo aos poucos, até chegar no centro,onde o player iria ganhar +5 de todos os skills e 200 de life 100 mana, sendo que só poderia fazer uma vez no dia, isso também não consegui.

vou postar o script e um gif

Gif

post-345727-0-35998600-1334500913_thumb.gif

 

Script

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 2)

setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 12384)

 

local combat2 = createCombatObject(SUMMONCREATURE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat3, COMBAT_PARAM_CREATUREILLUSION, "White Witch")

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat3, COMBAT_PARAM_CREATUREILLUSION, "Green Witch")

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat4, COMBAT_PARAM_CREATUREILLUSION, "Black Witch")

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat5, COMBAT_PARAM_CREATUREILLUSION, "Pink Witch")

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat6, COMBAT_PARAM_CREATUREILLUSION, "Yellow Witch")

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat7, COMBAT_PARAM_CREATUREILLUSION, "Blue Witch")

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat8, COMBAT_PARAM_CREATUREILLUSION, "Purple witch")

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat9, COMBAT_PARAM_CREATUREILLUSION, "Red Witch")

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 72)

setCombatParam(combat9, COMBAT_PARAM_REMOVEITEM, 12384)

 

local combat11 = createCombatObject()

setCombatParam(combat11, COMBAT_PARAM_EFFECT, 72)

 

local combat12 = createCombatObject()

setCombatParam(combat12, COMBAT_PARAM_EFFECT, 72)

 

local combat13 = createCombatObject()

setCombatParam(combat13, COMBAT_PARAM_EFFECT, 72)

 

 

arr1 = {

{0, 0, 1, 0, 1, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{1, 0, 0, 0, 0, 0, 1},

{0, 0, 1, 2, 1, 0, 0},

{1, 0, 0, 0, 0, 0, 1},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 1, 0, 1, 0, 0},

}

 

 

arr2 = {

{0, 0, 0, 1, 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},

}

 

 

arr3 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{1, 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},

}

 

arr4 = {

{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, 1, 0, 0, 0},

}

 

arr5 = {

{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, 1},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

}

 

arr6 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 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},

}

 

arr7 = {

{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, 1, 0},

{0, 0, 0, 0, 0, 0, 0},

}

 

arr8 = {

{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, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

}

 

arr9 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 1, 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},

}

 

arr10 = {

{0, 0, 1, 1, 1, 0, 0},

{0, 1, 0, 0, 0, 1, 0},

{1, 0, 0, 0, 0, 0, 1},

{1, 0, 1, 2, 1, 0, 1},

{1, 0, 0, 0, 0, 0, 1},

{0, 1, 0, 0, 0, 1, 0},

{0, 0, 1, 1, 1, 0, 0},

}

 

arr11 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 1, 0, 2, 0, 1, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

}

 

arr12 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 1, 0, 0, 0},

{0, 0, 1, 2, 1, 0, 0},

{0, 0, 0, 1, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

}

 

arr13 = {

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 3, 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)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr6)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

local area11 = createCombatArea(arr11)

local area12 = createCombatArea(arr12)

local area13 = createCombatArea(arr13)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

setCombatArea(combat6, area6)

setCombatArea(combat7, area7)

setCombatArea(combat8, area8)

setCombatArea(combat9, area9)

setCombatArea(combat10, area10)

setCombatArea(combat11, area11)

setCombatArea(combat12, area12)

setCombatArea(combat13, area13)

 

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

 

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, parameters.combat4, parameters.var)

end

 

local function onCastSpell5(parameters)

doCombat(parameters.cid, parameters.combat5, parameters.var)

end

 

local function onCastSpell6(parameters)

doCombat(parameters.cid, parameters.combat6, parameters.var)

end

 

local function onCastSpell7(parameters)

doCombat(parameters.cid, parameters.combat7, parameters.var)

end

 

local function onCastSpell8(parameters)

doCombat(parameters.cid, parameters.comba8, parameters.var)

end

 

local function onCastSpell9(parameters)

doCombat(parameters.cid, parameters.combat9, parameters.var)

end

 

local function onCastSpell10(parameters)

doCombat(parameters.cid, parameters.combat10, parameters.var)

end

 

local function onCastSpell11(parameters)

doCombat(parameters.cid, parameters.combat11, parameters.var)

end

 

local function onCastSpell12(parameters)

doCombat(parameters.cid, parameters.combat12, parameters.var)

end

 

local function onCastSpell13(parameters)

doCombat(parameters.cid, parameters.combat13, parameters.var)

end

 

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13 }

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 1000, parameters)

addEvent(onCastSpell3, 1000, parameters)

addEvent(onCastSpell4, 1000, parameters)

addEvent(onCastSpell5, 1000, parameters)

addEvent(onCastSpell6, 1000, parameters)

addEvent(onCastSpell7, 1000, parameters)

addEvent(onCastSpell8, 1000, parameters)

addEvent(onCastSpell9, 1000, parameters)

addEvent(onCastSpell10, 1500, parameters)

addEvent(onCastSpell11, 2000, parameters)

addEvent(onCastSpell12, 2500, parameters)

addEvent(onCastSpell13, 2700, parameters)

 

end

Se não quiserem fazer o script, por favor falem o que eu coloco para poder summonar a criatura e depois fazer tudo sumir ao redor.

 

Desde já eu agradeço *.*

Editado por Ivelri
Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...