1) Na subpasta Combat, que fica dentro da pasta Scripts do SERVIDOR, abra o arquivo game_client.rb
2) No def attack_normal, procure por:
Créditos:
Valentine
2) No def attack_normal, procure por:
- Código:
next if !client&.in_game? || client.map_id != @map_id || !in_front?(client) || client.admin? || protection_level?(client)
- Código:
next if !client&.in_game? || client.map_id != @map_id || !in_front?(client) || client.admin? || protection_level?(client) || in_same_party?(client)
- Código:
def in_same_party?(client)
return in_party? && client.in_party? && @party_id == client.party_id
end
- Código:
if @target.type == Enums::Target::PLAYER && valid_target?(target) && $network.maps[@map_id].pvp && !target.admin? && !protection_level?(target)
- Código:
if @target.type == Enums::Target::PLAYER && valid_target?(target) && $network.maps[@map_id].pvp && !target.admin? && !protection_level?(target) && !in_same_party?(target)
- Código:
if @target.type == Enums::Target::PLAYER && valid_target?(target)
- Código:
if @target.type == Enums::Target::PLAYER && valid_target?(target) && !in_same_party?(target)
- Código:
next if !client&.in_game? || client.map_id != @map_id || !in_range?(client, item.aoe) || client.admin? || protection_level?(client) || client == self
- Código:
next if !client&.in_game? || client.map_id != @map_id || !in_range?(client, item.aoe) || client.admin? || protection_level?(client) || client == self || in_same_party?(client)
Créditos:
Valentine
Última edição por Valentine em Qui Fev 03, 2022 12:18 pm, editado 5 vez(es)