!!

Register new account or login on the forum!

To have a full access of the forum please create a new account! Click here or login with your account Click here.

collapse

Support us!

Support membergroup

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 242
  • Dot Spiders: 0
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Author Topic: Report a bug or request features  (Read 43171 times)

0 Members and 1 Guest are viewing this topic.

Offline Kuzuv

  • *
  • Posts: 62
  • Karma: +0/-0
  • Gender: Male
Re: Report a bug or request features
« Reply #30 on: February 25, 2017, 12:30:00 AM »
if(isSkillDisabled(skill.getId()) && getOwner() != null && !getOwner().getAccessLevel().allowPeaceAttack())

better is not GM if you are gm he take !getOwner().getAccessLevel().allowPeaceAttack()
however, my fix is correct and work everywhere and perfectly. :D

Offline valentin

  • *
  • Posts: 42
  • Karma: +0/-0
  • Gender: Male
    • https://www.youtube.com/watch?v=MY4YJxn-9Og
Re: Report a bug or request features
« Reply #31 on: February 25, 2017, 04:10:42 AM »
Hello,
I have problem while setting aio for player. Today is 30th month day and if  I set aio for 1 day some how end date is december 31(i think it is because november does not have 31 day). But if I set aio for 2 days its end time is december 1. How I can fix it? l2jfrozen rev 1132.
P.S. when it was november 25 and I set aio for 1 day it worked perfectly.
Adding code:

Code: [Select]
/*
 * L2jFrozen Project - www.l2jfrozen.com
 *
 * 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 org.apache.log4j.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.DatabaseUtils;
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 LOGGER = Logger.getLogger(AdminAio.class);

private static String[] _adminCommands =
{
"admin_setaio",
"admin_removeaio"
};

private enum CommandEnum
{
admin_setaio,
admin_removeaio
}

@Override
public boolean useAdminCommand(final String command, final 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.LOGGER(record); }
*/

final StringTokenizer st = new StringTokenizer(command);

final 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

final String char_name = st.nextToken();

final L2PcInstance player = L2World.getInstance().getPlayer(char_name);

