SCRIPT DE METEORITOS BY:DIEGO
3 participantes
:: Programación :: Scripts
Página 1 de 1.
SCRIPT DE METEORITOS BY:DIEGO
Bueno este es un buen script lo que hace es dejar caer meteoritos en diferentes partes nunca es igual.
Código:
area6 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}
area5 = {
{1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1}
}
area4 = {
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0},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0, 1, 0, 0, 0, 1, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{1, 0, 0, 1, 0, 8, 1, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1},
{0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1}
}
attackType = ATTACK_FIRE
needDirection = false
areaEffect = NM_ME_EXPLOSION_AREA
animationEffect = NM_ME_NONE
hitEffect = NM_ANI_FIRE
damageEffect = NM_ME_HITBY_FIRE
animationColor = RED
offensive = true
drawblood = true
MeteorosObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
place = math.random(1,6)
if place == 1 then
area = area1
elseif place == 2 then
area = area2
elseif place == 3 then
area = area3
elseif place == 4 then
area = area4
elseif place == 5 then
area = area5
elseif place == 6 then
area = area6
end
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
h = math.random(3,4)
MeteorosObject.minDmg = (level * 2 + maglv * 3) * h - (h * 10)
MeteorosObject.maxDmg = (level * 2 + maglv * 3) * h - 50
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, MeteorosObjectOhmyrdered())
end
CREDITS BY:DIEGO
Código:
area6 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 1, 0, 0, 0, 0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1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1}
}
attackType = ATTACK_FIRE
needDirection = false
areaEffect = NM_ME_EXPLOSION_AREA
animationEffect = NM_ME_NONE
hitEffect = NM_ANI_FIRE
damageEffect = NM_ME_HITBY_FIRE
animationColor = RED
offensive = true
drawblood = true
MeteorosObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
place = math.random(1,6)
if place == 1 then
area = area1
elseif place == 2 then
area = area2
elseif place == 3 then
area = area3
elseif place == 4 then
area = area4
elseif place == 5 then
area = area5
elseif place == 6 then
area = area6
end
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
h = math.random(3,4)
MeteorosObject.minDmg = (level * 2 + maglv * 3) * h - (h * 10)
MeteorosObject.maxDmg = (level * 2 + maglv * 3) * h - 50
return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, MeteorosObjectOhmyrdered())
end
CREDITS BY:DIEGO
Re: SCRIPT DE METEORITOS BY:DIEGO
alguna imagen plis?
Lefiathen- Newbie
- Cantidad de envíos : 1
Localización : mexico
Perfil Personalizado : Sed simpático, soy un nuevo miembro
Fecha de inscripción : 14/06/2010
Re: SCRIPT DE METEORITOS BY:DIEGO
demaciadas cosas
pueden poner esto y si parece una lluvia de meteoros
pueden poner esto y si parece una lluvia de meteoros
- Código:
local combat = createCombatObject()
arr = {
{0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0},
{1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function spellCallback(param)
if param.count > 0 or math.random(0, 1) == 1 then
doSendMagicEffect(param.pos, 0)
doAreaCombatHealth(param.cid, COMBAT_FIREDAMAGE, param.pos, 0, -500, -500, 36)
doAreaCombatHealth(param.cid, COMBAT_DEATHDAMAGE, param.pos, 0, -500, -500, 17)
end
if(param.count < 5) then
param.count = param.count + 1
addEvent(spellCallback, math.random(1000, 4000), param)
end
end
function onTargetTile(cid, pos)
local param = {}
param.cid = cid
param.pos = pos
param.count = 0
spellCallback(param)
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Fercho- Newbie
- Cantidad de envíos : 1
Localización : Monterrey
Perfil Personalizado : Sed simpático, soy un nuevo miembro
Fecha de inscripción : 27/08/2012
Temas similares
» Esprite wand Script Hecha por diego
» MI IP-MASTER XD DIEGO
» MANA RUNE BY DIEGO
» NPC QUE VENDE MOUSTROS (7.6) BY DIEGO
» SCRIPT`PARA LOS TAPESTRIES GIREN
» MI IP-MASTER XD DIEGO
» MANA RUNE BY DIEGO
» NPC QUE VENDE MOUSTROS (7.6) BY DIEGO
» SCRIPT`PARA LOS TAPESTRIES GIREN
:: Programación :: Scripts
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.