Thread: [PI] Starter Dupe Help [PI]

Results 1 to 8 of 8
  1. #1 [PI] Starter Dupe Help [PI] 
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Okay when someone first joins the server this pops up


    Now if you spamm click any of the following options listed above they stack on each other also if you click off onto the map and click on skill's teleport and choose a place to teleport it also dupes the items, how do I fix this?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Mar 2013
    Age
    11
    Posts
    509
    Thanks given
    18
    Thanks received
    30
    Rep Power
    89
    i think you can add this when the option is clicked like in clickingbuttons under the option add this

    Code:
    c.getPA().removeAllWindows();
    if it worked thank me

    also make it so that the player cannot move when they first join the server
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by yourbad View Post
    i think you can add this when the option is clicked like in clickingbuttons under the option add this

    Code:
    c.getPA().removeAllWindows();
    if it worked thank me

    also make it so that the player cannot move when they first join the server
    That starter isn't even added in clicking buttons.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Mar 2013
    Age
    11
    Posts
    509
    Thanks given
    18
    Thanks received
    30
    Rep Power
    89
    ok, so when you click the melee button what happens?
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by yourbad View Post
    ok, so when you click the melee button what happens?
    Gives me items lol
    Reply With Quote  
     

  6. #6  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Create a boolean to check if they've received the starter.

    In player.java; public boolean hasStarter = false;

    Then in your starter code where it gives items, have a check like;

    Code:
    if (!c.hasStarter) {
    //giveitem1
    //giveitem2
    //etc
    c.hasStarter = true; (Important otherwise it'll always be false).
    }
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    Quote Originally Posted by Zivik View Post
    Create a boolean to check if they've received the starter.

    In player.java; public boolean hasStarter = false;

    Then in your starter code where it gives items, have a check like;

    Code:
    if (!c.hasStarter) {
    //giveitem1
    //giveitem2
    //etc
    c.hasStarter = true; (Important otherwise it'll always be false).
    }

    Fixed! thanks
    Reply With Quote  
     

  9. #8  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    This is false

    The reason is it'll always restore to the default (false) when you relog (can be fixed if you'll save it on accountfile).
    How it can be cheated? simply a person relog, use a cheat client to open a dialogue OR cheat engine opening the dialogue.

    So you should mainly save it on the account file & adding a basic system time millis timer.
    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] Starter error help [PI]
    By snow blitz in forum Help
    Replies: 3
    Last Post: 02-05-2012, 07:11 PM
  2. [Pi] Starter error help [PI]
    By snow blitz in forum Help
    Replies: 6
    Last Post: 02-05-2012, 04:06 PM
  3. [PI] Starter interface help [PI]
    By snow blitz in forum Help
    Replies: 4
    Last Post: 02-03-2012, 11:43 AM
  4. [pi] NEWEST DUPE HELP NEEDED
    By reborn-gt in forum Help
    Replies: 0
    Last Post: 09-21-2010, 10:07 PM
  5. [PI] Noted Item Trade dupe help [PI]
    By Integer in forum Help
    Replies: 6
    Last Post: 08-07-2010, 04:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •