Ir para conteúdo

Featured Replies

Postado
  • Autor

pode ser qualquer um desses 3 aqui:  

posta o conteudo deles pra eu analisar

certo, irie te mandar mais ira ficar muito grande!!!

 

 

reflectpally

 

local multiplier = {}
local counter = 0
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerStorageValue(cid, 10095) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then
 
if isPlayer(attacker) == TRUE then
multiplier = 4
else
multiplier = 10
end
 
function doAttack(attacker)
if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then
if counter < 5 then 
local damage = math.floor((value * multiplier) / 5)
local damage2 = damage / 2
doTargetCombatHealth(cid, attacker, COMBAT_DROWNDAMAGE, -damage2, -damage2, 129)
doCreatureAddHealth(cid, damage2)
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(attacker), 17)
counter = counter + 1
addEvent(doAttack,1000,attacker)
else
stopEvent(attacker,doAttack)
counter = 0
end
else
stopEvent(attacker,doAttack)
counter = 0
end
end
 
addEvent(doAttack, 0, attacker)
if isCreature(attacker) == TRUE then
doSendMagicEffect(getCreaturePos(attacker), 66)
end
doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW)
 
if isCreature(attacker) == true and isPlayer(attacker) == false then
local addSoul = 40
if (getPlayerSoul(cid) + 40) > 250 then
addSoul = 250 - getPlayerSoul(cid)
end
doPlayerAddSoul(cid, addSoul)
end
 
--if getPlayerStorageValue(cid, 10095) == 1 then
--setPlayerStorageValue(cid, 10095, 2)
--elseif getPlayerStorageValue(cid, 10095) == 2 then
doRemoveCondition(cid, CONDITION_FOOD)
setPlayerStorageValue(cid, 10095, 0)
--end
 
return false
else
return true
end
end
 
 
refletectmage
 
local multiplier = {}
local counter = 0
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerStorageValue(cid, 10096) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then
if isPlayer(attacker) == TRUE then
multiplier = 4
else
multiplier = 10
end
 
function doAttack(attacker)
if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then
if counter < 5 then 
local damage = math.floor((value * multiplier) / 5)
doCreatureAddMana(cid, damage)
doSendDistanceShoot(getCreaturePosition(attacker), getCreaturePosition(cid), 35)
doSendMagicEffect(getCreaturePos(cid), CONST_ME_LOSEENERGY)
counter = counter + 1
addEvent(doAttack,1000,attacker)
else
stopEvent(attacker,doAttack)
counter = 0
end
else
stopEvent(attacker,doAttack)
counter = 0
end
end
 
addEvent(doAttack, 0, attacker)
if isCreature(attacker) == TRUE then
doSendMagicEffect(getCreaturePos(attacker), 66)
end
doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW)
 
if isCreature(attacker) == true and isPlayer(attacker) == false then
local addSoul = 40
if (getPlayerSoul(cid) + 40) > 250 then
addSoul = 250 - getPlayerSoul(cid)
end
doPlayerAddSoul(cid, addSoul)
end
 
--if getPlayerStorageValue(cid, 10096) == 1 then
--setPlayerStorageValue(cid, 10096, 2)
--elseif getPlayerStorageValue(cid, 10096) == 2 then
doRemoveCondition(cid, CONDITION_FOOD)
setPlayerStorageValue(cid, 10096, 0)
--end
 
return false
else
return true
end
end
 
reflectkina
 
local multiplier = {}
local counter = 0
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerStorageValue(cid, 10094) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then
 
if isPlayer(attacker) == TRUE then
multiplier = 4
else
multiplier = 10
end
 
function doAttack(attacker)
if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then
if counter < 5 then 
local damage = math.floor((value * multiplier) / 5)
doTargetCombatHealth(cid, attacker, COMBAT_DROWNDAMAGE, -damage, -damage, 129)
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(attacker), 24)
counter = counter + 1
addEvent(doAttack,1000,attacker)
else
stopEvent(attacker,doAttack)
counter = 0
end
else
stopEvent(attacker,doAttack)
counter = 0
end
end
 
addEvent(doAttack, 0, attacker)
if isCreature(attacker) == TRUE then
doSendMagicEffect(getCreaturePos(attacker), 66)
end
doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW)
 
if isCreature(attacker) == true and isPlayer(attacker) == false then
local addSoul = 40
if (getPlayerSoul(cid) + 40) > 250 then
addSoul = 250 - getPlayerSoul(cid)
end
doPlayerAddSoul(cid, addSoul)
end
 
--if getPlayerStorageValue(cid, 10094) == 1 then
--setPlayerStorageValue(cid, 10094, 2)
--elseif getPlayerStorageValue(cid, 10094) == 2 then
doRemoveCondition(cid, CONDITION_FOOD)
setPlayerStorageValue(cid, 10094, 0)
--end
return false
else
return true
end
end

Editado por mateusmoretti (veja o histórico de edições)

  • Respostas 15
  • Visualizações 687
  • Created
  • Última resposta

Top Posters In This Topic

Postado

cara não é nenhum desses.. pra eu te ajudar com o script preciso que tu poste o script aqui mas se a sua source não diz o arquivo que deu problema eu te aconselho trocar de source

Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá!

"Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda

I7Pm6ih.png

(obg ao @Beeny por fazer essa linda sign <3)

Postado
  • Autor

cara não é nenhum desses.. pra eu te ajudar com o script preciso que tu poste o script aqui mas se a sua source não diz o arquivo que deu problema eu te aconselho trocar de source

 

o withe, deletei aquelas creaturescripts que tu falou, não deu nenhum problema no server! mais o erro continua,,

será que pode ser algo no xml??? se eu não tiver enganado eu troquei de outro ot !

Postado

pode ser algum mods então.. mas não tem como eu descobrir e te ajudar se a tua source não te diz cara.. isso vai te trazer muito problema no futuro. Sugiro que você troque.

Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá!

"Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda

I7Pm6ih.png

(obg ao @Beeny por fazer essa linda sign <3)

Postado

Talvez na SS que enviou, mais para cima mostre o nome do arquivo que esteja causando o erro, o que podemos analisar é que está no seu sistema de Reflect, agora pode ser em arquivos LUA ou algum MOD.

Com a função onStatsChange, ou seja, assim que algum monstro ou player da um hit em alguém.

 

Confira na sua distro se no início do erro não mostra o arquivo referente ao mesmo.

 

Ficamos aguardando.

Gosta do meu trabalho?

Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs.

 

Atenciosamente,
Adriano Swatt'

 

Para ver meus tutoriais acesse meu perfil.

 

cbCyOSZ.png

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo