
Apsami
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
Apsami deu reputação a MaXwEllDeN em [Resolvido]Proteção para char's em pvp modeProtectedPlayer.lua
--################################### --## Developed by: MaXwEllDeN ## --## Contact: ## --## [email protected] ## --################################### local config = { enable = true, -- O Sistema está ativo? true para sim, false para não. players = {"Apsami", "Lord'Paulistinha"}, -- Nome dos players que estão protegidos. } function onCombat(cid, target) if config.enable and isInArray(config.players, getCreatureName(target)) then return false end return true end function onAttack(cid, target) if config.enable and isInArray(config.players, getCreatureName(target)) then doPlayerSendCancel(cid, "Você não pode atacar ".. getCreatureName(target)) return false end return true end <event type = "attack" name = "ProteAttack" event = "script" value = "ProtectedPlayer.lua" /> <event type = "attack" name = "ProteCombat" event = "script" value = "ProtectedPlayer.lua" /> Abra o login.lua e antes do último return true ponha isso: registerCreatureEvent(cid, "ProteAttack") registerCreatureEvent(cid, "ProteCombat")
-
Apsami deu reputação a Kimoszin em Problemas com meu Otserv :(Vá até o local da magia, e verifique se ela tem:
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) Se não tiver, adicione no script a tag acima, em baixo de: setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
Sobre os Fields, você tem que ver se ele é imune ao elemento.