사이트 로그인
2018.10.02 15:38
프리서버 오픈소스 리니지 스피드핵 방지 소스
public void speed_save()
{
try
{
if (System.currentTimeMillis() - this.test3 > 2000L)
test_reset();
if ((getGfxId().getTempCharGfx() != this.test1) || (getCurrentWeapon() + 1 != this.test2))
{
this.test1 = getGfxId().getTempCharGfx();
this.test2 = (getCurrentWeapon() + 1);
test_reset();
}
this.test_step += 1L;
if (this.test_step > 3L)
{
long l = System.currentTimeMillis() - this.test3;
if (this._speedtest.containsKey(Long.valueOf(l)))
this._speedtest.put(Integer.valueOf((int)l), Integer.valueOf(((Integer)this._speedtest.get(Long.valueOf(l))).intValue() + 1));
else
this._speedtest.put(Integer.valueOf((int)l), Integer.valueOf(1));
}
if (this.test_step == 20L)
{
int i = 0;
int j = 0;
Object localObject1 = this._speedtest.keySet().iterator();
Object localObject2;
while (((Iterator)localObject1).hasNext())
{
localObject2 = (Integer)((Iterator)localObject1).next();
if (((Integer)this._speedtest.get(localObject2)).intValue() > j)
{
i = ((Integer)localObject2).intValue();
j = ((Integer)this._speedtest.get(localObject2)).intValue();
}
}
if (UserSpeedControlTable.getInstance().getAttackSpeed(getGfxId().getTempCharGfx(), getCurrentWeapon() + 1) != 0)
{
if (UserSpeedControlTable.getInstance().getAttackSpeed(getGfxId().getTempCharGfx(), getCurrentWeapon() + 1) > i)
{
sendPackets(new S_SystemMessage("속도 측정 재기록 : " + i + "입니다.(polyid=" + getGfxId().getTempCharGfx() + ", type" + (getCurrentWeapon() + 1) + ")"));
localObject1 = null;
localObject2 = null;
try
{
localObject1 = L1DatabaseFactory.getInstance().getConnection();
localObject2 = ((Connection)localObject1).prepareStatement("UPDATE user_speed_control SET speed=? WHERE poly_id=? and action_type=?");
((PreparedStatement)localObject2).setInt(1, i);
((PreparedStatement)localObject2).setInt(2, getGfxId().getTempCharGfx());
((PreparedStatement)localObject2).setInt(3, getCurrentWeapon() + 1);
((PreparedStatement)localObject2).execute();
}
catch (SQLException localSQLException1)
{
}
finally
{
SQLUtil.close((Statement)localObject2);
SQLUtil.close((Connection)localObject1);
}
}
else
{
sendPackets(new S_SystemMessage("속도 재측정 결과 : " + i + "입니다. 이전 보다 느리거나 같아 기록되지 않았습니다.(polyid=" + getGfxId().getTempCharGfx() + ", type" + (getCurrentWeapon() + 1) + ")"));
test_reset();
return;
}
}
else
{
sendPackets(new S_SystemMessage("속도측정기록 : " + i + "입니다.(polyid=" + getGfxId().getTempCharGfx() + ", type" + (getCurrentWeapon() + 1) + ")"));
localObject1 = null;
localObject2 = null;
try
{
localObject1 = L1DatabaseFactory.getInstance().getConnection();
localObject2 = ((Connection)localObject1).prepareStatement("INSERT INTO user_speed_control SET poly_id = ?, action_type = ?, speed = ?");
((PreparedStatement)localObject2).setInt(1, getGfxId().getTempCharGfx());
((PreparedStatement)localObject2).setInt(2, getCurrentWeapon() + 1);
((PreparedStatement)localObject2).setInt(3, i);
((PreparedStatement)localObject2).execute();
}
catch (SQLException localSQLException2)
{
}
finally
{
SQLUtil.close((Statement)localObject2);
SQLUtil.close((Connection)localObject1);
}
}
UserSpeedControlTable.getInstance().putAttackSpeed(getGfxId().getTempCharGfx(), getCurrentWeapon() + 1, i);
test_reset();
}
this.test3 = System.currentTimeMillis();
}
catch (Exception localException)
{
localException.printStackTrace();
}
}
public void test_reset()
{
this.test_step = 0L;
this.test_speed = 0L;
this._speedtest.clear();
}
public void addSpeedHackCount(int paramInt)
{
this._speedhackCount += paramInt;
if (this._speedhackCount < 0)
this._speedhackCount = 0;
if ((this._speedhackCount == 4) || (this._speedhackCount == 8))
L1Teleport.teleport(this, getX(), getY(), getMapId(), getMoveState().getHeading(), false);
if (this._speedhackCount == 12)
sendPackets(new S_Disconnect());
}
}
출처 린프리
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 소스자료는 직접 올려주세요 | 게임존 | 2017.06.06 | 550 |
909 | 쇼크스턴 본섭화 소스 | 찰떡01 | 2018.11.01 | 316 |
908 | 쇼크스턴 확률 조절 하는 소스 [1] | 찰떡01 | 2018.11.01 | 355 |
907 | 패킷 변조 / 중계기 방지 소스 | 찰떡01 | 2018.10.29 | 779 |
906 | 신규지원템 상자로 묶어주기! | sdsdsdee | 2018.10.12 | 268 |
905 | 아이템 자동드랍 설정하기 | sdsdsdee | 2018.10.12 | 272 |
904 | 맞는 데미지 5%흡수 소스 [1] | sdsdsdee | 2018.10.12 | 134 |
903 | 목표달성 랩되면 선물주기 | sdsdsdee | 2018.10.12 | 134 |
902 | 내가 원하는 버프물약 만들기 | sdsdsdee | 2018.10.12 | 432 |
901 | 라우풀 물약 제작 소스 | 찰떡01 | 2018.10.08 | 165 |
900 | 악마왕 망토 만들기 소스 | 찰떡01 | 2018.10.08 | 203 |
899 | 악마왕 망토 만들기 소스 | 찰떡01 | 2018.10.08 | 49 |
898 | 악마왕 망토 만들기 소스 | 찰떡01 | 2018.10.08 | 102 |
897 | 스킬북 미티어스톰 추가소스 | 찰떡01 | 2018.10.08 | 206 |
» | 스피드핵 방지 소스 [1] | 찰떡01 | 2018.10.02 | 216 |
895 | 소매치기 주문서 소스 | 찰떡01 | 2018.10.02 | 85 |
894 | 성 군주 접속시 전체 멘트 소스 | 찰떡01 | 2018.10.02 | 103 |
893 | 몬스터끼리 싸우는 소스 [1] | 찰떡01 | 2018.10.02 | 219 |
892 | npc마법데미지본섭화 | 찰떡01 | 2018.10.02 | 150 |
891 | 유저 전체 소환 소스 | 찰떡01 | 2018.09.19 | 65 |
890 | 유저 전체에게 선물 주기 소스 | 찰떡01 | 2018.09.19 | 170 |
889 | 유저 전체에게 선물 주기 소스 | 찰떡01 | 2018.09.19 | 59 |
888 | 이펙트 및 메세지 띄우기 소스 | 찰떡01 | 2018.09.19 | 177 |
887 | 버프 물약 아이템 만드는 소스 | 찰떡01 | 2018.09.19 | 279 |
886 | 떨어져 있는 상대와도 교환 할수 있게 변경 | 찰떡01 | 2018.09.15 | 219 |
885 | 이혼시 결혼 반지 사라지게 [1] | 찰떡01 | 2018.09.15 | 47 |
884 | 리니지 운영자 상점 추가 | 찰떡01 | 2018.09.14 | 545 |
883 | 리니지 운영자 상점 추가 | 찰떡01 | 2018.09.14 | 736 |
882 | 에스메랄다 미래보기 활성화 소스 | 찰떡01 | 2018.09.14 | 55 |
881 | 저렙 초보 PK 방지되는 소스 | 찰떡01 | 2018.09.14 | 104 |
880 | 시작 지점 변경 소스 | 찰떡01 | 2018.09.14 | 121 |
879 | 드레곤키 메뉴 추가 소스 | 찰떡01 | 2018.09.13 | 51 |
878 | 드래곤의 진주 추가 소스 | 찰떡01 | 2018.09.13 | 222 |
877 | 팩에서 교환창이 안열리는 버그 수정 소스 | 찰떡01 | 2018.09.13 | 42 |
876 | 채팅 금지 풀기 소스 | 찰떡01 | 2018.09.13 | 67 |
875 | 크리스마스 산타 버프 소스 | 찰떡01 | 2018.09.13 | 108 |
874 | 프리서버 오픈소스 리니지 카운터 배리어 본섭화 소스 | 찰떡01 | 2018.09.12 | 114 |
873 | 프리서버 오픈소스 리니지 카운터 배리어 본섭화 소스 | 찰떡01 | 2018.09.12 | 1012 |
872 | 오토루팅 명령어로 끔.켬 소스 | 찰떡01 | 2018.09.12 | 334 |
871 | 운영자 경험치 복구 시켜주는 명령어 | 찰떡01 | 2018.09.12 | 119 |
870 | 피버그 완전 방어 | 찰떡01 | 2018.09.12 | 194 |
869 | 성 세금 없애기 | 찰떡01 | 2018.09.11 | 73 |
868 | 보스몹 리스폰시 멘트(외치기) 띄우기 | 찰떡01 | 2018.09.11 | 181 |
867 | 소막갬블,주사위,묵찌빠 | 찰떡01 | 2018.09.11 | 200 |
866 | 서먼되는 몹 바꾸기 [1] | 찰떡01 | 2018.09.11 | 583 |
865 | 보스 잡았을때 누가 잡았는지 공지 띄우기 | 찰떡01 | 2018.09.11 | 231 |
864 | 디아블로 에바팩 | 찰떡01 | 2018.09.10 | 199 |
863 | 디아블로 시스템 | 찰떡01 | 2018.09.10 | 267 |
862 | 고대 방어구 소스 | 찰떡01 | 2018.09.10 | 293 |
861 | 로또 복권 소스 | 찰떡01 | 2018.09.09 | 106 |
860 | 관리자창에서 나비켓 불러오기 소스 | 찰떡01 | 2018.09.09 | 271 |
어디다가 넣으면 되나여?