Honestly was just about to post a thread similar to this I will look into this for you. It may be in your login method not exactly sure
|
If i login, i start with defence attack, ( Block ):
My question is how i make it when i login to start with attack ( Punch ):
Will rep+
Wil Thank Button.
It's something to do with saving the characters files when they logout.
Right now, the attack styles don't save on when a player logs out... the fix will be adding the saves.
I want to know how to save "run" and "auto retaliate" so if someone works this out, please post.
You would need to locate the initialize() method in your Client class, or class that extends Player or Player class itself if the class isn't extended and update the variable 'fightMode'.
Code:void initialize() { //other stuff this.fightMode = 0; }
Yo guys can't someone give me the currect code?
The problem is i don't understood any word you said, player class / client class, and this method u sent i got this already in my client class, please im not good english, if you can explain for example:
Go to client.java
Search: @!#@#@
Under it add: @#@#$#@
now replace this: $$ with this: !!
That's how i understand, I hope you help me once again with explaining, Thanks Jason.
Punch ActionButton: 22230
Block ActionButton: 22228
Basically hes saying that go to Client.java, find public void initialize() and place that code in there....
The other stuff in his sentence basically means that any class that extends the player class, basically obtains all the methods ect from the player class, making it a viable class to add the code in (if it handles logging in) ^.^
+Hakan, no one really want to spoonfeed you the code all the time >.>, he gave you what you needed to know. I mean, you see void intitialize() and I'd imagine you'd automatically think Client.java, especially with him directing you towards client.java
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |