-
Posts
2,656 -
Joined
-
Last visited
-
Days Won
26 -
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by An4rchy
-
[Help]Java Code Error
An4rchy replied to TsIpIzTiK®'s question in Request Server Development Help [L2J]
loled? man just import FastList. Don't know how? If you have eclipse, quick fix will do it for you, but if not, add after this: import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage; , this: import net.sf.l2j.util.L2FastList; -
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
bump -
Source aCis - another CRAPPY interlude server
An4rchy replied to Tryskell's topic in Server Shares & Files [L2J]
but is tryskell so excited about it, that he/she don't even login on mxc or his/her forum? -
hmm.... anyway, i dislike enchant system. btw is it hosted or "Home pc for some time, we promise after 3-4 days no lags because deticated bla bla bla"?
-
[help]ena l2j svn
An4rchy replied to l22expert's question in Request Server Development Help [Greek]
xaxaaxaxxa. file s sinistw na diabaseis guide gia compile prota, kai meta psakse gia svn :P -
[Share Interlude] Mechanic Weapon
An4rchy replied to byorion's topic in Client Development Discussion
100% /fake. anyway thanks -
1st of all you didn't told me anything and second, the help topic i made has nothing to do with this share. i already said i will make configs + flood protectors for it later, i don't have time now didn't c/p anything
-
[gr]panic, mporeis na m dikseis to fix gia to attacker tou dragonhunter?? :) an dn mporeis olo mia dio grammes(basikes omos oxi kaina i {) . filika panta[/gr]
-
Hi guys, i created a .blessedsoe command, that will teleport the user to the nearest town. Can't be used: - During olympiad. - While having karma. - While is flagged. - While is dead. - While is in jail. - While is in duel. - While is casting. - During festival. - While observing. NOTE!: All restrictions are dissabled for gm players! Here: Index: java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/blessedsoe.java =================================================================== --- java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/blessedsoe.java (revision 0) +++ java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/blessedsoe.java (revision 0) @@ -0,0 +1,89 @@ +/* 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 net.sf.l2j.gameserver.handler.voicedcommandhandlers; + +import net.sf.l2j.gameserver.datatables.MapRegionTable; +import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; + +/** + * + * @author ~OlyMpuS~ + */ +public class blessedsoe implements IVoicedCommandHandler +{ + private static final String[] VOICED_COMMANDS = { "blessedsoe" }; + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) + { + if (command.startsWith("blessedsoe")) + { + if (activeChar.isAlikeDead() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are dead!"); + return false; + } + else if (activeChar.isInJail() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are in jail!"); + return false; + } + else if (activeChar.getPvpFlag() > 0 && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are flagged!"); + return false; + } + else if (activeChar.isInOlympiadMode() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are in Olympiad Mode!"); + return false; + } + else if (activeChar.isInDuel() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are in duel!"); + return false; + } + else if (activeChar.inObserverMode() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are observing!"); + return false; + } + else if (activeChar.getKarma() > 0 && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you have karma!"); + return false; + } + else if (activeChar.isCastingNow() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are casting!"); + return false; + } + else if (activeChar.isFestivalParticipant() && !activeChar.isGM()) + { + activeChar.sendMessage("You can't escape while you are in festival!"); + return false; + } + activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town); + activeChar.sendMessage("You have been teleported to the nearest village!"); + } + return true; + } + public String[] getVoicedCommandList() + { + return VOICED_COMMANDS; + } +} Index: java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java =================================================================== --- java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java (revision 39) +++ java/net/sf/l2j/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -46,6 +45,9 @@ if(Config.ALLOW_WEDDING) registerVoicedCommandHandler(new Wedding()); + + registerVoicedCommandHandler(new blessedsoe()); } public void registerVoicedCommandHandler(IVoicedCommandHandler handler) Credits: Me(it wasn't something really difficult to do, but i hope it will be useful for someone). Coded on: l2jaCis(rev 39). Tested: Yes. PS: Everything is without configs, i will add configs later today.
-
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
hmm w8 going to try this... and i tell you again. sorry i didn't see your first post :P EDIT: if (actualCommand.equalsIgnoreCase("teleport")) { int idx,idy,idz; if (name.equalsIgnoreCase("Giran")) { idx = 83400; idy = 147943; idz = -3404; } else if (name.equalsIgnoreCase("Aden")) { idx = 146331; idy = 25762; idz = -2018; } else { idx=0; idy=0; idz=0; } String val = command.substring(17); st = new StringTokenizer(val); if (st.countTokens() == 1) { String names = st.nextToken(); if(name != null) { String num = st.nextToken(); player.teleToLocation(idx, idy, idz, true); } } } here is my bypass. i tested it and it doesn't work. maybe i have to add sth else too in it? i added this after: if (10 >= minPrivilegeLevel) // NOTE: Replace 10 with privilege level of player doTeleport(player, whereTo); else player.sendMessage("You don't have the sufficient access level to teleport there."); return; } } -
l2jteon? haha. so what did you add on it? :):)
-
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
bump -
L2Java - Faction WIPE TODAY 6PM!!! LEFT ONLY SOME HOURS!!!
An4rchy replied to Dreigons's topic in Private Servers
so? ok i add i trader with scrolls, only donators can take those scrolls, and new players that don't want to donate, farm for something that donators are interested in, for example lifestones, and just trade them for scrolls. Not everything is used in the way it's created to be used ;) -
already shared. is it so difficult to make 1 config? search before post.
-
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
pff no. if you can understand, this _goto 1111 is a method in L2TeleporterInstance(if i am right) file. i have created a new method and i want to use it instead of _goto, for example: <button value="To Town" action="bypass -h npc_%objectId%_OLYMPUS" width=150 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"> -
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
no it has nothing to do with teletolocation, it's a completely different thing. and i want to have the html on 'soft' mode not hard coded :P so users will be able to edit that... -
don't really think this will help him. 1st you are in the wrong section. 2nd give more details, what project are you using, client etc... 3rd use [gr][/gr] tags when you speak greek
-
can you just take a look at this section? he spams every single post, and he doesn't even know what they are about. he just c/p another guys question with a bit of modify LOL
-
[Help]How to use a method, via html.
An4rchy replied to An4rchy's question in Request Server Development Help [L2J]
bump. sorry for making another bump today, i just modified the whole post, i solved the previous problem, and since it's about the same thing, i decided not to make a new post... -
[Share] Source TheAbyss (Freya)
An4rchy replied to scripersan's topic in Server Shares & Files [L2J]
post scan here. :S. anyway i will download it to test... since i am about to format my pc, i am not scared :D thanks for share.. -
hmm that's difficult thing to say.... if you are working on existing project... If you really have this in your mind, then you should hire proffesional devs and start from 0, new pack. Anyway, for a semi good server, l2jfrozen is a nice option...
-
OMG. i just had the craziest idea :D. add a custom potion, red label, farmable only from rb, which for 2 hours will increase 2k pdef and mdef. gl i will join.
-
good spam. lol. you don't even know what this is. stop spamming all over this section :S
-
are you fail spammer? link is dead
-
fail other features are nice. gl
