Jump to content

[Guide] Pws kanw enan Server Online


Recommended Posts

prota apolla anoigoume tis port sto router mas 7777 2106 9014 an 8eloume na anoi3oume kai web site anoigoume kai tin port 80...

 

 

lipon g na tis anoi3oume 8a xriastoume ena psifio apo tin Dieu8insi IP.

 

anoigoume ena CMD. patame ipconfig kai  briskoume tin Dieu8insi Ip kai vlepoume to telefteo psifio to pliktrologoume stn istoselida tou router..

 

gia na anoi3oun i ports . Pame sto FireWall kai to kanoume OFF

 

molis to kanoume mpainoume sto www.canyouseeme.org -> gia na checkaroume an ontos i port einai anoixtes ama dn mas bgali me kokkina grammata kati error tote einai anoixtes

 

molis diapistosoume oti i port einai anoixtes Ftiaxnoume mia No-ip

 

me opio onoma 8elete.. px.  L2Nameserver.No-ip.biz

 

pame ston server C:/server/Gameserver/config/  anoigoume  to Server.Properties  

 

8a mas bgali ta eksis

 

 

# This is the server configuration file. Here you can set up the connection for your server.

# Usually you have to change the ExternalHostname option to

# - 127.0.0.1 (if you want to play alone / testing purpose)

# - LAN IP* (if you want to play from another computer in the network)

# - WAN IP** (if you want to play with friends over internet)

# - Questions? => http:\\l2equal.lt\forum\

#

# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"

# **= If you want to get you WAN IP, visit http://www.manoip.lt

# ===================================================================================================

 

#Do not True if you don't know what it means.

Debug = False

 

# ================================================================

# General server setting !!! REQUIRED to configure to everyone !!!

# ================================================================

 

# Bind ip of the gameserver, use * to bind on all available IPs

GameserverHostname = *

GameserverPort = 7777

 

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname

# If this ip is resolvable by Login just leave *

ExternalHostname = Your No-ip

 

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname

# If this ip is resolvable by Login just leave *

InternalHostname = Your No-ip

 

# The Loginserver host and port

LoginPort = 9014

LoginHost = 127.0.0.1

 

# This is the server id that the gameserver will request (i.e. 1 is Bartz)

RequestServerID = 2

# If set to True, the login will give an other id to the server  if the requested id is allready reserved

AcceptAlternateID = True

 

# Database info

Driver=com.mysql.jdbc.Driver

#Driver=org.hsqldb.jdbcDriver

#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

URL=jdbc:mysql://localhost/l2jdb

#URL=jdbc:hsqldb:hsql://localhost/l2jdb

#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=

Login = root

Password =

MaximumDbConnections = 100

 

# Datapack root directory, defaults to current directory from which the server is started

# DatapackRoot = C:/Work/tmp/DataPack

 

# Define character name template

# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*

# will allow names with first capital letter, next three small letters,

# and any (capital or not) letter or number, like ZbigN1eW

# Most rational to have CnameTemplate=[A-Z][a-z]*

# meaning names only of letters with first one capital, like Zbigniew

# Default .* - any namy of any symbols

CnameTemplate = .*

PetNameTemplate = .*

 

# Maximum number of chars per account - Default 7 (0 = unlimited [7 is the client limit])

CharMaxNumber = 7

 

# Define how many players are allowed to play simultaneously on your server.

MaximumOnlineUsers = 1000

 

 

# Minimum and maximum protocol revision that server allow to connect.

# You must keep MinProtocolRevision <= MaxProtocolRevision.

MinProtocolRevision = 1

MaxProtocolRevision = 999

 

#====================================================#

#        L2j-Equal                    #

# EXTRA fuctions                                     #

# before you set them up ready carefully the info    #

#====================================================#

# Activate Protection for unknownPacket flooding  

PacketProtection = False

# How much unknown packets before punishment.  

# If the player send more than 5 unknownPackets per second, the player get punished.  

UnknownPacketsBeforeBan = 5

# Punishments  

# 1 - broadcast warning to gms only  

# 2 - kick player (default)  

# 3 - kick & ban player (Accesslevel -100)  

UnknownPacketsPunishment = 2

[/code]

[Oxi anagkastiko] Ama ! to Login dn mpaini    _ panw  sta config tou server.pro 8a balete oti exw bali ta kokkina

 

molis to taktopioisoume to apo8ukeuoume oti exoume alla3h ekei mesa

 

pame meta sto C:/server/loginserver/config  kai anoigoume to arxeio Login Server.properties

kai mas bgazi ta eksis

 

# This is the server configuration file. Here you can set up the connection for your server.

# Usually you have to change the ExternalHostname option to

# - 127.0.0.1 (if you want to play alone / testing purpose)

# - LAN IP* (if you want to play from another computer in the network)

# - WAN IP** (if you want to play with friends over internet)

# - Questions? => http://l2equal.lt/forum

#

# * = If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig"

# **= If you want to get you WAN IP, visit http://www.manoip.lt

# ===================================================================================================

 

# ================================================================

# General server setting !!! REQUIRED to configure to everyone !!!

# ================================================================

 

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname

ExternalHostname =[color=yellow]Your No-ip[/color]

 

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname

InternalHostname = [color=yellow]Your No IP[/color]

 

# Bind ip of the LoginServer, use * to bind on all available IPs

LoginserverHostname = *

LoginserverPort = 2106

# How many times you can provide an invalid account/pass before the IP gets banned

LoginTryBeforeBan = 10

# Time you won't be able to login back again after LoginTryBeforeBan tries to login. Provide a value in seconds. Default 10min. (600)

LoginBlockAfterBan = 600

 

# The address on which login will listen for GameServers, use * to bind on all available IPs

LoginHostname = *

 

# The port on which login will listen for GameServers

LoginPort = 9014

 

# If set to True any GameServer can register on your login's free slots

AcceptNewGameServer = False

 

# If False, the licence (after the login) will not be shown

# It is highly recomended for Account Seciurity to leave this option as defalut (True)

ShowLicence = True

 

# Database info

Driver=com.mysql.jdbc.Driver

#Driver=org.hsqldb.jdbcDriver

#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

URL=jdbc:mysql://localhost/l2jdb

#URL=jdbc:hsqldb:hsql://localhost/l2jdb

#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=

Login = root

Password =

MaximumDbConnections = 10

 

# Useable values: "True" - "False", use this option to choose whether accounts will be created

# automatically or not.

AutoCreateAccounts = True

 

# The delay in minutes after which the login updates the gameservers IP's (usefull when their ip is dynamic)

IpUpdateTime = 15

 

 

# ==============================================================

# Test server setting, shoudnt be touched in online game server

# ==============================================================

 

Debug = False

Assert = False

Developer = False

 

# Enforce GG Authorization from client

# Login server will kick client if client bypassed GameGuard authentication

ForceGGAuth = False

 

#FloodProtection. time in ms

EnableFloodProtection = True

FastConnectionLimit = 15

NormalConnectionTime = 700

FastConnectionTime = 350

MaxConnectionPerIP = 50

to kanoume save kai ok twra pame na ftiaksoume to System

 

 

ΠΡΟΣΟΧΗ: o hoster tou pc mpainh me tin IP 127.0.0.1

 

i Players mpainoun me Tin No-ip.

 

 

katebazoume to File Edit  apo Εδω!

[/b][/i]

 

molis katebasoume to anoigoume kai pame se ena  l2.ini

 

kai 8a mas bgali ta eksis

 

[url]

Protocol=unreal

ProtocolDescription=Unreal Protocol

Name=Player

Map=Index.unr

LocalMap=Entry.unr

Host=

Portal=

MapExt=unr

EXEName=l2.exe

SaveExt=usa

