1
[Aporte] Proteccion Guild y Party Members Sáb Feb 10, 2018 12:58 pm
[Adm] SevuOT
![[Adm] SevuOT](https://2img.net/u/2712/30/40/04/avatars/10743-22.jpg)
Miembro

Amigos aqui el script para tu TFS 0.4
que hace que los miembros de una party o de una guild no se puedan hacer daño!
CREATURESCRIPT.xml
LOGIN.lua
SCRIPT FINAL - protectionGuildAndParty
Espero les guste y les funcione!
que hace que los miembros de una party o de una guild no se puedan hacer daño!
CREATURESCRIPT.xml
- Código:
<event type="combat" name="protection_GuildAndParty" event="script" value="protectionGuildAndParty.lua"/>
LOGIN.lua
- Código:
registerCreatureEvent(cid, 'protection_GuildAndParty')
SCRIPT FINAL - protectionGuildAndParty
- Código:
local protection_Guild = true
local protection_Party = true
function onCombat(cid, target)
if isPlayer(cid) and isMonster(target) then
return true
end
if protection_Guild then
local guildCid = getPlayerGuildId(cid)
local guildTarget = getPlayerGuildId(target)
if guildCid == guildTarget then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, 'No damage guild members.')
return false
end end
if protection_Party then
local partyCid = getPlayerGuildId(cid)
local partyTarget = getPlayerGuildId(target)
if partyCid == partyTarget then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, 'No damage party members.')
return false
end end
return true
end
Espero les guste y les funcione!
Última edición por The_Pain el Sáb Feb 10, 2018 1:03 pm, editado 2 veces (Razón : xd)

Si necesitas hospedaje para tu servidor usa este enlace y mira los buenos planes de Windows y Linux:
Si tu cuenta de PayPal no esta verificada no importara, igual aceptan pagos con cuentas no verificadas.
![[Aporte] Proteccion Guild y Party Members TRJEB8aSRYK5IulEU6ilJw](https://2img.net/image.prntscr.com/image/TRJEB8aSRYK5IulEU6ilJw.png)
Si tu cuenta de PayPal no esta verificada no importara, igual aceptan pagos con cuentas no verificadas.
![[Aporte] Proteccion Guild y Party Members TRJEB8aSRYK5IulEU6ilJw](https://2img.net/image.prntscr.com/image/TRJEB8aSRYK5IulEU6ilJw.png)
4 participantes