MA

[Encerrado] Velocidade Spell Rollout

Por markerkirito, 13 de mar. de 2013 em Tópicos Sem Resposta

9
1.1k
13 de março de 2013 às 14:34

Ae queria uma ajuda, com a spell rollout do pda está muito lento, queria saber como eu posso add velocidade nessa spell

 

 

 

elseif spell == "Rollout" then

 

local function setOutfit(cid, outfit)

if isCreature(cid) and getCreatureCondition(cid, CONDITION_OUTFIT) == true then

if getCreatureOutfit(cid).lookType == outfit then

doRemoveCondition(cid, CONDITION_OUTFIT)

end

end

end

 

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

 

local outfit = getCreatureOutfit(cid).lookType

 

local function roll(cid, outfit)

if not isCreature(cid) then return true end

if isSleeping(cid) then return true end

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

doDanoWithProtect(cid, ROCKDAMAGE, getThingPosWithDebug(cid), splash, -min, -max, 0)

end

 

setPlayerStorageValue(cid, 3644587, 1)

addEvent(setPlayerStorageValue, 9000, cid, 3644587, -1)

for r = 1, 11 do --8

addEvent(roll, 750 * r, cid, outfit)

end

addEvent(setOutfit, 9050, cid, outfit)

 

 

 

Quem me ajuda eu do rep +

RoksasR
13 de março de 2013 às 14:38

Lento em que sentido amigo? Os efeitos?

13 de março de 2013 às 14:47

Não tipo o rollout está muito lento, o certo era para o Golem Shiny Golem Sandslash all pokes que tem o attack rollout aumenta a velocidade do pokemon quando usa rollout, ele só fica girando não tem velocidade, uma vez eu vi slicer, falando que precisava add velocidade na spell em 1 posta ai, mais não sei como fazer isso.

RoksasR
13 de março de 2013 às 14:49

Ok me passa o script inteiro pra eu mudar.

13 de março de 2013 às 14:51

Esse ai que eu postei, é o script da spell rollout

elseif spell == "Rollout" then

 

local function setOutfit(cid, outfit)

if isCreature(cid) and getCreatureCondition(cid, CONDITION_OUTFIT) == true then

if getCreatureOutfit(cid).lookType == outfit then

doRemoveCondition(cid, CONDITION_OUTFIT)

end

end

end

 

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

 

local outfit = getCreatureOutfit(cid).lookType

 

local function roll(cid, outfit)

if not isCreature(cid) then return true end

if isSleeping(cid) then return true end

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

doDanoWithProtect(cid, ROCKDAMAGE, getThingPosWithDebug(cid), splash, -min, -max, 0)

end

 

setPlayerStorageValue(cid, 3644587, 1)

addEvent(setPlayerStorageValue, 9000, cid, 3644587, -1)

for r = 1, 11 do --8

addEvent(roll, 750 * r, cid, outfit)

end

addEvent(setOutfit, 9050, cid, outfit)

RoksasR
13 de março de 2013 às 14:54

Try:

 

 

elseif spell == "Rollout" then

 

local function setOutfit(cid, outfit)

if isCreature(cid) and getCreatureCondition(cid, CONDITION_OUTFIT) == true then

if getCreatureOutfit(cid).lookType == outfit then

doRemoveCondition(cid, CONDITION_OUTFIT)

doChangeSpeed(cid,getCreatureSpeed(cid)-50)

end

end

end

 

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

 

local outfit = getCreatureOutfit(cid).lookType

 

local function roll(cid, outfit)

if not isCreature(cid) then return true end

if isSleeping(cid) then return true end

if RollOuts[getSubName(cid, target)] then

doSetCreatureOutfit(cid, RollOuts[getSubName(cid, target)], -1) --alterado v1.6.1

end

doDanoWithProtect(cid, ROCKDAMAGE, getThingPosWithDebug(cid), splash, -min, -max, 0)

doChangeSpeed(cid,50)

end

 

setPlayerStorageValue(cid, 3644587, 1)

addEvent(setPlayerStorageValue, 9000, cid, 3644587, -1)

for r = 1, 11 do --8

addEvent(roll, 750 * r, cid, outfit)

end

addEvent(setOutfit, 9050, cid, outfit)

 

13 de março de 2013 às 15:35

vlw funfo rep +

RoksasR
13 de março de 2013 às 15:55

Dúvida sanada, tópico movido para pedidos e dúvida atendidos!

5 anos depois...
StigalS
21 de abril de 2018 às 02:43
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.