if (player != null)
{

if (st.hasMoreTokens()) // time
{
final String time = st.nextToken();

try
{
final 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 (final 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

final String char_name = st.nextToken();

final L2PcInstance player = L2World.getInstance().getPlayer(char_name);

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(final L2PcInstance activeChar, final L2PcInstance _player, final String _playername, final String _time)
{
final 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);

final 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();
DatabaseUtils.close(statement);
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 (final Exception e)
{
if (Config.DEBUG)
e.printStackTrace();

LOGGER.warn("could not set Aio stats to char:", e);
}
finally
{
CloseUtil.close(connection);
}
}
else
{
removeAio(activeChar, _player, _playername);
}
}

public void removeAio(final L2PcInstance activeChar, final L2PcInstance _player, final String _playername)
{
_player.setAio(false);
_player.setAioEndTime(0);

Connection connection = null;
try
{
connection = L2DatabaseFactory.getInstance().getConnection(false);

final PreparedStatement statement = connection.prepareStatement("UPDATE characters SET Aio=0, Aio_end=0 WHERE obj_id=?");
statement.setInt(1, _player.getObjectId());
statement.execute();
DatabaseUtils.close(statement);
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 (final Exception e)
{
if (Config.DEBUG)
e.printStackTrace();

LOGGER.warn("could not remove Aio stats of char:", e);
}
finally
{
CloseUtil.close(connection);
}
}

@Override
public String[] getAdminCommandList()
{
return _adminCommands;
}
}

EDIT adding aioendtime code:

Code: [Select]
public void setEndTime(final String process, int val)
{
if (val > 0)
{
long end_day;
final Calendar calendar = Calendar.getInstance();
if (val >= 30)
{
while (val >= 30)
{
if (calendar.get(Calendar.MONTH) == 11)
calendar.roll(Calendar.YEAR, true);
calendar.roll(Calendar.MONTH, true);
val -= 30;
}
}
if (val < 30 && val > 0)
{
while (val > 0)
{
if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
calendar.roll(Calendar.MONTH, true);
if (calendar.get(Calendar.DATE) == 30)
{
if (calendar.get(Calendar.MONTH) == 11)
calendar.roll(Calendar.YEAR, true);
calendar.roll(Calendar.MONTH, true);

}
calendar.roll(Calendar.DATE, true);
val--;
}
}

end_day = calendar.getTimeInMillis();
if (process.equals("aio"))
_aio_endTime = end_day;

else
{
LOGGER.info("process " + process + "no Known while try set end date");
return;
}
final Date dt = new Date(end_day);
LOGGER.info("" + process + " end time for player " + getName() + " is " + dt);
}
else
{
if (process.equals("aio"))
_aio_endTime = 0;

else
{
LOGGER.info("process " + process + "no Known while try set end date");
return;
}
}
}

/**
* Gets the aio end time.
* @return the aio end time
*/
public long getAioEndTime()
{
return _aio_endTime;
}
smile tomorrow will be a better day

Offline tazerman

  • *
  • Posts: 19
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #32 on: February 25, 2017, 03:20:13 PM »
//setaio [name] [time] for admin

Offline tazerman

  • *
  • Posts: 19
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #33 on: February 25, 2017, 04:43:29 PM »
LOL interlude no have kamael class
Olympiad.java

Code: [Select]
public List<String> getClassLeaderBoard(final int classId)
{
.
.
.
if (classId == 132) // Male & Female SoulHounds are ranked together
{
statement.setInt(1, 133);
rset = statement.executeQuery(); // Added supress. closed on finally
while (rset.next())
{
names.add(rset.getString(CHAR_NAME));
}
}

Offline valentin

  • *
  • Posts: 42
  • Karma: +0/-0
  • Gender: Male
    • https://www.youtube.com/watch?v=MY4YJxn-9Og
Re: Report a bug or request features
« Reply #34 on: February 26, 2017, 12:04:54 AM »
//setaio [name] [time] for admin
>>>> you are an idiot? excuse me
you do not understand
smile tomorrow will be a better day

Offline tazerman

  • *
  • Posts: 19
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #35 on: February 26, 2017, 01:36:57 AM »
meybe you dont share... you can find better
aio system for fix your problem..
http://pastebin.com/2RJFaWeB
« Last Edit: February 26, 2017, 01:50:53 AM by tazerman »

Offline valentin

  • *
  • Posts: 42
  • Karma: +0/-0
  • Gender: Male
    • https://www.youtube.com/watch?v=MY4YJxn-9Og
Re: Report a bug or request features
« Reply #36 on: February 26, 2017, 02:36:25 AM »
ok bro but i know it's a minor problem
smile tomorrow will be a better day

Offline Hyperion

  • *
  • Posts: 3
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #37 on: February 26, 2017, 03:03:24 PM »
Hello i found a minor bug when somebody uses rebirth manager i am not sure why but he goes to 1 lvl and has 1 hp 1 mana and 1 cp this remains aswell if i restart....


Offline Kuzuv

  • *
  • Posts: 62
  • Karma: +0/-0
  • Gender: Male
Re: Report a bug or request features
« Reply #38 on: February 26, 2017, 03:15:18 PM »
Everywhere is same.

Offline valentin

  • *
  • Posts: 42
  • Karma: +0/-0
  • Gender: Male
    • https://www.youtube.com/watch?v=MY4YJxn-9Og
Re: Report a bug or request features
« Reply #39 on: February 26, 2017, 11:32:11 PM »
meybe you dont share... you can find better
aio system for fix your problem..
http://pastebin.com/2RJFaWeB

l2jacis wtf
smile tomorrow will be a better day

Offline Hyperion

  • *
  • Posts: 3
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #40 on: February 28, 2017, 06:32:46 PM »
meybe you dont share... you can find better
aio system for fix your problem..
http://pastebin.com/2RJFaWeB

l2jacis wtf

Addapting between Acis and Frozen is easier than talking your dog out for a walk.....

Just saying...

Offline valentin

  • *
  • Posts: 42
  • Karma: +0/-0
  • Gender: Male
    • https://www.youtube.com/watch?v=MY4YJxn-9Og
Re: Report a bug or request features
« Reply #41 on: March 01, 2017, 01:32:34 AM »
It is ridiculous, making the code posted, on acis
this forum is called, frozen
smile tomorrow will be a better day

Offline Akken

  • *
  • Posts: 2
  • Karma: +0/-0
Re: Report a bug or request features
« Reply #42 on: March 02, 2017, 06:45:50 PM »
It is ridiculous, making the code posted, on acis
this forum is called, frozen
:o ???

Offline smfc

  • *
  • Posts: 111
  • Karma: +0/-0
  • Gender: Male
  • L2jFrozen Newbie
Re: Report a bug or request features
« Reply #43 on: April 07, 2017, 09:35:07 PM »
is it still running, i was trying to login today but game server was 9999 red
or am i doing something wrong, excuse me for being complete newbcake in this :D

Im looking forward to test your server pack cos someday i want to make lineage 2 server also , so i want to help as much as i can
In Lineage 2 we trust

Offline Nefer

  • *
  • Posts: 276
  • Karma: +0/-0
  • Gender: Male
  • Electric & Electronic engineer
    • Interlude c6 project
Re: Report a bug or request features
« Reply #44 on: April 07, 2017, 09:53:56 PM »
is it still running, i was trying to login today but game server was 9999 red
or am i doing something wrong, excuse me for being complete newbcake in this :D

Im looking forward to test your server pack cos someday i want to make lineage 2 server also , so i want to help as much as i can

Atm the Test server is running fine using V5 ALPHA but is accessible only from GM. We will get a free access to all players soon! :)

 


* l2jfrozen shoutbox

Refresh History
  • Please don't use the shoutbox for question, create new topic for it!
  • ReDBullz0r: why cant i compile the pack through eclipse? its asking for a username and password
    February 04, 2024, 09:52:17 PM
  • warc222: Shyla Shyla hi why don't you start developing high five classic Interlude there are no such good builds
    January 12, 2024, 08:32:55 PM
  • warc222: lineage 2 classic interlude 110 protocol
    January 05, 2024, 03:27:23 AM
  • warc222: hi shilay, could you use Lineage 2 classic Interlude or another version of the game Lineage 2 essence as a basis?
    January 05, 2024, 03:26:04 AM
  • L2Saturn: Manye 30 years old want get some old times back, we not need kids in L2 :D Interlude BEST
    December 20, 2023, 09:33:56 PM
  • Shyla: Guys, sorry but life requires time I did not know when I started to work on frozen. Linwage had been my passion, but I have not such time to work on again. More, the game itself now is just for who played in the past, is not attractive for new generations, so I dont think it's good decision to restart to work on that
    December 18, 2023, 06:38:36 PM
  • warc222: aunty aunty when will the work be updated??
    December 17, 2023, 01:08:18 PM
  • warc222: oo hi shila, we will be waiting for you near your house with a pitchfork so that you can start doing the project again
    December 17, 2023, 01:07:22 PM
  • Shyla: I know that xD
    November 28, 2023, 01:31:06 PM
  • L2Saturn: is this project die? L2JFrozen reborn please fuck off all other Project Frozen was the best since years!
    November 22, 2023, 04:14:00 PM
  • markus24: sweep festiv
    July 05, 2023, 06:03:49 AM
  • gatos: how to compile
    October 30, 2022, 12:50:22 PM
  • criss282828: A tutorial about how to compile? What Java JDK i need? Still compile with SVN?
    April 25, 2022, 02:18:13 AM
  • Damon: [link] - INTERLUDE server FILES (Pack) Recommend our files and get a REAL MONEY: [link]
    March 16, 2022, 01:08:50 PM
  • Damon: [link] - INTERLUDE server FILES (Pack) Recommend our files and get a REAL MONEY: [link]
    March 16, 2022, 01:08:45 PM
  • Damon: [link] - INTERLUDE server FILES (Pack) Recommend our files and get a REAL MONEY: [link]
    March 16, 2022, 01:08:39 PM
  • pabblo525: donde se descarga el datapack 1.5
    February 13, 2022, 05:04:45 PM
  • Dan: I need an interlude pack with customs (acis is retail with nothing)
    November 13, 2021, 04:46:49 PM
  • Dan: is this project alive or what?
    November 13, 2021, 04:46:23 PM
  • kaisan34: Hola alguien que hable en espaƱol?
    September 25, 2021, 07:56:46 PM