Jump to content

Question

Posted

Hello i want to add a restricted item only for clans and clanhalls, i have to modify my UseItem.class file in java, i opened it with eclipse and i cant modify that type of file.

 

I opened it with another editor changed it and added new but it was a bad idea,

 

Can someone can help me how do i modify those files with working java :D

9 answers to this question

Recommended Posts

  • 0
Posted

Hello again, i just edited my java and changed item can be allowed when you have castle, but then a clan dont have castle item stays in the same place and cant take it only with another items. can i make it when u dont have castle item takes out alone on log in ?

  • 0
Posted

You can add a check enterworld.java if player dont have castle destroy this item..

But always is a lot of ways to do same things..

  • 0
Posted (edited)

You can add a check enterworld.java if player dont have castle destroy this item..

But always is a lot of ways to do same things..

 

You will need checks for warehouse,clan wh too in that way because it could be bugged.  Better destroy the item when the clan loses the siege

Edited by Lioy
  • 0
Posted

If you have a proper pack you don't even have to mod java, just add proper condition to the item ...

  • 0
Posted

You will need checks for warehouse,clan wh too in that way because it could be bugged.  Better destroy the item when the clan loses the siege

yeap can be like crowns

  • 0
Posted

makes no sense to me. 

either you want to make a unique clanhall/castle item, the opposite, everybody gets to use it unless they have clanhall/castle. Please decide what do you want to do first.

  • 0
Posted

Since you need for clan and clan halls why you are checking for castle? wtf?

 

just checks in useitem && enterworld....

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
Answer this question...

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