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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...