Port=7777

Class=LineageWarrior.MFighter

[color=red]ServerAddr=EAN eisai apo to pc tou Server [127.0.0.1] ean einai gia players [ur No-ip][/color]

IsL2NetLogin=True

IsL2Console=True

IsL2Seamless=True

IsL2Projector=True

ISL2Mark=2

ForceAspectRatio=False

AspectRatio=1.334

IsDefaultShaodw=False

IsUnderWaterEffect=False

IsUseCommand=True

L2VersionCheck=false

IsL2MemLog=False

L2ThreadFilter=1

L2TestServer=false

EnablePurgeLevel=True

SharedSky=True

L2MaxPawnResourceLoad=1.0

L2UseKeyCrypt=true

L2UseReplayManager=true

L2SaveLog=true

EnableSecondWindow=true

IsUseXMLUI=True

L2ShaderPath=..\system\

 

[L2WaterEffect]

ColorReference=(A=180,R=38,G=56,B=64,RR=150)

EffectResolution=512

 

[LanguageSet]

Language=0

 

[FontSet]

;Font=L2Font.Japan

;Glyph=Japan.gly

Font=L2Font.gulim

Glyph=gulim.gly

 

[CharacterDisplay]

Name=true

Dist=1000

 

[ClippingRange]

PawnMax=3.0

PawnMin=1.5

AntiPortal=1.5

Terrain=8.0

StaticMesh=4.0

Projector=0.2

StaticMeshLod=5.0

Pawn=2.0

Actor=4.0

 

[AutoLogOn]

IsL2AutoLogOn=Ture

L2ID=zodiac

L2Passwd=zodiac

L2Slot=7

 

[FirstRun]

FirstRun=2110

 

[Engine.Engine]

RenderDevice=D3DDrv.D3DRenderDevice

;RenderDevice=Engine.NullRenderDevice

;RenderDevice=OpenGLDrv.OpenGLRenderDevice

AudioDevice=ALAudio.ALAudioSubsystem

;AudioDevice=XboxAudio.XboxAudioSubsystem

NetworkDevice=IpDrv.TcpNetDriver

DemoRecordingDevice=Engine.DemoRecDriver

Console=Engine.Console

DefaultPlayerMenu=UDebugMenu.UDebugRootWindow

Language=int

GameEngine=Engine.GameEngine

EditorEngine=Editor.EditorEngine

GUIController=Engine.BaseGUIController

;DefaultGame=WarfareGame.WarfareTeamGame

;DefaultServerGame=WarfareGame.WarfareTeamGame

DefaultGame=Engine.GameInfo

DefaultServerGame=Engine.GameInfo

ViewportManager=WinDrv.WindowsClient

;ViewportManager=XboxDrv.XboxClient

;ViewportManager=SDLDrv.SDLClient

Render=Render.Render

Input=Engine.Input

Canvas=Engine.Canvas

DefaultPlayerController=Engine.LineagePlayerController

L2NetHandler=Engine.NetHandler

L2Console=NWindow.ConsoleWnd

L2Font=NWindow.L2Font

 

[Core.System]

PurgeCacheDays=30

SavePath=../Save

CachePath=../Cache

CacheExt=.uxx

