-
Публикаций
372 -
Зарегистрирован
-
Посещение
-
Победитель дней
1 -
Отзывы
100%
Тип контента
Профили
Форумы
Загрузки
Магазин
Инструкции
Весь контент baern9528
-
Делаю видео с обзором сервера. Заинтересовало пиши в л/с....
-
я просто хочу узнать как это делается что бы отвязать сборку
-
кто ни будь напишите мануал или дифф скиньте!!!!
-
Вы в инвисе бафаете ! Попробуйте простым чаром не ГМ(ом)
-
player.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT)); exp += calculateOverhitExp(exp); } if (player.getPremiumService() == 1) { exp = ()((float)exp * Config.PREMIUM_XP_RATE); sp = (int)(sp * Config.PREMIUM_SP_RATE); } player = null;
-
Как то так #include <stdio.h> #include <stdlib.h> #include <math.h> #define ROWS 4 #define COLS 4 int main() { int matrix[ROWS][COLS]; int i = 0; int j = 0; int k = 0; int min = 0; int sum = 0; for(i = 0; i < ROWS; ++i) for(j = 0; j < COLS; ++j) matrix[i][j] = rand() % 9; for(i = 0; i < ROWS; ++i) { for(j = 0; j < COLS; ++j) printf("%d ", matrix[i][j]); printf("\n"); } for(k = 0; k < ROWS - 1 && k < COLS - 1; ++k) { sum = 0; for(i = 0, j = 0; i < ROWS && j < COLS - 1 - k; ++i, ++j) { sum += abs(matrix[i][COLS - 2 - j - k]); } if(sum < min || min == 0) min = sum; } for(k = 0; k < ROWS - 1 && k < COLS - 1; ++k) { sum = 0; for(i = ROWS - 1, j = COLS - k - 1; i >= 0 && j < ROWS; --i, ++j) { sum += abs(matrix[i][j]); } if(sum < min || min == 0) min = sum; } printf("min: %d\n", min); return 0; }
-
* * 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.network.serverpackets; import com.l2jfrozen.gameserver.model.L2Character; /** * sample 0000: 5a d8 a8 10 48 d8 a8 10 48 10 04 00 00 01 00 00 Z...H...H....... 0010: 00 f0 1a 00 00 68 28 00 00 * .....h(.. format dddddd dddh (h) * * @version $Revision: 1.4.2.1.2.4 $ $Date: 2005/03/27 15:29:39 $ */ public class MagicSkillUser extends L2GameServerPacket { private static final String _S__5A_MAGICSKILLUSER = "[S] 5A MagicSkillUser"; private int _targetId; private int _skillId; private int _skillLevel; private int _hitTime; private int _reuseDelay; private int _charObjId, _x, _y, _z; public MagicSkillUser(L2Character cha, L2Character target, int skillId, int skillLevel, int hitTime, int reuseDelay) { _charObjId = cha.getObjectId(); if(target != null){ _targetId = target.getObjectId(); }else{ _targetId = cha.getTargetId(); } _skillId = skillId; _skillLevel = skillLevel; _hitTime = hitTime; _reuseDelay = reuseDelay; _x = cha.getX(); _y = cha.getY(); _z = cha.getZ(); } public MagicSkillUser(L2Character cha, int skillId, int skillLevel, int hitTime, int reuseDelay) { _charObjId = cha.getObjectId(); _targetId = cha.getTargetId(); _skillId = skillId; _skillLevel = skillLevel; _hitTime = hitTime; _reuseDelay = reuseDelay; _x = cha.getX(); _y = cha.getY(); _z = cha.getZ(); } @Override protected final void writeImpl() { writeC(0x48); writeD(_charObjId); writeD(_targetId); writeD(_skillId); writeD(_skillLevel); writeD(_hitTime); writeD(_reuseDelay); writeD(_x); writeD(_y); writeD(_z); writeH(0x00); // unknown loop but not AoE //for() //{ writeH(0x00); writeH(0x00); writeH(0x00); //} } /* (non-Javadoc) * @see com.l2jfrozen.gameserver.serverpackets.ServerBasePacket#getType() */ @Override public String getType() { return _S__5A_MAGICSKILLUSER; } }
-
prepare-local: prepare-final: init: version: [echo] L2jFrozen Gameserver Revision: exported compile: [javac] Compiling 1151 source files to C:\sare\l2jFrozen\gameserver\build\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] C:\sare\l2jFrozen\gameserver\head-src\com\l2jfrozen\gameserver\datatables\sql\ClanTable.java:242: error: cannot find symbol [javac] player.broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0)); [javac] ^ [javac] symbol: class MagicSkillUse [javac] location: class ClanTable [javac] 1 error [javac] 1 warning BUILD FAILED C:\sare\l2jFrozen\gameserver\build.xml:65: Compile failed; see the compiler error output for details. Total time: 6 seconds
-
prepare-local: prepare-final: init: version: [echo] L2jFrozen Gameserver Revision: exported compile: [javac] Compiling 1156 source files to C:\sare\l2jFrozen\gameserver\build\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] C:\sare\l2jFrozen\gameserver\head-src\com\l2jfrozen\gameserver\datatables\sql\ClanTable.java:241: error: cannot find symbol [javac] player.broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0)); [javac] ^ [javac] symbol: class MagicSkillUse [javac] location: class ClanTable [javac] 1 error [javac] 1 warning BUILD FAILED C:\sare\l2jFrozen\gameserver\build.xml:65: Compile failed; see the compiler error output for details. Total time: 6 seconds
-
prepare-local: prepare-final: init: version: [echo] L2jFrozen Gameserver Revision: exported compile: [javac] Compiling 1146 source files to C:\sare\l2jFrozen\gameserver\build\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] C:\sare\l2jFrozen\gameserver\head-src\com\l2jfrozen\gameserver\datatables\sql\ClanTable.java:241: error: cannot find symbol [javac] player.getTarget().broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0)); [javac] ^ [javac] symbol: class MagicSkillUse [javac] location: class ClanTable [javac] 1 error [javac] 1 warning BUILD FAILED C:\sare\l2jFrozen\gameserver\build.xml:65: Compile failed; see the compiler error output for details. Total time: 6 seconds
-
prepare-local: prepare-final: init: version: [echo] L2jFrozen Gameserver Revision: exported compile: [javac] Compiling 1146 source files to C:\sare\l2jFrozen\gameserver\build\classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6 [javac] C:\sare\l2jFrozen\gameserver\head-src\com\l2jfrozen\gameserver\datatables\sql\ClanTable.java:241: error: cannot find symbol [javac] npc.broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0)); [javac] ^ [javac] symbol: class MagicSkillUse [javac] location: class ClanTable [javac] C:\sare\l2jFrozen\gameserver\head-src\com\l2jfrozen\gameserver\datatables\sql\ClanTable.java:241: error: cannot find symbol [javac] npc.broadcastPacket(new MagicSkillUse(player, player, 5103, 1, 1000, 0)); [javac] ^ [javac] symbol: variable npc [javac] location: class ClanTable [javac] 2 errors [javac] 1 warning BUILD FAILED C:\sare\l2jFrozen\gameserver\build.xml:65: Compile failed; see the compiler error output for details. Total time: 6 seconds
-
public L2Clan createClan(L2PcInstance player, String clanName) { if(null == player) return null; _log.finest( "{}({}) requested a clan creation."+" "+ player.getObjectId()+" "+ player.getName()); if(10 > player.getLevel()) { player.sendPacket(new SystemMessage(SystemMessageId.YOU_DO_NOT_MEET_CRITERIA_IN_ORDER_TO_CREATE_A_CLAN)); return null; } if(0 != player.getClanId()) { player.sendPacket(new SystemMessage(SystemMessageId.FAILED_TO_CREATE_CLAN)); return null; } if(System.currentTimeMillis() < player.getClanCreateExpiryTime()) { player.sendPacket(new SystemMessage(SystemMessageId.YOU_MUST_WAIT_XX_DAYS_BEFORE_CREATING_A_NEW_CLAN)); return null; } if(!isValidCalnName(player, clanName)) return null; L2Clan clan = new L2Clan(IdFactory.getInstance().getNextId(), clanName); L2ClanMember leader = new L2ClanMember(clan, player.getName(), player.getLevel(), player.getClassId().getId(), player.getObjectId(), player.getPledgeType(), player.getPowerGrade(), player.getTitle()); clan.setLeader(leader); leader.setPlayerInstance(player); clan.store(); player.setClan(clan); player.setPledgeClass(leader.calculatePledgeClass(player)); player.setClanPrivileges(L2Clan.CP_ALL); _log.finest("New clan created: {} {}"+" "+ clan.getClanId()+" "+ clan.getName()); _clans.put(new Integer(clan.getClanId()), clan); //should be update packet only player.sendPacket(new PledgeShowInfoUpdate(clan)); player.sendPacket(new PledgeShowMemberListAll(clan, player)); player.sendPacket(new UserInfo(player)); player.sendPacket(new PledgeShowMemberListUpdate(player)); player.sendPacket(new SystemMessage(SystemMessageId.CLAN_CREATED)); return clan; } Весь метод импорт добавил а эту строчку хз куда добавлять