Jump to content

[Share]Grand Bosses Commands


Goree

Recommended Posts

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

Link to comment
Share on other sites

 

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 .

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

#

+                              && 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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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