Postado Junho 13, 2020 4 anos .Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Eu gostaria de modificar o effect dessa spell porem eu não sei como, se puderem me ajudar agradeço. eu já tentei local effect = 7 e effect = 7, porem continua com a effect original Está surgindo algum erro? Se sim coloque-o aqui. Citar Você tem o código disponível? Se tiver publique-o aqui: elseif spell == "Fireball" then doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), (isMega(cid) and getMegaID(cid) == "X") and 57 or 3) effect = 7 addEvent(doDanoWithProtect, 200, cid, FIREDAMAGE, getThingPosWithDebug(target), waba, min, max, (isMega(cid) and getMegaID(cid) == "X") and 302 or 5) Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Editado Junho 13, 2020 4 anos por KyureJL (veja o histórico de edições)
Postado Junho 13, 2020 4 anos Solução Você criou a variável effect com valor 7 mas não atribuiu ela em lugar nenhum... olha onde eu coloquei effect e missile elseif spell == "Fireball" then local effect = 7 local missile = 3 doSendDistanceShoot(getThingPosWithDebug(cid), getThingPosWithDebug(target), (isMega(cid) and getMegaID(cid) == "X") and 57 or missile) addEvent(doDanoWithProtect, 200, cid, FIREDAMAGE, getThingPosWithDebug(target), waba, min, max, (isMega(cid) and getMegaID(cid) == "X") and 302 or effect) Editado Junho 13, 2020 4 anos por samlecter corretor ortográfico... (veja o histórico de edições)
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.