Then add public int Casket() to playerassistant.java
Or if i'm wrong with that than add the method in playerassistant
|
Basically, i want it so if you use a Casket you have a random chance of items.
I've tried loads of tutorials and i always get the same error in ClickItem.java about it not being able to find Casket() in playerassitant.java
Any help would be appreciated.
Then add public int Casket() to playerassistant.java
Or if i'm wrong with that than add the method in playerassistant
I added both of these to PlayerAssistant.java
andCode:public static int Casket[] = {4151};
Still, same error. :[Code:public int randomCasket() { return Casket[(int) (Math.random()*Casket.length)]; }
You do have to add something to clickitem.java
Else how are you gonna click on the item called 'casket' and receive the reward.
I added the code to playerassistant.java
Then when i did the ClickItem part, it was along the lines of.
Case XXXX:
c.getItems().addItem(c.getPA().randomClue1(), 1);
break;
And it refused to work
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |