Thread: PI Help

Results 1 to 8 of 8
  1. #1 PI Help 
    Banned
    Join Date
    Sep 2012
    Posts
    69
    Thanks given
    3
    Thanks received
    3
    Rep Power
    0
    All I need to know is how to make the server check if the player has already received an item from a npc, so they can't keep receiving the item over and over.
    Reply With Quote  
     

  2. #2  
    Member

    Join Date
    Jul 2011
    Posts
    164
    Thanks given
    12
    Thanks received
    24
    Rep Power
    0
    make it save whether he has gotten the item in the character file


    "He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever."
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2011
    Posts
    189
    Thanks given
    6
    Thanks received
    29
    Rep Power
    52
    Maybe using a boolean in the method would be easier....What does the selection of code look like?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Sep 2012
    Posts
    69
    Thanks given
    3
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by 3959 View Post
    Maybe using a boolean in the method would be easier....What does the selection of code look like?
    Haven't written it yet, I just need an idea or an example of how I would go about doing this.
    Say i send a dialogue through a npc, it gives an item to a player, i need an example of how to make the server check and see if the player has got that item from that npc.
    Reply With Quote  
     

  5. #5  
    Member

    Join Date
    Jul 2011
    Posts
    164
    Thanks given
    12
    Thanks received
    24
    Rep Power
    0
    if you use a boolean then when he restarts the server said player can get the item again
    having it saved in a char file will get them able to receive the item only once


    "He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever."
    Reply With Quote  
     

  6. #6  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Copy the ban list (::ban) in commands.java, make it link to a new txt though.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  7. #7  
    Registered Member Kristjan's Avatar
    Join Date
    Apr 2009
    Posts
    1,578
    Thanks given
    709
    Thanks received
    189
    Rep Power
    588
    Quote Originally Posted by Ninth Legion View Post
    Copy the ban list (::ban) in commands.java, make it link to a new txt though.

    God sake... There's much easier way.
    Just make an boolean and make it save to char files, pretty easy.
    Example: public boolean recievedItem = false; set it to false by default.
    And then rest should be easy...
    Spoiler for Signature:
    Previously known as: 508gu
    Quote Originally Posted by SamSoft View Post
    Vouch for Korra Legit, First pin Sold So now the 9m is off the table.
    Quote Originally Posted by Zoltz View Post
    vouch, quick trade very smooth will trade w/ again.
    Quote Originally Posted by Bundy View Post
    Very Legit Seller, Bought 170k Already, Still Buying More Of Him, Cheap Prices!
    Quote Originally Posted by Bundy View Post
    Vouch, Very Good Guy, Purchased Again !
    Quote Originally Posted by eduber1 View Post
    vouch service went fast and smoothly
    Quote Originally Posted by Jinrake View Post
    vouch bru
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Sep 2012
    Posts
    69
    Thanks given
    3
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by Korra View Post
    God sake... There's much easier way.
    Just make an boolean and make it save to char files, pretty easy.
    Example: public boolean recievedItem = false; set it to false by default.
    And then rest should be easy...
    All I needed, thanks!
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •