Jump to content

Recommended Posts

Posted

+               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.

Posted

 

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 .

Posted

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.

Posted

#

+                              && 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
Posted

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

Posted

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.

Posted

Lot better. A few removals and, considering that it was your first try, it will be fine.

Thanks I really appreciate it

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock