Thread: A little help again.

Results 1 to 4 of 4
  1. #1 A little help again. 
    Registered Member
    Join Date
    Jun 2008
    Posts
    163
    Thanks given
    5
    Thanks received
    0
    Rep Power
    18
    I am trying to add in a system if you kill a NPC you get a point, but not all NPCs give the same amount of "points".
    I know how to make the method I just don"t know where to put it or how to use it.
     

  2. #2  
    Registered Member
    Join Date
    Jun 2008
    Posts
    163
    Thanks given
    5
    Thanks received
    0
    Rep Power
    18
    Bumby
     

  3. #3  
    Banned

    Join Date
    Jan 2007
    Age
    30
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    You need to make a token for like mypoints which would save into the character files. Then in npchandler (I believe) you would do something like this:
    if(npcID==$$$$){
    mypoints +1;
    }

    The token thing

    } else if (token.equals("character-mypoints")) {
    starter = Integer.parseInt(token2);
     

  4. #4  
    Registered Member
    Join Date
    Jun 2008
    Posts
    163
    Thanks given
    5
    Thanks received
    0
    Rep Power
    18
    I knew I had to save it in the character file.
    I might look at some Barrows mini-game tuts and see if they have a method for gaining points by killing things. I will post back If I find anything until then people please, continue to help me.
     


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
  •