Paths=../System/*.u

Paths=../StaticMeshes/*.usx

Paths=../Textures/*.utx

Paths=../Sounds/*.uax

Paths=../Voice/*.uax

Paths=../Maps/*.unr

;Paths=../Music/*.umx

Paths=../Animations/*.ukx

Paths=../Animations/*.uix

Paths=../SysTextures/*.utx

Paths=../Animations/*.usk

Paths=../Saves/*.uvx

Suppress=DevLoad

Suppress=DevSave

Suppress=DevNetTraffic

Suppress=DevGarbage

Suppress=DevKill

Suppress=DevReplace

Suppress=DevCompile

Suppress=DevBind

Suppress=DevBsp

 

[Engine.GameEngine]

CacheSizeMegs=32

UseSound=True

;ServerActors=IpDrv.UdpBeacon

;ServerActors=IpServer.UdpServerQuery

;ServerActors=IpServer.UdpServerUplink MasterServerAddress=unreal.epicgames.com MasterServerPort=27900

;ServerActors=UWeb.WebServer

ServerPackages=AmbientCreatures

;ServerPackages=WarEffects

;ServerPackages=Decorations

ServerPackages=GamePlay

ServerPackages=UnrealGame

;ServerPackages=WarfareGame

;ServerPackages=WarClassLight

;ServerPackages=WarClassHeavy

;ServerPackages=WarClassMisc

;ServerPackages=Pickups

 

[WinDrv.WindowsClient]

WindowedViewportX=640

WindowedViewportY=480

FullscreenViewportX=1024

FullscreenViewportY=768

MenuViewportX=640

MenuViewportY=480

Brightness=0.800000

Contrast=0.700000

Gamma=0.800000

UseJoystick=True

CaptureMouse=True

StartupFullscreen=True

UseWindowFrame=True

ScreenFlashes=True

NoLighting=False

MinDesiredFrameRate=35.000000

Decals=True

Coronas=True

DecoLayers=True

Projectors=True

NoDynamicLights=False

ReportDynamicUploads=False

TextureDetailInterface=Higher

TextureDetailTerrain=Higher

TextureDetailWeaponSkin=Higher

TextureDetailPlayerSkin=Higher

TextureDetailWorld=Higher

TextureDetailRenderMap=Higher

TextureDetailLightmap=Higher

NoFractalAnim=False

ScaleHUDX=0.0

 

[sDLDrv.SDLClient]

WindowedViewportX=640

WindowedViewportY=480

FullscreenViewportX=800

FullscreenViewportY=600

MenuViewportX=640

MenuViewportY=480

Brightness=0.800000

Contrast=0.700000

Gamma=0.800000

UseJoystick=True

JoystickNumber=0

IgnoreHat=False

JoystickHatNumber=0

CaptureMouse=True

StartupFullscreen=True

ScreenFlashes=True

NoLighting=False

MinDesiredFrameRate=35.000000

Decals=True

Coronas=True

DecoLayers=True

Projectors=True

NoDynamicLights=False

ReportDynamicUploads=False

TextureDetailInterface=Normal

TextureDetailTerrain=Normal

TextureDetailWeaponSkin=Normal

TextureDetailPlayerSkin=Normal

TextureDetailWorld=Normal

TextureDetailRenderMap=Normal

TextureDetailLightmap=UltraHigh

NoFractalAnim=False

 

[Engine.Player]

ConfiguredInternetSpeed=10000

ConfiguredLanSpeed=20000

 

[ALAudio.ALAudioSubsystem]

UseEAX=False

Use3DSound=False

UseDefaultDriver=False

CompatibilityMode=False

UsePrecache=True

ReverseStereo=false

Channels=32

MusicVolume=0.1

AmbientVolume=1.0

SoundVolume=1.0

DopplerFactor=1.0

Rolloff=0.5

TimeBetweenHWUpdates=15

DisablePitch=False

LowQualitySound=False

 

[ipDrv.TcpNetDriver]

AllowDownloads=True

ConnectionTimeout=15.0

InitialConnectTimeout=500.0

AckTimeout=1.0

KeepAliveTime=0.2

MaxClientRate=20000

SimLatency=0

RelevantTimeout=5.0

SpawnPrioritySeconds=1.0

ServerTravelPause=4.0

NetServerMaxTickRate=20

LanServerMaxTickRate=35

DownloadManagers=IpDrv.HTTPDownload

DownloadManagers=Engine.ChannelDownload

 

[ipDrv.HTTPDownload]

RedirectToURL=

ProxyServerHost=

ProxyServerPort=3128

UseCompression=True

 

[Engine.DemoRecDriver]

DemoSpectatorClass=Warriors.CHSpectator

MaxClientRate=25000

ConnectionTimeout=15.0

InitialConnectTimeout=500.0

AckTimeout=1.0

KeepAliveTime=1.0

SimLatency=0

RelevantTimeout=5.0

SpawnPrioritySeconds=1.0

ServerTravelPause=4.0

NetServerMaxTickRate=60

LanServerMaxTickRate=60

 

[Engine.GameReplicationInfo]

ServerName=Another Unreal Server

ShortName=Unreal Server

 

[ipDrv.TcpipConnection]

SimPacketLoss=0

SimLatency=0

 

[ipServer.UdpServerQuery]

GameName=ut

 

[ipDrv.UdpBeacon]

DoBeacon=True

BeaconTime=0.50

BeaconTimeout=5.0

BeaconProduct=ut

 

[XboxDrv.XboxClient]

TextureDetail=Medium

SkinDetail=Medium

LightmapDetail=High

TextureMinLOD=6

TextureMaxLOD=9

Brightness=0.8

Contrast=0.7

Gamma=0.8

NoFractalAnim=True

 

[XBoxAudio.XBoxAudioSubsystem]

ReverseStereo=False

Channels=32

MusicVolume=1.0

SoundVolume=1.0

AmbientFactor=1.0

UsePrecache=True

 

[D3DDrv.D3DRenderDevice]

DetailTextures=True

HighDetailActors=True

SuperHighDetailActors=True

UsePrecaching=True

UseTrilinear=True

AdapterNumber=-1

ReduceMouseLag=True

UseTripleBuffering=False

UseHardwareTL=True

UseHardwareVS=True

UseCubemaps=True

DesiredRefreshRate=60

UseCompressedLightmaps=True

UseStencil=True

Use16bit=False

Use16bitTextures=False

MaxPixelShaderVersion=255

UseVSync=False

LevelOfAnisotropy=1

DetailTexMipBias=0.8

DefaultTexMipBias=-0.5

UseNPatches=False

TesselationFactor=1.0

CheckForOverflow=False

 

[OpenGLDrv.OpenGLRenderDevice]

DetailTextures=True

HighDetailActors=True

SuperHighDetailActors=True

UsePrecaching=True

UseCompressedLightmaps=True

UseTrilinear=True

UseStencil=False

MaxTextureUnits=8

VARSize=32

ReduceMouseLag=False

 

[Engine.NullRenderDevice]

DetailTextures=True

HighDetailActors=True

SuperHighDetailActors=True

UsePrecaching=True

UseCompressedLightmaps=True

UseStencil=False

 

[Editor.EditorEngine]

UseSound=True

CacheSizeMegs=32

GridEnabled=True

SnapVertices=False

SnapDistance=10.000000

GridSize=(X=16.000000,Y=16.000000,Z=16.000000)

RotGridEnabled=True

RotGridSize=(Pitch=1024,Yaw=1024,Roll=1024)

GameCommandLine=-log

FovAngleDegrees=90.000000

GodMode=True

AutoSave=True

AutoSaveTimeMinutes=5

AutoSaveIndex=6

UseAxisIndicator=True

MatineeCurveDetail=0.1

LoadEntirePackageWhenSaving=0

EditPackages=Core

EditPackages=Engine

EditPackages=Fire

EditPackages=Editor

EditPackages=UWindow

EditPackages=UnrealEd

EditPackages=IpDrv

EditPackages=GamePlay

EditPackages=LineageEffect

EditPackages=LineageWarrior

EditPackages=LineageNpc

EditPackages=LineageNpc2

EditPackages=LineageNpcEv

EditPackages=LineageMonster

EditPackages=LineageMonster2

EditPackages=LineageMonster3

EditPackages=LineageMonster4

EditPackages=LineageVehicle

EditPackages=LineageDeco

EditPackages=LineageCreature

EditPackages=LineageSceneInfo

EditPackages=UDebugMenu

EditPackages=NWindow

EditPackages=LineageSkillEffect

;EditPackages=WarEffects

;EditPackages=Decorations

;EditPackages=WarfareGame

;EditPackages=IHVDemoContent

;EditPackages=Pickups

;EditPackages=WarClassLight

;EditPackages=WarClassHeavy

;EditPackages=WarClassMisc

;EditPackages=AmbientCreatures

;EditPackages=Vehicles

;EditPackages=UPreview

 

[uMenu.UnrealConsole]

RootWindow=UMenu.UMenuRootWindow

UWindowKey=IK_Esc

ShowDesktop=True

 

[uMenu.UMenuMenuBar]

ShowHelp=True

GameUMenuDefault=UTMenu.UTGameMenu

MultiplayerUMenuDefault=UTMenu.UTMultiplayerMenu

OptionsUMenuDefault=UTMenu.UTOptionsMenu

 

[Engine.GameInfo]

bLowGore=False

bVeryLowGore=False

 

[uWeb.WebServer]

;Applications[0]=UTServerAdmin.UTServerAdmin

;ApplicationPaths[0]=/ServerAdmin

;Applications[1]=UTServerAdmin.UTImageServer

;ApplicationPaths[1]=/images

DefaultApplication=0

bEnabled=False

 

[Engine.LevelInfo]

PhysicsDetailLevel=PDL_Medium

 

[Engine.Console]

ConsoleKey=9

 

[WindowPositions]

GameLog=(X=0,Y=0,XL=512,YL=256)

 

[secure]

SecureModule=False

 

[PrimeShop]

UsePrimeShop=false

 

 

 

Guide Credits: To Me

 

epd evlepa polla paidia help panw se auto to 8ema  ;D

Link to comment
Share on other sites

re file uparxoun 10000 idia topic me to idio 8ema alla pio kala alla pio kaka pios o skopos tous gia 1000 idia topic alla tcp

metraei i prospa8eia s

Link to comment
Share on other sites

  • 1 month later...

re pedes exw ena probl prospathw apires ores gia n kanw ton serve global kai dn mporw akoloulo vima vima to guide alla tpt exw kanei knonika to no-ip

alla dn kserw ti ginete paw sto  Server.Properties  exw dokimasei kai exw valei sto externalhost to no-ip (stin prokimeni periptosi ine l2organization.no-ip.biz) kai sto internalhost to idio opos leei to guide episeis exw dokimsei n valw kai ta noumera alla kai pali tipota. episis kai me file edit exw ftiaksei to to server addr opos lees sto guide alla kai pali tipota,ta ports m ine ola anikta kanonika.

exw dokimasei kai exw stilei se pedia kai systems kai hosts alla tipota dn mpenoune me tipota dieukrinise m to guide ine gia host i gia system??? episis otan eftiaksa no-ip sto keno pano-pano evala onoma(l2organization.no-ip.biz) auto prepei n vazw sto external kai internal host??? i to noumero tis ip p m elege ligo poio kato ?? poio palia ixa sikosei mia fora global server kai dn thimame n ixa valei st external kai sto interlan gramata alla arithous .

 

an mporeis voithise me re bro stile pm i apantise m edw :):)

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • I use l2fandc files. I need a java code, I've been searching a lot and waiting for help. What I want to do is to teleport to the players doing pvp. So it's like finding the flag player. I found some files but they did not fit my system. I'm waiting for help..   EXAMPLE:     package handlers.bypasshandlers; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import com.l2jmobius.Config; import com.l2jmobius.commons.util.Rnd; import com.l2jmobius.gameserver.enums.ChatType; import com.l2jmobius.gameserver.handler.IBypassHandler; import com.l2jmobius.gameserver.model.L2World; import com.l2jmobius.gameserver.model.actor.L2Character; import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; import com.l2jmobius.gameserver.model.zone.ZoneId; import com.l2jmobius.gameserver.network.serverpackets.CreatureSay; /**  * @author Mobius (based on Tenkai pvpzone)  */ public class FindPvP implements IBypassHandler {     private static final String[] COMMANDS =     {         "FindPvP"     };          @Override     public boolean useBypass(String command, L2PcInstance activeChar, L2Character target)     {         if (!Config.ENABLE_FIND_PVP || !target.isNpc())         {             return false;         }                  L2PcInstance mostPvP = null;         int max = -1;         for (L2PcInstance player : L2World.getInstance().getPlayers())         {             if ((player == null) //                 || (player.getPvpFlag() == 0) //                 || (player.getInstanceId() != 0) //                 || player.isGM() //                 || player.isInsideZone(ZoneId.PEACE) //                 || player.isInsideZone(ZoneId.SIEGE) //                 || player.isInsideZone(ZoneId.NO_SUMMON_FRIEND))             {                 continue;             }                          int count = 0;             for (L2PcInstance pl : L2World.getInstance().getVisibleObjects(player, L2PcInstance.class))             {                 if ((pl.getPvpFlag() > 0) && !pl.isInsideZone(ZoneId.PEACE))                 {                     count++;                 }             }                          if (count > max)             {                 max = count;                 mostPvP = player;             }         }                  if (mostPvP != null)         {             // Check if the player's clan is already outnumbering the PvP             if (activeChar.getClan() != null)             {                 Map<Integer, Integer> clanNumbers = new HashMap<>();                 int allyId = activeChar.getAllyId();                 if (allyId == 0)                 {                     allyId = activeChar.getClanId();                 }                 clanNumbers.put(allyId, 1);                 for (L2PcInstance known : L2World.getInstance().getVisibleObjects(mostPvP, L2PcInstance.class))                 {                     int knownAllyId = known.getAllyId();                     if (knownAllyId == 0)                     {                         knownAllyId = known.getClanId();                     }                     if (knownAllyId != 0)                     {                         if (clanNumbers.containsKey(knownAllyId))                         {                             clanNumbers.put(knownAllyId, clanNumbers.get(knownAllyId) + 1);                         }                         else                         {                             clanNumbers.put(knownAllyId, 1);                         }                     }                 }                                  int biggestAllyId = 0;                 int biggestAmount = 2;                 for (Entry<Integer, Integer> clanNumber : clanNumbers.entrySet())                 {                     if (clanNumber.getValue() > biggestAmount)                     {                         biggestAllyId = clanNumber.getKey();                         biggestAmount = clanNumber.getValue();                     }                 }                                  if (biggestAllyId == allyId)                 {                     activeChar.sendPacket(new CreatureSay(0, ChatType.WHISPER, target.getName(), "Sorry, your clan/ally is outnumbering the place already so you can't move there."));                     return true;                 }             }                          activeChar.teleToLocation((mostPvP.getX() + Rnd.get(300)) - 150, (mostPvP.getY() + Rnd.get(300)) - 150, mostPvP.getZ());             activeChar.setSpawnProtection(true);             if (!activeChar.isGM())             {                 activeChar.setPvpFlagLasts(System.currentTimeMillis() + Config.PVP_PVP_TIME);                 activeChar.startPvPFlag();             }         }         else         {             activeChar.sendPacket(new CreatureSay(0, ChatType.WHISPER, target.getName(), "Sorry, I can't find anyone in flag status right now."));         }         return false;     }          @Override     public String[] getBypassList()     {         return COMMANDS;     } }
    • How are you, fucking Nazi? Haven't you been sent to the front line yet, as cannon fodder? or are you Nazi scum still hiding in the basements? you whores destroyed the inhabitants of Donbass for 8 years, and now you are a fagot hiding behind the backs of women. Nazis in Ukraine will be physically destroyed! every! we will get each of you! if not immediately, then years later you will be punished for your crimes!
  • Topics

×
×
  • Create New...