Jump to content

Orgyilkos

Members
  • Posts

    11
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About Orgyilkos

Contact Methods

  • Website URL
    http://www.teamsrv.net

Profile Information

  • Gender
    Not Telling

Orgyilkos's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. yes My profile link: http://www.teamsrv.net/index.php?action=profile;u=1
  2. E107 Status Plugin (UNI): http://dl.teamsrv.net/lineage2/l2jstatus_menu_v3_by_Mentor.zip Samle PHP L2J Status: <?php //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor (Orgyilkos) www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// $login_ip = "127.0.0.1"; $login_port = "2106"; $game_ip = "127.0.0.1"; $game_port = "7777"; $ventrilo_ip = "127.0.0.1"; $ventrilo_port = "3784"; $mysql_host = "127.0.0.1"; $mysql_user = "root"; $mysql_passwd = "root"; $mysql_db = "l2jdb"; /////////////////////////// ////////Login Server/////// /////////////////////////// $ls = @fsockopen ($login_ip, $login_port, $errno, $errstr, 1); if ( $ls ) $ls = "<font color=green>Online</font>"; else $ls = "<font color=red>Offline</font>"; /////////////////////////// ////////Game Server /////// /////////////////////////// $gs = @fsockopen ($game_ip, $game_port, $errno, $errstr, 1); if ( $gs ) $gs = "<font color=green>Online</font>"; else $gs = "<font color=red>Offline</font>"; /////////////////////////// ////////Vent Server /////// /////////////////////////// $ve = @fsockopen ($ventrilo_ip, $ventrilo_port, $errno, $errstr, 1); if ( $ve ) $ve = "<font color=green>Online</font>"; else $ve = "<font color=red>Offline</font>"; ///////////////////////////// ////MySQL Login Server/////// ///////////////////////////// mysql_connect($mysql_host, $mysql_user, $mysql_passwd) or die ("Nem sikerült csatlakozni a MySQL szerverhez!"); mysql_select_db($mysql_db) or die("Nincs ilyen adatbázis: ".$mysql_db); // All Accounts $accounts=mysql_numrows(mysql_query("SELECT * FROM accounts")); // Online Players Num $num=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel=0")); // Online GMs Num $gmnum=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel>0")); // All Alliance Num $alliance=mysql_numrows(mysql_query("SELECT * FROM clan_data WHERE ally_name!=\'\'")); // All Characters $char=mysql_numrows(mysql_query("SELECT * FROM characters WHERE accesslevel=0")); // All GM Characters $gmchar=mysql_numrows(mysql_query("SELECT * FROM characters Where accesslevel > 0")); // All Clan $clan=mysql_numrows(mysql_query("SELECT * FROM clan_data")); $gmnamesql = mysql_query("SELECT char_name FROM characters WHERE accesslevel>=1 AND online=1 ORDER BY char_name ASC"); while ($gmnam = mysql_fetch_object($gmnamesql)) { $gmname .= "<font color=green>$gmnam->char_name</font>, "; } ///////////////////////////// //////Adatok kiiratása/////// ///////////////////////////// print " <table width='100%' border='0'> <tr><td width='80%'><b>Auth Server:</b></td><td>".$ls."</td></tr> <tr><td width='80%'><b>Bartz Server:</b></td><td>".$gs."</td></tr> <tr><td width='80%'>Accounts:</td><td>".$accounts."</td></tr> <tr><td width='80%'>Online Players:</td><td>".$num."</td></tr> <tr><td width='80%'>Online GM:</td><td>".$gmnum."</td></tr> <tr><td width='80%'>Characters:</td><td>".$char."</td></tr> <tr><td width='80%'>GM Characters:</td><td>".$gmchar."</td></tr> <tr><td width='80%'>Clans:</td><td>".$clan."</td></tr> <tr><td width='80%'>Alliances:</td><td>".$alliance."</td></tr> <tr><td>Online GM: ".$gmname."</td></tr> </table> "; //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor (Orgyilkos) www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// ?> Created by Me :)
  3. Create com.l2jserver.gameserver.model.actor.instance.L2PVPInstance.java 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\">Mentor</font></center></body></html>"); html.setHtml(html1.toString()); player.sendPacket(html); super.onBypassFeedback(player, command); } } } NPC: HTML: Create PVPMerchant directory in data/html. data/html/PVPMerchant/40000.htm I tested in L2J (Rev 3900). Created by Mentor.(me) [sorry, I bad in Enlish.]
  4. Simple PHP Dropcalc created by ME!(Mentor) Installing Dropcalc: - Download dropcalc.zip - Unzip and upload your webserver - Setting mysql connect in settings/config.php - Import sql/dropcalc_items.sql your database - Visit your webpage http://your.web/dropcalc ScreenShot: http://dl.teamsrv.net/lineage2/dropcalc_by_mentor_teamsrv_net.jpg Hungarian to English in dropcalc: "Mob neve" ==> "Mob name" "Ikon" ==> "Icon" "Item neve" ==> "Item name" "Nem" ==> "No" "Igen" ==> "Yes" "Esély" ==> "Chance" "Keressés" ==> "Search" Download Link: http://dl.teamsrv.net/lineage2/dropcalc_by_mentor_teamsrv_net.zip Thanx For MEEEEEE (MENTOR)!!!!
  5. .levelup and .leveldown command for players. I created for L2J server. GameServer/data/scripts/handlers/voicedcommandhandlers/LevelCommands.java /* * 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 handlers.voicedcommandhandlers; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.InventoryUpdate; import net.sf.l2j.gameserver.model.base.Experience; /** * @author Mentor * @date 2009.09.05 */ public class LevelCommands implements IVoicedCommandHandler { private static final String[] _voicedCommands = { "levelup", "leveldown" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("levelup")) { if (activeChar.getInventory().getInventoryItemCount(57, 0) >= 10000000) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Adena", 57, 10000000, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.addExpAndSp(Experience.LEVEL[activeChar.getStat().getLevel() + 1] - Experience.LEVEL[activeChar.getStat().getLevel()], 0); activeChar.sendMessage("+1 Level"); } else { activeChar.sendMessage("Havent enought adena."); } } else if (command.equalsIgnoreCase("leveldown")) { if (activeChar.getInventory().getInventoryItemCount(57, 0) >= 10000000 && activeChar.getStat().getLevel() >= 60) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Adena", 57, 10000000, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0); activeChar.sendMessage("-1 Level"); } else { activeChar.sendMessage("Havent enought adena."); } } return true; } public String[] getVoicedCommandList() { return _voicedCommands; } } GameServer/data/scripts/handlers/MasterHandler.java VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new LevelCommands());
  6. Hero Status for X kills. :) I created for L2J. This my first topic in maxcheaters :) Patch:
  7. My Server Status Script: <?php //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// $login_ip = "127.0.0.1"; $login_port = "2106"; $game_ip = "127.0.0.1"; $game_port = "7777"; $ventrilo_ip = "127.0.0.1"; $ventrilo_port = "3784"; $mysql_host = "127.0.0.1"; $mysql_user = "root"; $mysql_passwd = "root"; $mysql_db = "l2jdb"; /////////////////////////// ////////Login Server/////// /////////////////////////// $ls = @fsockopen ($login_ip, $login_port, $errno, $errstr, 1); if ( $ls ) $ls = "<font color=green>Online</font>"; else $ls = "<font color=red>Offline</font>"; /////////////////////////// ////////Game Server /////// /////////////////////////// $gs = @fsockopen ($game_ip, $game_port, $errno, $errstr, 1); if ( $gs ) $gs = "<font color=green>Online</font>"; else $gs = "<font color=red>Offline</font>"; /////////////////////////// ////////Vent Server /////// /////////////////////////// $ve = @fsockopen ($ventrilo_ip, $ventrilo_port, $errno, $errstr, 1); if ( $ve ) $ve = "<font color=green>Online</font>"; else $ve = "<font color=red>Offline</font>"; ///////////////////////////// ////MySQL Login Server/////// ///////////////////////////// mysql_connect($mysql_host, $mysql_user, $mysql_passwd) or die ("Nem sikerült csatlakozni a MySQL szerverhez!"); mysql_select_db($mysql_db) or die("Nincs ilyen adatbázis: ".$mysql_db); // All Accounts $accounts=mysql_numrows(mysql_query("SELECT * FROM accounts")); // Online Players Num $num=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel=0")); // Online GMs Num $gmnum=mysql_numrows(mysql_query("SELECT * FROM characters WHERE online=1 and accesslevel>0")); // All Alliance Num $alliance=mysql_numrows(mysql_query("SELECT * FROM clan_data WHERE ally_name!=\'\'")); // All Characters $char=mysql_numrows(mysql_query("SELECT * FROM characters WHERE accesslevel=0")); // All GM Characters $gmchar=mysql_numrows(mysql_query("SELECT * FROM characters Where accesslevel > 0")); // All Clan $clan=mysql_numrows(mysql_query("SELECT * FROM clan_data")); $gmnamesql = mysql_query("SELECT char_name FROM characters WHERE accesslevel>=1 AND online=1 ORDER BY char_name ASC"); while ($gmnam = mysql_fetch_object($gmnamesql)) { $gmname .= "<font color=green>$gmnam->char_name</font>, "; } print " <table width='100%' border='0'> <tr><td width='80%'><b>Auth Server:</b></td><td>".$ls."</td></tr> <tr><td width='80%'><b>Bartz Server:</b></td><td>".$gs."</td></tr> <tr><td width='80%'>Accounts:</td><td>".$accounts."</td></tr> <tr><td width='80%'>Online Players:</td><td>".$num."</td></tr> <tr><td width='80%'>Online GM:</td><td>".$gmnum."</td></tr> <tr><td width='80%'>Characters:</td><td>".$char."</td></tr> <tr><td width='80%'>GM Characters:</td><td>".$gmchar."</td></tr> <tr><td width='80%'>Clans:</td><td>".$clan."</td></tr> <tr><td width='80%'>Alliances:</td><td>".$alliance."</td></tr> <tr><td>Online GM: ".$gmname."</td></tr> </table> "; //////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// Created By Mentor www.teamsrv.net //////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////// ?>
  8. I Dont testing... /* * 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 handlers.voicedcommandhandlers; import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * @author SkyLancer * @Edit Mentor */ public class BuyRec implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = {"buyrec"}; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("buyrec")) { if (activeChar.getInventory().getInventoryItemCount(Config.REC_ITEM_ID, 0) >= Config.REC_PRICE) { activeChar.getInventory().destroyItemByItemId("Rec", Config.REC_ITEM_ID, Config.REC_PRICE, activeChar, null); activeChar.setRecomHave(activeChar.getRecomHave() + Config.REC_REWARD); activeChar.sendMessage("You Have Earned 1 Rec."); activeChar.broadcastUserInfo(); } else { activeChar.sendMessage("You don't have enought items"); } } return false; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } }
  9. All npc title editing (1sec) [ EASY ] UPDATE npc SET title = "Your Tittle"; UPDATE npc SET serverSideTitle = "1"; All npc name editing (1sec) [ EASY ] UPDATE npc SET name = "Your Tittle"; UPDATE npc SET serverSideName = "1";
×
×
  • Create New...