Goree Posted October 26, 2010 Author Posted October 26, 2010 Thanks Shilen and +af.MasterDisaster. xAddytzu tell me what's up again? :S
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.
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 .
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.
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
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
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.
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now