Ir para conteúdo
  • 0

Efeitos Ao Upar Level Ou Skills


Absolut1702

Pergunta

GALERA ,

 

VENHO PEDIR UM SCRIPT MUITO BOM QUE VI NUM OT AI.

 

FUNCIONA ASSIM, QUANDO VC UPA LEVEL OU SKILLS AO UPAR ELE SOLTA EFEITOS.

 

SÃO OS MESMOS EFEITOS QUE SE USA NO GOD COM O COMANDO /z

 

SE ALGUEM SOUBER DESSE SCRIPT POR FAVOR ME PASSE !! EU DO REP+

Link para o comentário
Compartilhar em outros sites

9 respostass a esta questão

Posts Recomendados

  • 0

data\creaturescripts\scripts\advance.lua

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

adiciona isso no login

registerCreatureEvent(cid, ""Playeradvance")

creaturescripts.xml

 <event type="advance" name="Playeradvance" event="script" value="advance.lua"/>

Link para o comentário
Compartilhar em outros sites

  • 0

TESTA ESSA AI:

Crie um arquivo no Creaturescripts/scripts chamado advance.lua e cole:

local config = {
[0] = { "Fist UP", 30}, -- 30 = variable[2] -- Animation effect
[1] = { "Club UP", 30}, -- 30 = variable[2] -- Animation effect
[2] = { "Sword UP", 30}, -- 30 = variable[2] -- Animation effect
[3] = { "Axe UP", 30}, -- 30 = variable[2] -- Animation effect
[4] = { "Distance UP", 30}, -- 30 = variable[2] -- Animation effect
[5] = { "Shield UP", 30}, -- 30 = variable[2] -- Animation effect
[6] = { "Fishing UP", 30}, -- 30 = variable[2] -- Animation effect
[7] = { "Magic 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 - 1, z = pos.z},
{x = pos.x, y = pos.y + 1, z = pos.z},
{x = pos.x - 1, y = pos.y, z = pos.z},
{x = pos.x + 1, y = pos.y, z = pos.z},
{x = pos.x - 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y - 1, z = pos.z},
{x = pos.x + 1, y = pos.y + 1, z = pos.z},
{x = pos.x - 1, y = pos.y + 1, 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_FIREWORK_BLUE)
end

end
end
return TRUE
end

 

no login.lua coloque:

 registerCreatureEvent(cid, "Playeradvance")

 

e no creaturescripts.xml

bote essa tag:

<event type="advance" name="Playeradvance" event="script" value="advance.lua"/>

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

×
×
  • Criar Novo...