Jump to content

claww

Members
  • Posts

    479
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by claww

  1. server its at beginning... but enought ppls
  2. hello, i'm looking for geodata for l2jserver Epilogue - i search here on forum and really i didnt found.... can anyone recommend me a good geodata PLEAS :) and a link from where to download !! Thank you!!!
  3. new changes - check website
  4. resolved here is the answer if some one will have this problem too Error: History: FL2GameData::ObsceneDataLoad <- FL2GameData::Load() <- UGameEngine::Init <- InitEngine Cause: The client cannot properly load banned messages. Solution: Delete obscene-e.dat in your C:\Program Files\Lineage II\system folder and run L2.exe again.
  5. hey guys anyone can help me how to add this hitman system ? i dont know where to add files and if someone can make this system and for l2jserver .. for that i have to change just import location from net.sf.l2j.gameserver into com.l2jserver.gameserver
  6. whats this file in system :O i never saw it Microsoft.VC80.OpenMP.manifest
  7. Hello, I dont know why some peoples get error when they try start lineage2 with my system - they get critical error with old system they didnt had anyerror and now i made some change in system as - itemname and added some custom recipe... and some of the players cannot start lineage with this system they get error all time i think if was something bad changes in system i will cannot start l2 too,,,
  8. o was still try with this code and i found smth.... check here package com.l2jserver.gameserver.model.actor.instance; import java.util.StringTokenizer; import com.l2jserver.gameserver.TradeController; import com.l2jserver.gameserver.model.L2Multisell; import com.l2jserver.gameserver.model.L2TradeList; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; import com.l2jserver.gameserver.network.serverpackets.ExBuySellListPacket; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.templates.chars.L2NpcTemplate; import com.l2jserver.gameserver.util.StringUtil; import com.l2jserver.gameserver.util.StringUtil; - this part.. i search in this location and this file doesent exist.. what i have to do ? :P
  9. ok ok.. asking cause i dont know... 1st time with eclipse.. i dont know how to import ...
  10. so what i have to do ? :P i just create a file in com/l2jserver/gameserver/model/actor/ L2PVPInstance.java added the code which i found here.. what i have to do ? :P
  11. here is the error Buildfile: C:\server Source\srv\L2_GameServer\build.xml clean: [delete] Deleting directory C:\server Source\srv\L2_GameServer\build verifyRequirements: init: [mkdir] Created dir: C:\server Source\srv\L2_GameServer\build [mkdir] Created dir: C:\server Source\srv\L2_GameServer\build\classes [mkdir] Created dir: C:\server Source\srv\L2_GameServer\build\dist [mkdir] Created dir: C:\server Source\srv\L2_GameServer\build\dist\login [mkdir] Created dir: C:\server Source\srv\L2_GameServer\build\dist\gameserver version: [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, The system cannot find the file specified compile: [javac] Compiling 1460 source files to C:\server Source\srv\L2_GameServer\build\classes [javac] C:\server Source\srv\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2PVPInstance.java:12: cannot find symbol [javac] symbol : class StringUtil [javac] location: package com.l2jserver.gameserver.util [javac] import com.l2jserver.gameserver.util.StringUtil; [javac] ^ [javac] C:\server Source\srv\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2PVPInstance.java:89: cannot find symbol [javac] symbol : variable StringUtil [javac] location: class com.l2jserver.gameserver.model.actor.instance.L2PVPInstance [javac] final StringBuilder html1 = StringUtil.startAppend(2000, [javac] ^ [javac] 2 errors BUILD FAILED C:\server Source\srv\L2_GameServer\build.xml:62: Compile failed; see the compiler error output for details. Total time: 9 seconds
  12. here its ok no ? i just want to make olympiad every week Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance(); //currentTime.add(Calendar.MONTH, 1); currentTime.add(Calendar.HOUR, 168); //currentTime.set(Calendar.DAY_OF_MONTH, 1); currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0); currentTime.set(Calendar.SECOND, 0); _olympiadEnd = currentTime.getTimeInMillis(); Calendar nextChange = Calendar.getInstance(); _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD; scheduleWeeklyChange(); } i will show u error from pvpinstance in few sec.. i have just to checkout again cause i compiled it
  13. yes but i was thinking to compile the code after to add htmls... but i cannot compile i got error i tought its waste of time if i cannot compile the code... to create html for nothing
  14. i have to make html before to compile it ?? i tought i will can make htmls after i will compile it :P
  15. and i have to delete the custom code right ? only add what u told me
  16. and this one is with PVPInstance i create the file in com/l2jserver/model/actor/instance package com.l2jserver.gameserver.model.actor.instance; import java.util.StringTokenizer; import com.l2jserver.gameserver.TradeController; import com.l2jserver.gameserver.model.L2Multisell; import com.l2jserver.gameserver.model.L2TradeList; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; import com.l2jserver.gameserver.network.serverpackets.ExBuySellListPacket; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.templates.chars.L2NpcTemplate; import com.l2jserver.gameserver.util.StringUtil; /** * * @author Mentor * @version 1.1 * @web www.teamsrv.net * */ public class L2PVPInstance extends L2NpcInstance { public L2PVPInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } @Override public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/PVPMerchant/" + pom + ".htm"; } protected final void showBuyWindow(L2PcInstance player, int val) { player.tempInventoryDisable(); L2TradeList list = TradeController.getInstance().getBuyList(val); if (list != null && list.getNpcId().equals(String.valueOf(getNpcId()))) player.sendPacket(new ExBuySellListPacket(player, list, 0, false)); else { _log.warning("buylist id:" + val); } player.sendPacket(ActionFailed.STATIC_PACKET); } @Override public void onBypassFeedback(L2PcInstance player, String command) { StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); // Get actual command int pvp = Integer.parseInt(st.nextToken()); if (actualCommand.equalsIgnoreCase("Buy") && player.getPvpKills() >= pvp) { if (st.countTokens() < 1) return; int val = Integer.parseInt(st.nextToken()); showBuyWindow(player, val); } else if (actualCommand.equalsIgnoreCase("Multisell") && player.getPvpKills() >= pvp) { if (st.countTokens() < 1) return; int val = Integer.parseInt(st.nextToken()); L2Multisell.getInstance().separateAndSend(val, player, getNpcId(), false, getCastle().getTaxRate()); } else if (actualCommand.equalsIgnoreCase("Exc_Multisell") && player.getPvpKills() >= pvp) { if (st.countTokens() < 1) return; int val = Integer.parseInt(st.nextToken()); L2Multisell.getInstance().separateAndSend(val, player, getNpcId(), true, getCastle().getTaxRate()); } else { NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); final StringBuilder html1 = StringUtil.startAppend(2000, "<html><body><font color=\"06ff0a\">PvP Manager:</font><br> You not enough pvp kills.<br1>You have <font color=\"LEVEL\">", String.valueOf(player.getPvpKills()), "</font> pvp kills in <font color=\"FF0000\">", String.valueOf(pvp), "</font> pvp kills.<br><center>Created by <font color=\"06ff0a\">OurWorld</font></center></body></html>"); html.setHtml(html1.toString()); player.sendPacket(html); super.onBypassFeedback(player, command); } } }
  17. this one is with nobless if you kill barakiel i add code with barakiel at middle ... /* * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.model.actor.instance; import com.l2jserver.Config; import com.l2jserver.gameserver.ThreadPoolManager; import com.l2jserver.gameserver.instancemanager.RaidBossPointsManager; import com.l2jserver.gameserver.instancemanager.RaidBossSpawnManager; import com.l2jserver.gameserver.model.L2Skill; import com.l2jserver.gameserver.model.L2Spawn; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Summon; import com.l2jserver.gameserver.model.entity.Hero; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.SystemMessage; import com.l2jserver.gameserver.templates.chars.L2NpcTemplate; import com.l2jserver.util.Rnd; /** * This class manages all RaidBoss. * In a group mob, there are one master called RaidBoss and several slaves called Minions. * * @version $Revision: 1.20.4.6 $ $Date: 2005/04/06 16:13:39 $ */ public class L2RaidBossInstance extends L2MonsterInstance { private static final int RAIDBOSS_MAINTENANCE_INTERVAL = 30000; // 30 sec private RaidBossSpawnManager.StatusEnum _raidStatus; /** * Constructor of L2RaidBossInstance (use L2Character and L2NpcInstance constructor).<BR><BR> * * <B><U> Actions</U> :</B><BR><BR> * <li>Call the L2Character constructor to set the _template of the L2RaidBossInstance (copy skills from template to object and link _calculators to NPC_STD_CALCULATOR) </li> * <li>Set the name of the L2RaidBossInstance</li> * <li>Create a RandomAnimation Task that will be launched after the calculated delay if the server allow it </li><BR><BR> * * @param objectId Identifier of the object to initialized * @param L2NpcTemplate Template to apply to the NPC */ public L2RaidBossInstance(int objectId, L2NpcTemplate template) { super(objectId, template); setInstanceType(InstanceType.L2RaidBossInstance); setIsRaid(true); } @Override public void onSpawn() { setIsNoRndWalk(true); super.onSpawn(); } @Override protected int getMaintenanceInterval() { return RAIDBOSS_MAINTENANCE_INTERVAL; } @Override public boolean doDie(L2Character killer) { if (!super.doDie(killer)) return false; L2PcInstance player = null; if (killer instanceof L2PcInstance) player = (L2PcInstance) killer; else if (killer instanceof L2Summon) player = ((L2Summon) killer).getOwner(); if (player != null) { broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL)); if (player.getParty() != null) { for (L2PcInstance member : player.getParty().getPartyMembers()) { RaidBossPointsManager.addPoints(member, this.getNpcId(), (this.getLevel() / 2) + Rnd.get(-5, 5)); if(member.isNoble()) Hero.getInstance().setRBkilled(member.getObjectId(), this.getNpcId()); } } else { RaidBossPointsManager.addPoints(player, this.getNpcId(), (this.getLevel() / 2) + Rnd.get(-5, 5)); if(player.isNoble()) Hero.getInstance().setRBkilled(player.getObjectId(), this.getNpcId()); } } RaidBossSpawnManager.getInstance().updateStatus(this, true); return true; } //barakiel give noblesse status if (player != null) { int _barakielId = 25325; if (getNpcId() == _barakielId) player.setNoble(true); player.sendMessage("You have gained Noblesse status by killing Barakiel!"); broadcastPacket(new SystemMessage(SystemMessageId.RAID_WAS_SUCCESSFUL)); if (player.getParty() != null) //here end script /** * Spawn all minions at a regular interval Also if boss is too far from home * location at the time of this check, teleport it home * */ @Override protected void startMaintenanceTask() { if (_minionList != null) _minionList.spawnMinions(); _maintenanceTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() { public void run() { checkAndReturnToSpawn(); if (_minionList != null) _minionList.maintainMinions(); } }, 60000, getMaintenanceInterval()+Rnd.get(5000)); } protected void checkAndReturnToSpawn() { if (isDead() || isMovementDisabled()) return; // Gordon does not have permanent spawn if (getNpcId() == 29095) return; final L2Spawn spawn = getSpawn(); if (spawn == null) return; final int spawnX = spawn.getLocx(); final int spawnY = spawn.getLocy(); final int spawnZ = spawn.getLocz(); if (!isInCombat() && !isMovementDisabled()) { if (!isInsideRadius(spawnX, spawnY, spawnZ, Math.max(Config.MAX_DRIFT_RANGE, 200), true, false)) teleToLocation(spawnX, spawnY, spawnZ, false); } } /** * Reduce the current HP of the L2Attackable, update its _aggroList and launch the doDie Task if necessary.<BR><BR> * */ @Override public void reduceCurrentHp(double damage, L2Character attacker, boolean awake, boolean isDOT, L2Skill skill) { super.reduceCurrentHp(damage, attacker, awake, isDOT, skill); } public void setRaidStatus (RaidBossSpawnManager.StatusEnum status) { _raidStatus = status; } public RaidBossSpawnManager.StatusEnum getRaidStatus() { return _raidStatus; } @Override public float getVitalityPoints(int damage) { return - super.getVitalityPoints(damage) / 100; } @Override public boolean useVitalityRate() { return false; } } [code] [/code]
  18. hello, i'm using l2jserver and i try to add some java codes from this forum which i think are usefull for my server but... i dont know as example this http://www.maxcheaters.com/forum/index.php?topic=124847.0 but when i compile i get error - i create other file with name "L2PVPInstance.java" adding code from above and other codes which i have to add but in files which exist - i dont understand smth here from guides which i read.... to which lines i have to add codes if i add to end file these codes i get error.... example this : http://www.maxcheaters.com/forum/index.php?topic=160623.0 i know its smth what i dont understand can anyone explain me a bit ..... Thanks :P
  19. its looking as when you doesn't have installed java i think
  20. i did it... i will post the code mby someone wanna print information from database on website <?php $db_host = 'localhost'; $db_user = 'root'; $db_pwd = 'database_password'; $database = 'database_name'; $table = 'table_name'; <!-- table name which you wanna print on website.... --> if (!mysql_connect($db_host, $db_user, $db_pwd)) die("Can't connect to database"); if (!mysql_select_db($database)) die("Can't select database"); // trimitere interogare $result = mysql_query("SELECT * FROM {$table}"); if (!$result) { die("Query to show fields from table failed"); } $fields_num = mysql_num_fields($result); echo "<h1>Table: {$table}</h1>"; echo "<table border='1'><tr>"; // printeaza titlu tabelului for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo "<td>{$field->name}</td>"; } echo "</tr>\n"; // printeaza randurile tabelului while($row = mysql_fetch_row($result)) { echo "<tr>"; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($row as $cell) echo "<td>$cell</td>"; echo "</tr>\n"; } mysql_free_result($result); ?>
  21. nop... just print dates from tabel which i post in my 1st post here and i want as all time when dates changes in this table to change on webpage too.... i dont want to print by top which is expensive.... just print the dates from table on webpage look i want to print dates from HERE TO HERE ON WEBPAGE http://img149.imageshack.us/i/75679269.png/
  22. nobody wanna help ? sry for double post but i want to do that.... :<
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock