OTPearl
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Noticias!
07-02-10: El chat siempre esta abierto entren.
Últimos temas
» [8.54] Alissow Ots 3.7
Dos Spells new Icon_minitimeSáb Dic 21, 2013 10:41 am por LuisXorr

»  Servidor TIBIA OT en español y con sonido
Dos Spells new Icon_minitimeDom Sep 22, 2013 10:20 am por bombero

» BUSCO MODERADOSRES
Dos Spells new Icon_minitimeSáb Mayo 11, 2013 4:17 pm por joedwin

» Armada Azteca Map By God Shaotick - Helpserver
Dos Spells new Icon_minitimeMiér Mayo 16, 2012 7:31 pm por Fargos

» 8.60 Tibianosmx.sytes.net Servidor Dedicado
Dos Spells new Icon_minitimeMar Feb 14, 2012 2:37 pm por tibianosmx

» [8.54] The Forgotten Server 0.3.6 (Crying Damson)
Dos Spells new Icon_minitimeMiér Dic 14, 2011 10:08 pm por maikel

» abrir puertos de tibia con thomson tg585 v8
Dos Spells new Icon_minitimeDom Jun 05, 2011 11:15 am por God Yoter

» [8.54] Yurots By Miguelito
Dos Spells new Icon_minitimeMar Abr 05, 2011 9:24 pm por Onyx

» Gesior Account Maker for TFS 0.3.6
Dos Spells new Icon_minitimeJue Feb 10, 2011 10:57 am por CacheroXx

Navegación
 Portal
 Índice
 Miembros
 Perfil
 FAQ
 Buscar
¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado

Ninguno

[ Ver toda la lista ]


El record de usuarios en línea fue de 21 durante el Jue Feb 01, 2024 7:28 am
Compañeros
Crear foro
OH

Dos Spells new

2 participantes

Ir abajo

Dos Spells new Empty Dos Spells new

Mensaje por Darksys Miér Feb 10, 2010 6:10 pm

Este es el primero: Storm Gust


[codigo]
local arr =
{
{
{1, 0, 1, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 3, 0, 1},
{0, 1, 0, 1, 0},
{1, 0, 1, 0, 1}
},
{
{0, 1, 0, 1, 0},
{1, 0, 1, 0, 1},
{0, 1, 3, 1, 0},
{1, 0, 1, 0, 1},
{0, 1, 0, 1, 0}
},
{
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1},
{1, 1, 3, 1, 1},
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1}
}
}

local effect, combat = {CONST_ME_ICEATTACK, CONST_ME_ICEATTACK, CONST_ME_ICEAREA}, {}

local function tileChecker(pos)
local myTable = {}
if (type(pos) == 'table') then
for i = 1, 5 do
pos.stackpos = i
local Thing = getThingFromPos(pos)
local thisID, thisUID = Thing.itemid, Thing.uid
if thisID > 1 then
table.insert(myTable, thisUID)
end
end
end
return #myTable > 0 and myTable or nil
end

local function MoveAgain(p)
if isPlayer(p.player) == TRUE then
doPlayerSetNoMove(p.player, FALSE)
end
end

local function GetPosToPush(cid, pos)
local nPos = {
[0]={x=pos.x, y=pos.y-1, z=pos.z},
[1]={x=pos.x+1, y=pos.y, z=pos.z},
[2]={x=pos.x, y=pos.y+1, z=pos.z},
[3]={x=pos.x-1, y=pos.y, z=pos.z}}
return nPos[getPlayerLookDir(cid)]
end

function onTargetTile(cid, pos)
pos.stackpos = 253
local player = getThingFromPos(pos).uid
if isPlayer(player) == TRUE then
if math.random(1, 2) == 1 then
doPlayerSetNoMove(player, TRUE)
addEvent(MoveAgain, 2000, {player=player})
else
if cid ~= player then
local P = GetPosToPush(player, pos)
local tileItems, count = tileChecker(P) or {}, 0
if #tileItems > 0 then
for _, i in ipairs(tileItems) do
if getTilePzInfo(P) == false then
if (hasProperty(i, CONST_PROP_BLOCKSOLID) == FALSE)then
count = count + 1
end
end
end
end
if count == #tileItems then
doTeleportThing(player, P, TRUE)
end
tileItems, count = {}, 0
end
end
end
return TRUE
end

for i = 1, 3 do
combat[i] = createCombatObject()
setCombatParam(combat[i], COMBAT_PARAM_EFFECT, effect[i])
setCombatArea(combat[i], createCombatArea(arr[i]))
_G["onTargetTile" .. i] = onTargetTile
setCombatCallback(combat[i], CALLBACK_PARAM_TARGETTILE, "onTargetTile" .. i)
end

local function Spell(x)
doCombat(x.cid, combat[x.i], x.var)
end

function onCastSpell(cid, var)
for i = 1, 3 do
addEvent(Spell, 500 * i, {cid=cid, var=var, i=i})
end
return TRUE
end
[/codigo]


Este es el segundo:Aura strike. Razz
[codigo]
local function getDamage(cid)
min = (getPlayerLevel(cid) * 1 + getPlayerMagLevel(cid) * 1) * 0.6
max = (getPlayerLevel(cid) * 1 + getPlayerMagLevel(cid) * 1) * 1
return math.random(min, max)
end

local function efecto(x)
local P, C = getCreaturePosition(x.cid), 0
local From =
{
{x = P.x + 2, y = P.y, z = P.z},
{x = P.x, y = P.y - 2, z = P.z},
{x = P.x - 2, y = P.y, z = P.z},
{x = P.x, y = P.y + 2, z = P.z},
{x = P.x - 1, y = P.y - 1, z = P.z},
{x = P.x - 1, y = P.y + 1, z = P.z},
{x = P.x + 1, y = P.y + 1, z = P.z},
{x = P.x + 1, y = P.y - 1, z = P.z}
}
local To = {2, 3, 4, 1, 6, 7, 8, 5}
repeat
for i = 1, (#From / 2) do
local dmg = getDamage(x.cid)
local to, f = From[To[i]], (C % 2 == 1) and true or false
doSendDistanceShoot(From[i], to, CONST_ANI_SMALLICE)
if f then doAreaCombatHealth(x.cid, COMBAT_ICEDAMAGE, to, 0, -(dmg / 2), -dmg, CONST_ME_ICEATTACK) end
i = i + (#From / 2)
local to = From[To[i]]
doSendDistanceShoot(From[i], to, CONST_ANI_SMALLHOLY)
if f then doAreaCombatHealth(x.cid, COMBAT_HOLYDAMAGE, to, 0, -1, -getDamage(x.cid), CONST_ME_HOLYDAMAGE) end
end
C = C + 1
until C == 10
end

function onCastSpell(cid, var)
for i = 1, 5 do
addEvent(efecto, i * 400, {cid = cid})
end
return TRUE
end
[/codigo]
Creditos: 50% Sismo - Helpserver 50% Darksys (God Shaotick)
Darksys
Darksys
Poster
Poster

Mensajes : 38
Fecha de inscripción : 09/02/2010
Edad : 32
Localización : Julera / Mexico

Volver arriba Ir abajo

Dos Spells new Empty Re: Dos Spells new

Mensaje por Darksys Miér Feb 10, 2010 6:36 pm

Nadie ve los spell :S
Darksys
Darksys
Poster
Poster

Mensajes : 38
Fecha de inscripción : 09/02/2010
Edad : 32
Localización : Julera / Mexico

Volver arriba Ir abajo

Dos Spells new Empty Re: Dos Spells new

Mensaje por Darks Miér Feb 10, 2010 6:57 pm

O.o Los Provare ahora, ahorita toy ocupado Deben ser bueno

Buen Post king
Darks
Darks
XMOD
XMOD

Mensajes : 130
Fecha de inscripción : 07/02/2010
Edad : 28
Localización : Venezuela

http://www.wc3latino.forosactivos.net

Volver arriba Ir abajo

Dos Spells new Empty Re: Dos Spells new

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.