Goree Posted October 26, 2010 Author Posted October 26, 2010 Thanks Shilen and +af.MasterDisaster. xAddytzu tell me what's up again? :S Quote
xAddytzu Posted October 26, 2010 Posted October 26, 2010 + if (Config.TELEPORT_QUEENANT) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_CORE) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_ORFEN) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_BAIUM) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_ZAKEN) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_ANTHARAS) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); + + if (Config.TELEPORT_VALAKAS) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Teleport()); Just take a look :) A tip: If "teleport_zaken" is true and "teleport_valakas" is false, what happen ? the class is anyway called. Quote
Goree Posted October 26, 2010 Author Posted October 26, 2010 Just take a look :) A tip: If "teleport_zaken" is true and "teleport_valakas" is false, what happen ? the class is anyway called. I tried it. yes you are right. It doesn't work.. EDIT: I modified it . Check it . Quote
Coyote™ Posted October 27, 2010 Posted October 27, 2010 Still won't work properly. If the character has less adenas than the required amount, he will still be teleported. And also the new method you created is kinda useless. Quote
Kяaσh Posted October 27, 2010 Posted October 27, 2010 # + && CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null # + && CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress()) # + { + activeChar.sendMessage("You are in siege, you can't go to your partner."); + return false; + } Loled :P Quote
Goree Posted October 27, 2010 Author Posted October 27, 2010 Loled :P EDIT: I fixed it sorry Still won't work properly. If the character has less adenas than the required amount, he will still be teleported. And also the new method you created is kinda useless. Fixed. I tested it. Take a look Quote
Coyote™ Posted October 28, 2010 Posted October 28, 2010 EDIT: I fixed it sorry Fixed. I tested it. Take a look Lot better. A few removals and, considering that it was your first try, it will be fine. Quote
Goree Posted October 28, 2010 Author Posted October 28, 2010 Lot better. A few removals and, considering that it was your first try, it will be fine. Thanks I really appreciate it Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.