Thread: [PI] Login

Results 1 to 9 of 9
  1. #1 [PI] Login 
    Banned
    Join Date
    Jul 2013
    Posts
    383
    Thanks given
    108
    Thanks received
    25
    Rep Power
    0
    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.
    Reply With Quote  
     

  2. #2  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    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
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Nov 2011
    Posts
    67
    Thanks given
    1
    Thanks received
    4
    Rep Power
    0
    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.
    Reply With Quote  
     

  4. #4  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    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;
    }
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Jul 2013
    Posts
    383
    Thanks given
    108
    Thanks received
    25
    Rep Power
    0
    Yo guys can't someone give me the currect code?
    Reply With Quote  
     

  6. #6  
    Donator

    Jason's Avatar
    Join Date
    Aug 2009
    Posts
    6,092
    Thanks given
    2,402
    Thanks received
    2,823
    Rep Power
    4550
    Quote Originally Posted by Hakan View Post
    Yo guys can't someone give me the currect code?
    Wtf are you talking about? I gave you the 'current code' and showed you how to use it. Apply it.
    Reply With Quote  
     

  7. Thankful users:


  8. #7  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Quote Originally Posted by Hakan View Post
    Yo guys can't someone give me the currect code?
    Jason just did give you the code plus he explained how to do it. It's up to you to implement something so simple
    Reply With Quote  
     

  9. #8  
    Banned
    Join Date
    Jul 2013
    Posts
    383
    Thanks given
    108
    Thanks received
    25
    Rep Power
    0
    Quote Originally Posted by Jason View 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;
    }
    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
    Reply With Quote  
     

  10. #9  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Quote Originally Posted by Hakan View Post
    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
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Login Box Editting
    By MrNoober in forum Graphics
    Replies: 3
    Last Post: 02-23-2011, 01:38 PM
  2. DSPK PI Login message problem
    By Zerk3r in forum Help
    Replies: 8
    Last Post: 02-12-2011, 11:34 PM
  3. [PI] Login
    By Mark in forum Help
    Replies: 15
    Last Post: 02-08-2011, 10:04 PM
  4. [PI] Login Glitch/Experienced Help
    By Jason in forum Help
    Replies: 3
    Last Post: 12-07-2010, 09:37 PM
  5. [PI] Login Glitch/Experienced Help
    By Jason in forum Help
    Replies: 3
    Last Post: 12-07-2010, 01:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •