Revail
Members-
Posts
116 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
About Revail
Contact Methods
-
Website URL
http://www.l2bellum.com/index.php
Profile Information
-
Gender
Not Telling
Revail's Achievements
Newbie (1/16)
0
Reputation
-
Hello i try to write this code for l2adrenaline the cracked version but is keep giving me an error on 4th line saying Undeclared identifier "buff" var buff: TL2Buff; begin if not user.buff.ByID(4356) then begin Print ('Buffing...'); Engine.SetTarget (30515); // NPC ID Engine.MoveToTarget; Engine.DlgOpen; Delay (500); Engine.DlgSel (7); //Open buffs Delay (500); Engine.DlgSel(1); Delay (500); Engine.DlgOpen; Delay (500); Engine.DlgSel (6); Delay (5000); Print ('Buffed.'); end; end. can anyone help with this?
-
Its for tower Thnx seems working for now
-
Hello, i wrote a script for my bot to make soe when need's rebuff and turn back to the farm zone. The problem is when character turns to the farm zone, it targets again the (custom) gatekeeper and the mobs, and the character is going down and up all the time Is any solution to stop targeting the gatekeeper when teleports on the farm zone? Here is the code repeat if (GetMe():GotBuff(4356) == false) then SetPause(true); ShowToClient("System", "Need Rebuff!"); Sleep(1000); UseItem(7126); Sleep(500); ShowToClient("System", "Teleporting!"); Sleep(10); moveDistance = 30; MoveTo(83401, 148161, -3405, moveDistance); MoveTo(83420, 148239, -3405, moveDistance); MoveTo(83360, 148303, -3405, moveDistance);TargetNpc("Jimmy", 30515); Talk(); ClickAndWait("npc_268474098_Chat 77", "Macros Mage"); ClickAndWait("npc_268474098_mbuff", "UNKNOWN BUTTON 0"); ClickAndWait("npc_268474098_heal", "Restore"); MoveTo(83235, 148352, -3405, moveDistance); MoveTo(83339, 148304, -3405, moveDistance); MoveTo(83449, 148306, -3405, moveDistance); MoveTo(83530, 148183, -3405, moveDistance); MoveTo(83518, 148088, -3405, moveDistance); TargetNpc("Margaret", 30576); Talk(); ClickAndWait("npc_268474147_Chat 27", "Drop PvP"); ClickAndWait("npc_268474147_goto 10170", "Field of Whispers 2"); MoveTo(83470, 147913, -3405, moveDistance); WaitForTeleport(); MoveTo(75025, 207770, -3072, moveDistance); SetPause(false); end; until false;
-
server is dying is full of bots Admin do something add any antibot system do somethingg!!
-
its 5!!! when will be online? :D
-
Guide Pws Na Perasete Voicedcommandhandler Se Acis!
Revail replied to Revail's topic in Server Development Discussion [Greek]
Ok tha to psa3w..gt skeftomoun na to kanw k sta agglika tsp se euxaristw file :D -
Geia sas paidia... Ton teleutaio kairo pou arxisa na asxoloumai panw sto aCis sto free ida pws dn eixe VoicedCommandHandler k eprepe na to perasw monos mou.. mias k exw dei3ei se polla atoma pws na to perasoun k ti code akrivws na valoun eipa na kanw ena guide gia na iparxei k na to vriskoun osa atoma theloun na valoun.. to VoicedCommandHandler einai ena java file sto opoio kanoume register ta commands pou vazoume sto pack mas(auto paei gia ta newbies pou isws dn 3eroun ti einai) Loipon as arxisoume gia arxi pame sto gameserver.java k kanoume insert ta parakatw import net.sf.l2j.gameserver.handler.ItemHandler; import net.sf.l2j.gameserver.handler.SkillHandler; import net.sf.l2j.gameserver.handler.UserCommandHandler; + import net.sf.l2j.gameserver.handler.VoicedCommandHandler; + import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.idfactory.IdFactory; import net.sf.l2j.gameserver.instancemanager.AuctionManager; import net.sf.l2j.gameserver.instancemanager.BoatManager; ... _log.config("ItemHandler: Loaded " + ItemHandler.getInstance().size() + " handlers."); _log.config("SkillHandler: Loaded " + SkillHandler.getInstance().size() + " handlers."); _log.config("UserCommandHandler: Loaded " + UserCommandHandler.getInstance().size() + " handlers."); + _log.config("VoicedCommandHandler: Loaded " + VoicedCommandHandler.getInstance().size() + " handlers."); if (Config.ALLOW_WEDDING) CoupleManager.getInstance(); Meta pame sto gameserver/handler/chathandlers/ChatAll.java k vazoume ta parakatw Index: ChatAll.java =================================================================== --- ChatAll.java (revision 7) +++ ChatAll.java (revision 8) @@ -1,4 +1,5 @@ /* + /* * 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 @@ -14,7 +15,12 @@ */ package net.sf.l2j.gameserver.handler.chathandlers; +import java.util.StringTokenizer; + +import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IChatHandler; +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.handler.VoicedCommandHandler; import net.sf.l2j.gameserver.model.BlockList; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; @@ -37,15 +43,52 @@ @Override public void handleChat(int type, L2PcInstance activeChar, String params, String text) { - CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); - - for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers()) + boolean vcd_used = false; + if (text.startsWith(".")) { - if (activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar)) - player.sendPacket(cs); + StringTokenizer st = new StringTokenizer(text); + IVoicedCommandHandler vch; + String command = ""; + + if (st.countTokens() > 1) + { + command = st.nextToken().substring(1); + params = text.substring(command.length() + 2); + vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command); + } + else + { + command = text.substring(1); + if (Config.DEBUG) + System.out.println("Command: " + command); + vch = VoicedCommandHandler.getInstance().getVoicedCommandHandler(command); + } + + if (vch != null) + { + vch.useVoicedCommand(command, activeChar, command); + vcd_used = true; + } + else + { + if (Config.DEBUG) + System.out.println("No handler registered for bypass '" + command + "'"); + vcd_used = false; + } } - - activeChar.sendPacket(cs); + + if (!vcd_used) + { + CreatureSay cs = new CreatureSay(activeChar.getObjectId(), type, activeChar.getName(), text); + + for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers()) + { + if (activeChar.isInsideRadius(player, 1250, false, true) && !BlockList.isBlocked(player, activeChar)) + player.sendPacket(cs); + } + + activeChar.sendPacket(cs); + } } /** Meta pame sto gameserver/handler k kanoume new file onomati IVoicedCommandHandler k vazoume ton parakatw kodika /* * 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 net.sf.l2j.gameserver.handler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; public interface IVoicedCommandHandler { /** * this is the worker method that is called when someone uses an admin command. * @param activeChar * @param command * @param target * @return command success */ public boolean useVoicedCommand(String command, L2PcInstance activeChar); public String[] getVoicedCommandList(); } Meta pame pali sto gameserver/handler k kanoume new file me onoma VoicedCommandHandler k vazoume to parakatw kodika /* * 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 net.sf.l2j.gameserver.handler; import gnu.trove.map.hash.TIntObjectHashMap; import java.util.logging.Logger; import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.MakeMeHero; public class VoicedCommandHandler { private static Logger _log = Logger.getLogger(VoicedCommandHandler.class.getName()); private final TIntObjectHashMap<IVoicedCommandHandler> _datatable; public static VoicedCommandHandler getInstance() { return SingletonHolder._instance; } protected VoicedCommandHandler() { _datatable = new TIntObjectHashMap<>(); } public void registerVoicedCommandHandler(IVoicedCommandHandler handler) { String[] ids = handler.getVoicedCommandList(); for (String id : ids) { if (Config.DEBUG) _log.fine("Adding handler for command " + id); _datatable.put(id.hashCode(), handler); } } public IVoicedCommandHandler getVoicedCommandHandler(String voicedCommand) { String command = voicedCommand; if (voicedCommand.indexOf(" ") != -1) command = voicedCommand.substring(0, voicedCommand.indexOf(" ")); if (Config.DEBUG) _log.fine("getting handler for command: " + command + " -> " + (_datatable.get(command.hashCode()) != null)); return _datatable.get(command.hashCode()); } /** * @return */ public int size() { return _datatable.size(); } private static class SingletonHolder { protected static final VoicedCommandHandler _instance = new VoicedCommandHandler(); } } K telos kanoume ena neo fakelo sto handler ston opoio tha vazoume ta commands mas.. P.S. an sas vgazei error sto ChatAll.java k sigkekrimena edw for (L2PcInstance player : activeChar.getKnownList().getKnownPlayers()) aplws peraste sto gameserver/mode/actor/knowlist/CharKnowList.java auto edw public final Collection<L2PcInstance> getKnownPlayers() { return _knownPlayers.values(); } Dn 3erw an xrisimopoiw ta swsta prefix k an eimai sto swsto section gia oti lathos iparxei diorthoste me k gia oti problem kante post k tha sas voithisw:)
-
[GR]Απίστευτο: Δείτε ποιος έχει το domain για το Nerit.gr
Revail replied to MixMasteR's topic in Tech/World News
respect apla :P -
http://maxcheaters.com/forum/index.php?topic=274960.0 lock it
-
http://maxcheaters.com/forum/index.php?topic=275152.0 lock it
-
Gracia Final Moobs & Drop
Revail replied to DonLoRenTzZo's question in Request Server Development Help [L2J]
you can modifie them from the database but and from the game (pressing shift and target the mob) too i think -
http://maxcheaters.com/forum/index.php?topic=274744.0 lock it
-
nice idea and share dude :)
-
Low Rate Interlude x75
Revail replied to Mr.Reese's question in Request Server Development Help [Greek]
dokimase to acis free source.. pistevw pws einai mia xara source aplws thelei mia x douleia na kaneis...