siegemaster Posted November 5, 2009 Posted November 5, 2009 i8ela na rotisw gt den mporw na ginw hero eno pataw //set_hero ?? me bgazei oti den eiparxei mipos 3erei kaneis poio einai gia na ginw???
0 3xpl0it3R Posted November 5, 2009 Posted November 5, 2009 Afto einai ena apo ta problimata tis l2jarchid .Katebase to revision 1050 einai poli kalo... kapou enas eixa kanei post ta mkapia compiled packs tis l2jarchid.Kane ena search kai 8a ta breis ;)
0 Kяaσh Posted November 5, 2009 Posted November 5, 2009 Afto einai ena apo ta problimata tis l2jarchid .Katebase to revision 1050 einai poli kalo... kapou enas eixa kanei post ta mkapia compiled packs tis l2jarchid.Kane ena search kai 8a ta breis ;) exeis la8os lpn perimene na sto ftiaxw kai na sto doso Edit! phgene edw com.l2jarchid.gameserver.handler.admincommandhandlers ftiaxe ena new arxeio me name AdminHero.java kai bale auto mesa /* * 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.l2jarchid.gameserver.handler.admincommandhandlers; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.l2jarchid.gameserver.GmListTable; import com.l2jarchid.gameserver.handler.IAdminCommandHandler; import com.l2jarchid.gameserver.model.L2Object; import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance; import com.l2jarchid.gameserver.network.serverpackets.SocialAction; /** *L2J-Archid **/ public class AdminHero implements IAdminCommandHandler { private static String[] ADMIN_COMMANDS = { "admin_sethero" }; private final static Log _log = LogFactory.getLog(AdminHero.class.getName()); public boolean useAdminCommand(String command, L2PcInstance activeChar) { if (activeChar == null) return false; if (command.startsWith("admin_sethero")) { L2Object target = activeChar.getTarget(); if (target instanceof L2PcInstance) { L2PcInstance targetPlayer = (L2PcInstance) target; boolean newHero = !targetPlayer.isHero(); if (newHero) { targetPlayer.setHero(true); targetPlayer.sendMessage("You are now a hero."); sendMessages(true, targetPlayer, activeChar, true, true); targetPlayer.broadcastPacket(new SocialAction(targetPlayer.getObjectId(), 16)); targetPlayer.broadcastUserInfo(); } else { targetPlayer.setHero(false); targetPlayer.sendMessage("You are no longer a hero."); sendMessages(false, targetPlayer, activeChar, true, true); targetPlayer.broadcastUserInfo(); } } else { activeChar.sendMessage("Impossible to set a non Player Target as hero."); _log.info("GM: " + activeChar.getName() + " is trying to set a non Player Target as hero."); return false; } } return true; } private void sendMessages(boolean fornewHero, L2PcInstance player, L2PcInstance gm, boolean announce, boolean notifyGmList) { if (fornewHero) { player.sendMessage(gm.getName() + " has granted Hero Status for you!"); gm.sendMessage("You've granted Hero Status for " + player.getName()); if (notifyGmList) GmListTable.broadcastMessageToGMs("Warn: " + gm.getName() + " has set " + player.getName() + " as Hero !"); } else { player.sendMessage(gm.getName() + " has revoked Hero Status from you!"); gm.sendMessage("You've revoked Hero Status from " + player.getName()); if (notifyGmList) GmListTable.broadcastMessageToGMs("Warn: " + gm.getName() + " has removed Hero Status of player" + player.getName()); } } /** * @return */ public String[] getAdminCommandList() { return ADMIN_COMMANDS; } } meta phgene edw com.l2jarchid.gameserver.handler meta sto AdminCommandHandler.java bres auto import com.l2jarchid.gameserver.handler.admincommandhandlers.AdminHelpPage; kai bale auto apo kato import com.l2jarchid.gameserver.handler.admincommandhandlers.AdminHero; meta bres auto [code]registerAdminCommandHandler(new AdminHelpPage()); kai apo kato bale auto registerAdminCommandHandler(new AdminHero()); elpizo na doulepsei[/code]
0 3xpl0it3R Posted November 5, 2009 Posted November 5, 2009 dn einai set_hero einai //sethero dn 3erw an einai prob =/ Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg
0 disast3r Posted November 5, 2009 Posted November 5, 2009 e kanto report sto forum ts > www.l2jarchid.com
0 anemize Posted November 5, 2009 Posted November 5, 2009 Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg OMG AFOY soy lei einai //sethero.. an den doylevi exi kapio prob to pack.. an den iparxi to commant kanto esi !!!disolo men :D
0 Kяaσh Posted November 5, 2009 Posted November 5, 2009 Molis ekana compile to teleuteo revision, patisa //set_hero kai tpt.Patisa //sethero tpt.Den katalabenw ti exei ginei.... kai sto gameserver console lei pws den eiparxi afti i entoli... omfg OMG AFOY soy lei einai //sethero.. an den doylevi exi kapio prob to pack.. an den iparxi to commant kanto esi !!!disolo men :D fae -1 karma gt to xeis kanei to 8ema spam sunexeia timoskoure des pio panw to ftiaxa..
0 anemize Posted November 5, 2009 Posted November 5, 2009 OMG! Den Prolava na do to diko soy pos Logoy internet !!! OMG re Vassili kaneme add msn d-prigipas@hotmail.com ! !!!
0 siegemaster Posted November 5, 2009 Author Posted November 5, 2009 kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt???
0 3xpl0it3R Posted November 5, 2009 Posted November 5, 2009 kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt??? Mia xara einai... mono na ri8miseis ta configs kai tin wra tou sistimatos sou, kai 8a eisai ok.. ;)
0 Kяaσh Posted November 5, 2009 Posted November 5, 2009 kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt??? lol sto 1027 einai prin ginei stable opote to //sethero douleuei..
0 symeon24 Posted November 5, 2009 Posted November 5, 2009 einai kai 1 ali entoli p einai se polous server //hero ..... isos na doulebi kai afto
0 Flash™ Posted November 5, 2009 Posted November 5, 2009 kai kati akoma sto revision 1027 pou exw oi hero bgenoun kanonika exei kana problem 3eretai tpt??? Mia xara einai... mono na ri8miseis ta configs kai tin wra tou sistimatos sou, kai 8a eisai ok.. ;) paidia eleos i versios pou exei to paidi einai poly pali para poly... file kane compile tin new versio tin archid giati tora poia to pack tis l2jarchid den exei custom kai tin version pou exeis esu to //sethero ama to kaneis se ena aplos char meta apo to restart den bgenei..
0 3xpl0it3R Posted November 5, 2009 Posted November 5, 2009 einai kai 1 ali entoli p einai se polous server //hero ..... isos na doulebi kai afto afto den pezei me tpt ! den exw dei se kanena pack to //hero omfg... esi 8a enoeis ///hero opou einai ena fake-hero pou to blepeis mono esi..
Question
siegemaster
i8ela na rotisw gt den mporw na ginw hero eno pataw //set_hero ?? me bgazei oti den eiparxei mipos 3erei kaneis poio einai gia na ginw???
19 answers to this question
Recommended Posts