Ir para conteúdo

Procura De Uma Scripts Creatureevents


merck

Posts Recomendados

Estou procurando uma scripts CreatureEvents que quando o char upa fala

Fist skill UP

Club skill UP

Sword skill UP...

em laranja e solta um skill vi isso em um ot se puderem me ajuda eu agredeço

 

--Script made by Pitufo/Haifurer,

local config = {

[0] = { "Fist skill UP", 30}, -- 30 = variable[2] -- Animation effect

[1] = { "Club skill UP", 30}, -- 30 = variable[2] -- Animation effect

[2] = { "Sword skill UP", 30}, -- 30 = variable[2] -- Animation effect

[3] = { "Axe skill UP", 30}, -- 30 = variable[2] -- Animation effect

[4] = { "Distance skill UP", 30}, -- 30 = variable[2] -- Animation effect

[5] = { "Shield skill UP", 30}, -- 30 = variable[2] -- Animation effect

[6] = { "Fishing skill UP", 30}, -- 30 = variable[2] -- Animation effect

[7] = { "Magic level UP", 30}, -- 30 = variable[2] -- Animation effect

[8] = { "Level UP", 30} -- 30 = variable[2] -- Animation effect

}

 

 

function onAdvance(cid, skill, oldlevel, newlevel)

 

local pos = getPlayerPosition(cid)

local effectPositions = {

{x = pos.x, y = pos.y - 3, z = pos.z},

{x = pos.x, y = pos.y + 3, z = pos.z},

{x = pos.x - 3, y = pos.y, z = pos.z},

{x = pos.x + 3, y = pos.y, z = pos.z},

{x = pos.x - 2, y = pos.y - 2, z = pos.z},

{x = pos.x + 2, y = pos.y - 2, z = pos.z},

{x = pos.x + 2, y = pos.y + 2, z = pos.z},

{x = pos.x - 2, y = pos.y + 2, z = pos.z}

}

 

 

for type, variable in pairs(config) do

if skill == type then

doCreatureSay(cid, ""..variable[1].." ["..newlevel.."]", TALKTYPE_ORANGE_1)

for _, ePos in ipairs(effectPositions) do

doSendDistanceShoot(pos, ePos, CONST_ANI_SMALLHOLY)

doSendMagicEffect(ePos, CONST_ME_HOLYAREA)

end

 

 

end

end

return TRUE

end

ESE AE DE CIMA E A NORMAL

 

:XTibia_smile:

 

SE ESTIVER NA AREA ERRADA MOVA POR FAVOR :whistle:

Link para o comentário
Compartilhar em outros sites

Voce quer o script mais o script ta ali no seu post e ele pega 100% ja se voce quer saber como poem ele

faiz o seguinte vai em creaturescripts.xml e add isso

 

	<event type="Advance" name="AdvEffect" script="advance.lua"/>

 

Salve e feche agora va em scripts e crie advance.lua e add isso

local config = {
[0] = { "Fist skill UP", 30}, -- 30 = variable[2] -- Animation effect
[1] = { "Club skill UP", 30}, -- 30 = variable[2] -- Animation effect
[2] = { "Sword skill UP", 30}, -- 30 = variable[2] -- Animation effect
[3] = { "Axe skill UP", 30}, -- 30 = variable[2] -- Animation effect
[4] = { "Distance skill UP", 30}, -- 30 = variable[2] -- Animation effect
[5] = { "Shield skill UP", 30}, -- 30 = variable[2] -- Animation effect
[6] = { "Fishing skill UP", 30}, -- 30 = variable[2] -- Animation effect
[7] = { "Magic level UP", 30}, -- 30 = variable[2] -- Animation effect
[8] = { "Level UP", 30} -- 30 = variable[2] -- Animation effect
}


function onAdvance(cid, skill, oldlevel, newlevel)

local pos = getPlayerPosition(cid)
local effectPositions = {
{x = pos.x, y = pos.y - 3, z = pos.z},
{x = pos.x, y = pos.y + 3, z = pos.z},
{x = pos.x - 3, y = pos.y, z = pos.z},
{x = pos.x + 3, y = pos.y, z = pos.z},
{x = pos.x - 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y - 2, z = pos.z},
{x = pos.x + 2, y = pos.y + 2, z = pos.z},
{x = pos.x - 2, y = pos.y + 2, z = pos.z}
}


for type, variable in pairs(config) do
if skill == type then
doCreatureSay(cid, ""..variable[1].." ["..newlevel.."]", TALKTYPE_ORANGE_1)
for _, ePos in ipairs(effectPositions) do
doSendDistanceShoot(pos, ePos, CONST_ANI_SMALLHOLY)
doSendMagicEffect(ePos, CONST_ME_HOLYAREA)
end


end
end
return TRUE
end

 

Feito isso salve e feche agora abra o login.lua e add isso antes do ultimo return true la embaixo

	registerCreatureEvent(cid, "AdvEffect")

 

REP+ aew :D

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...