Jump to content

klara

Members
  • Posts

    19
  • Joined

  • Last visited

  • Feedback

    0%

About klara

Profile Information

  • Gender
    Not Telling

klara's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. are my configs right? gameserver # Enter here (ip) address of your game server, or use the symbol * GameserverHostname = * GameserverPort = 7777 # Configure your external ip ExternalHostname = l2lakougia.no-ip.info # Configure your internal ip InternalHostname = 127.0.0.1 # Bunch ID and game server. It is better not to change. LoginPort = 9014 LoginHost = 127.0.0.1 # Database Pool Type # Possible Values: c3p0 or BoneCP # c3p0: more stable # BoneCP: more performance DatabasePoolType=c3p0 # Parameters Databases - MYSQL Driver = com.mysql.jdbc.Driver URL = jdbc:mysql://localhost/l2jdb # Database name GameserverDB = LoginserverDB = # Login - Mysql's user Login = root # Password - Mysql's Password Password = 12345 # Attention: lazy init connections disabled! # Please, set only real values for your database # Default: 100 MaximumDbConnections = 50 # Default: 0 MaximumDbIdleTime = 1 # The timeout before a new connection to the database (in ms) # 0 - to remove restrictions TimeOutConDb = 0 # The timeout before the single connection must be closed (in ms) # if a connection life is more then this timeout, a Runtime Exception # is rised up. Post the exception on forum ([url=http://www.l2jfrozen.com]www.l2jfrozen.com[/url]) to solve # it. SingleConnectionTimeOutDb=200000 # Sets number of partitions to use.- BoneCP # In order to reduce lock contention and thus improve performance, # each incoming connection request picks off a connection from a pool that has thread-affinity, # i.e. pool[threadId % partition_count]. The higher this number, the better your performance will be for the case # when you have plenty of short-lived threads. Beyond a certain threshold, maintenance of these pools will start # to have a negative effect on performance (and only for the case when connections on a partition start running out). PartitionCount = 3 # Setting emulation off the kernel (package SendStatus) RemoteWhoLog = True RemoteWhoSendTrash = True RemoteWhoMaxOnline = 329 RemoteOnlineIncrement = 50 RemoteWhoForceInc = 50 RemotePrivStoreFactor = 12 # Datapack folder # DatapackRoot = C:/Work/tmp/DataPack loginserver #============================================================# # Frozen Dev.Team # #============================================================# # 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://l2jfrozen.com # # * = 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.whatismyip.com # =================================================================================================== # ================================================================ # 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 = l2lakougia.no-ip.info # This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname InternalHostname = 127.0.0.1 # 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 = 20 # 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 GMMinLevel = 100 # 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 = True # 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 Pool Type # Possible Values: c3p0 or BoneCP # c3p0: more stable # BoneCP: more performance DatabasePoolType=c3p0 # Database info Driver=com.mysql.jdbc.Driver #Driver=org.hsqldb.jdbcDriver #Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver # Database Settings URL=jdbc:mysql://localhost/l2jdb #URL=jdbc:hsqldb:hsql://localhost/l2jdb #URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password= # Parameters Databases - MYSQL # Login - Mysql's user Login = root # Password - Mysql's Password Password = 12345 # maximum number of simultaneous connecting to the database MaximumDbConnections = 50 # Default: 0 MaximumDbIdleTime = 0 # The timeout before a new connection to the database (in ms) # default 0 disabled TimeOutConDb = 0 # Sets number of partitions to use. - BoneCP # In order to reduce lock contention and thus improve performance, # each incoming connection request picks off a connection from a pool that has thread-affinity, # i.e. pool[threadId % partition_count]. The higher this number, the better your performance will be for the case # when you have plenty of short-lived threads. Beyond a certain threshold, maintenance of these pools will start # to have a negative effect on performance (and only for the case when connections on a partition start running out). PartitionCount = 3 # Limit fast connections (input username / password) FastConnectionLimit = 15 # Time of the normal connection (in ms) NormalConnectionTime = 700 # Time fast connection (in ms) FastConnectionTime = 350 # Maximum connections with the 1st IP MaxConnectionPerIP = 50 # The lifetime of the session with the login server. SessionTTL = 25000 MaxSessions = 100 # Choose the option: "true", to create an account when logging in automatically AutoCreateAccounts = True # Time to renew the IP address of the server in minutes (for dynamic IP) IpUpdateTime = 0 # The configuration of the local subnet # Example : 192.168 # Ppimer : 10.1 NetworkList = 192.168.;10.0. # =============================================================== # Test server configuration, not to switch on the game server! = # =============================================================== # Use the GG client authentication # Login server access let the client without GameGuard ForceGGAuth = False # Including protection from flood # IMPORTANT: Put True for server security. EnableFloodProtection = True # Enable mode "debugging" # With debug you will see more log on console and more messages in game. Debug = False # Switched on "development" Developer = False # ============================================================= # Anti Ddos protection. # This system works with iptables # ============================================================= # iptables -A INPUT -p tcp --dport 7777 -j DROP # IMPORTANT: Put True for server security. # IMPORTANT: Active only with LINUX OS. EnableDdosProSystem = False # String deny_comms # IMPORTANT: If you don't know what is it, leave as default Deny_noallow_ip_ddos = /sbin/iptables -I INPUT 13 -p tcp --dport 7777 -s $IP -j ACCEPT # Active full log on Login Server console about Ddos protection Fulllog_mode_print = false # ============================================================= # Anti Bruteforce protection. (credits RT-Interlude) # ============================================================= #Count of trying connection to server, after which will be made checking IP addres #for a possible BrutForce #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutLogonAttempts = 15 #The average time (in seconds) between attempts to connect to the server #Reducing this value will increase the likelihood of false positives #Increasing this value will reduce the effectiveness of security (more chance find passwords for large accounts) BrutAvgTime = 30 #Number of second, for ban IP addres, who time BrutAvgTime less specified #900 second = 15 minute BrutBanIpTime = 900 #------------------------------------------- # Additional login server logs settings - #------------------------------------------- Debug = False Assert = False Developer = False EnableAllExceptionsLog = false DebugPackets = false
  2. did you check this out bro?
  3. he may didnt notice..but my problem is that i need an solution for this error.. ;/
  4. my frind got this error i can login properly.but the others cant..!
  5. [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 ServerAddr=i have placed my no-ip here! 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 EnableSecondWindow=true IsUseXMLUI=True [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=../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=False 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=LineageVehicle EditPackages=LineageDeco EditPackages=LineageCreature EditPackages=UDebugMenu EditPackages=NWindow ;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) i have alrady try to update my no-ip. you know click to "wear glasses" and click to become happy (shy)
  6. first time i see this error in my life! i have right configs (i hope) no-ip acc and duc installed on my pc. i edit the ini and gave it to my frinds but alla of them have this error.
  7. solved lock it please
  8. hmmm let me see....YES IT IS!i will type aio buff player will have full rec name and [AIO] in front of his name and i will find at least 5000kkk pages related to this..dont think so.... ;D
  9. loolol the code is alrady applied!!! L2PcInstance player = L2World.getInstance().getPlayer(char_name); if(player.isAio() && !player.getName().contains("[AIO]")) player.setName("[AIO]" + player.getName()); if(player != null){ but why id doesnt work??? this is the config # ----------------------------------------- # Aio System - # ----------------------------------------- # Enable / Disable Aion System EnableAioSystem = True # Enable / Disable Name Color AllowAioNameColor = True AioNameColor = FFFF00 # Enable / Disable Title Color AllowAioTitleColor = True AioTitleColor = 88AA88 # List of Aio Skills # Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln AioSkills = 1085,3;1304,3;1087,3;1354,1;1062,2;1005,3;1243,6;1045,6;1048,6;\ 1311,6;168,3;213,8;1007,3;1309,3;1552,3;1006,3;1229,15;1308,3;1253,3;1284,3;\ 1009,3;1310,4;1363,1;1362,1;1397,3;1292,6;1078,6;307,1;276,1;309,1;274,1;275,1;\ 272,1;277,1;273,1;311,1;366,1;365,1;310,1;271,1;1242,3;1257,3;1353,3;1391,3;\ 1352,1;229,7;228,3;1077,3;1218,33;1059,3;1219,33;1217,33;1388,3;1389,3;1240,3;\ 1086,2;1032,3;1073,2;1036,2;1035,4;1068,3;1003,3;1282,2;1356,1;1355,1;1357,33;\ 1044,3;1182,3;1191,3;1033,3;1189,3;1259,4;1306,6;234,23;1040,3;364,1;264,1;306,1;\ 269,1;270,1;265,1;363,1;349,1;308,1;305,1;304,1;267,1;266,1;268,1;1390,3;1303,2;\ 1204,2;1268,4;1413,1;4699,8;4700,8;4703,8 # Aio Buffers can use GK? AllowAioUseGk = false # Aio Buffers can speak to Class Master? AllowAioUseClassMaster = false
  10. where exactly i have to place it? :/ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.admincommandhandlers; import java.sql.Connection; import java.sql.PreparedStatement; import java.util.StringTokenizer; import java.util.logging.Level; import java.util.logging.Logger; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.datatables.GmListTable; import com.l2jfrozen.gameserver.handler.IAdminCommandHandler; import com.l2jfrozen.gameserver.model.L2World; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate; import com.l2jfrozen.util.CloseUtil; import com.l2jfrozen.util.database.L2DatabaseFactory; /** * Give / Take Status Aio to Player * Changes name color and title color if enabled * * Uses: * setaio [<player_name>] [<time_duration in days>] * removeaio [<player_name>] * * If <player_name> is not specified, the current target player is used. * * * @author KhayrusS * */ public class AdminAio implements IAdminCommandHandler { private final static Logger _log = Logger.getLogger(AdminAio.class.getName()); private static String[] _adminCommands = { "admin_setaio", "admin_removeaio" }; private enum CommandEnum { admin_setaio, admin_removeaio } @Override public boolean useAdminCommand(String command, L2PcInstance activeChar) { /* if(!AdminCommandAccessRights.getInstance().hasAccess(command, activeChar.getAccessLevel())){ return false; } if(Config.GMAUDIT) { Logger _logAudit = Logger.getLogger("gmaudit"); LogRecord record = new LogRecord(Level.INFO, command); record.setParameters(new Object[] { "GM: " + activeChar.getName(), " to target [" + activeChar.getTarget() + "] " }); _logAudit.log(record); } */ StringTokenizer st = new StringTokenizer(command); CommandEnum comm = CommandEnum.valueOf(st.nextToken()); if(comm == null) return false; switch(comm){ case admin_setaio:{ boolean no_token = false; if(st.hasMoreTokens()){ //char_name not specified String char_name = st.nextToken(); L2PcInstance player = L2World.getInstance().getPlayer(char_name); [color=red]if(player.isAio() && !player.getName().contains("[AIO]")) player.setName("[AIO]" + player.getName());[/color] if(player != null){ if (st.hasMoreTokens()) //time { String time = st.nextToken(); try{ int value = Integer.parseInt(time); if(value>0){ doAio(activeChar, player, char_name, time); if(player.isAio()) return true; }else{ activeChar.sendMessage("Time must be bigger then 0!"); return false; } }catch(NumberFormatException e){ activeChar.sendMessage("Time must be a number!"); return false; } }else{ no_token = true; } }else{ activeChar.sendMessage("Player must be online to set AIO status"); no_token = true; } }else{ no_token=true; } if(no_token){ activeChar.sendMessage("Usage: //setaio <char_name> [time](in days)"); return false; } } case admin_removeaio:{ boolean no_token = false; if(st.hasMoreTokens()){ //char_name String char_name = st.nextToken(); L2PcInstance player = L2World.getInstance().getPlayer(char_name); [color=red]if(player.isAio() && !player.getName().contains("[AIO]")) player.setName("[AIO]" + player.getName());[/color] if(player!=null){ removeAio(activeChar, player, char_name); if(!player.isAio()) return true; }else{ activeChar.sendMessage("Player must be online to remove AIO status"); no_token = true; } }else{ no_token = true; } if(no_token){ activeChar.sendMessage("Usage: //removeaio <char_name>"); return false; } } } return true; } public void doAio(L2PcInstance activeChar, L2PcInstance _player, String _playername, String _time) { int days = Integer.parseInt(_time); if (_player == null) { activeChar.sendMessage("not found char" + _playername); return; } if(days > 0) { _player.setAio(true); _player.setEndTime("aio", days); _player.getStat().addExp(_player.getStat().getExpForLevel(81)); Connection connection = null; try { connection = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = connection.prepareStatement("UPDATE characters SET aio=1, aio_end=? WHERE obj_id=?"); statement.setLong(1, _player.getAioEndTime()); statement.setInt(2, _player.getObjectId()); statement.execute(); statement.close(); connection.close(); if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio()) _player.getAppearance().setNameColor(Config.AIO_NCOLOR); if(Config.ALLOW_AIO_TCOLOR && activeChar.isAio()) _player.getAppearance().setTitleColor(Config.AIO_TCOLOR); _player.rewardAioSkills(); _player.broadcastUserInfo(); _player.sendPacket(new EtcStatusUpdate(_player)); _player.sendSkillList(); GmListTable.broadcastMessageToGMs("GM "+ activeChar.getName()+ " set Aio stat for player "+ _playername + " for " + _time + " day(s)"); _player.sendMessage("You are now an Aio, Congratulations!"); _player.broadcastUserInfo(); } catch (Exception e) { if(Config.DEBUG) e.printStackTrace(); _log.log(Level.WARNING,"could not set Aio stats to char:", e); } finally { CloseUtil.close(connection); } } else { removeAio(activeChar, _player, _playername); } } public void removeAio(L2PcInstance activeChar, L2PcInstance _player, String _playername) { _player.setAio(false); _player.setAioEndTime(0); Connection connection = null; try { connection = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = connection.prepareStatement("UPDATE characters SET Aio=0, Aio_end=0 WHERE obj_id=?"); statement.setInt(1, _player.getObjectId()); statement.execute(); statement.close(); connection.close(); _player.lostAioSkills(); _player.getAppearance().setNameColor(0xFFFFFF); _player.getAppearance().setTitleColor(0xFFFFFF); _player.broadcastUserInfo(); _player.sendPacket(new EtcStatusUpdate(_player)); _player.sendSkillList(); GmListTable.broadcastMessageToGMs("GM "+activeChar.getName()+" remove Aio stat of player "+ _playername); _player.sendMessage("Now You are not an Aio.."); _player.broadcastUserInfo(); } catch (Exception e) { if(Config.DEBUG) e.printStackTrace(); _log.log(Level.WARNING,"could not remove Aio stats of char:", e); } finally { CloseUtil.close(connection); } } @Override public String[] getAdminCommandList() { return _adminCommands; } } EDIT:i test it..i have no errors eclipse,console but it dont work ingame. read the code above to see where i place it
  11. hey..i want 3 lines code.if sb is aio set [aio] near his name and get full rec for ex klara ~~~> [AIO]kalara if(!player.isAio()) {.changeName("[AIO]", targ);] but this is not right.
  12. nvm just lock it!
  13. hi.i want ta make a code,in wich if sb enter jail his karma will dissapear. i created this.. if(player.isInJail()) { setKarma = 0; } i know its wrong.. ;p but could sb make the code and tell me where exactly i have to place it?
  14. hmmmmm let me see..i said : but i want (if sb could) to add configs for me. but i want (if sb could) to add configs for me. but i want (if sb could) to add configs for me. but i want (if sb could) to add configs for me. also you think that i should pay for a code that include only CONFIGS????? im not good and im trying to learn..i know how to apply a code (that its no hard at all) but my lvl dont allow me to creat a code even if it is configs..but there are so much members that are will to make it..since there are so many codes (shared). obviously your a greedy person so you dont belong to them.. its hi5.i want it for interlude.sorry about that i will modify first post bassicly its a npc that when it see pk he send them to jail.. so i want configs to adjust the time they spendin jail.. forget about enable and disable :P
  15. Hi there.im here to ask some things that may be a little hard to make them. :P i want an AIO item that works on l2jfrozen interludepack.(gm shop,buffer,teleport etc...) i dont want to spam so i will request smthing more on the same topic. i have this code(is a pk killer who sends you to jail if you pk some1): ### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NoobSlayerInstance.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NoobSlayerInstance.java (revision 0) +++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2NoobSlayerInstance.java (revision 0) @@ -0,0 +1,104 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + * + * http://www.gnu.org/copyleft/gpl.html + */ +package com.l2jfrozen.gameserver.model.actor.instance; + +import java.util.concurrent.ScheduledFuture; + + +import com.l2jfrozen.gameserver.model.L2Character; +import com.l2jfrozen.gameserver.templates.L2NpcTemplate; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; +/** + * + * + * @author Token + */ +public class L2NoobSlayerInstance extends L2NpcInstance +{ + + private ScheduledFuture<?> _aiTask; + + private class ProtectorAI implements Runnable + { + + + @Override + public void run() + { + for(L2PcInstance player : getKnownList().getKnownPlayers().values()) + + { + if(player.getKarma() > 0) + { + & nbsp; sendToJail(player); + } + ; } + <br> } + + private void sendToJail(L2PcInstance player) + { + if(player.isGM() || player.isDead() || !player.isVisible() || !isInsideRadius(player, 5000, false, false)) + return; + + &nb sp;if (player != null) + { + player.setPunish Level(L2PcInstance.PunishLevel.JAIL, 5); + player.sendMessage("You are jailed for 5 minutes."); + + ; if (player.getParty() != null) + player.getParty().removePartyMember(player); + ; } + + } + } + + public L2NoobSlayerInstance(int objectId, L2NpcTemplate template) + { + super(objectId, template); + + if(_aiTask != null) + { + _aiTask.cancel(true); + &n bsp; } + + _aiTask = ThreadPoolManager.getInstance().scheduleAiAtFixedRate(new ProtectorAI(), 3000, 3000); + } + + @Override + public void deleteMe() + { + if(_aiTask != null) + { + _aiTask.cancel(true); + &n bsp; _aiTask = null; + } + + super.deleteMe(); + } + + @Overr ide + public boolean isAutoAttackable(L2Character attacker) + { + return false; + } + + + + +} but i want (if sb could) to add configs for me. where you can adjust the time that pker spend to jail and to enable-disable this mode. I know that i ask too much,but i would appriciate if someone make it for me,or shere it too! :D p.s sorry for my english i know tha i suck (hard) but i suppose you understood what im trying to say.if you dont tell me bellow what exactly you didnt understand :D thx in advance. ;D
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..