AB
pedido

Efeitos Ao Upar Level Ou Skills

Por Absolut1702, 27 de set. de 2012 em Scripts

script
10
3.1k
Absolut1702A
27 de setembro de 2012 às 20:52

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+

LtkshowL
notle2012N
28 de setembro de 2012 às 02:49

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"/>

Absolut1702A
29 de setembro de 2012 às 22:58

NENHUMA DAS 2 FUNCIONOU :(

 

MAIS NINGUÉM PODE ME AJUDAR?

JanmixJ
30 de setembro de 2012 às 13:17

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 Setembro 30 por Janmix

JuAnXtIbIaJ
30 de setembro de 2012 às 13:36

PRA QUE FALA COM FONTE DESSE TAMANHO '-' PARECE QUE TA DESESPERADO PELO SCRIPT

Absolut1702A
30 de setembro de 2012 às 14:30

Janmix

 

 

RED ++ ! VLWS

notle2012N
01 de outubro de 2012 às 19:02

pedido atendido

 

Reportado aqui

caoticC
01 de outubro de 2012 às 19:16

Tópico Movido

9 meses depois...
DavyziinCD
10 de julho de 2013 às 17:37

Janmix

funciona com xp alto?