Thread: [PI] npc shouting players online

Results 1 to 8 of 8
  1. #1 [PI] npc shouting players online 
    Member
    Join Date
    Oct 2010
    Posts
    142
    Thanks given
    2
    Thanks received
    10
    Rep Power
    0
    Hi guys took me 2 mins though i would release may be cool for some people

    go to npchander.java

    add the beginning you will see imports such as this:
    import server.Server;
    underneath all of them add this:
    import server.model.players.PlayerHandler;
    Then search:
    if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) {
    Underneath all of this:
    if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) {
    npcs[i].walkingHome = false;
    } else if(npcs[i].walkingHome) {
    npcs[i].moveX = GetMove(npcs[i].absX, npcs[i].makeX);
    npcs[i].moveY = GetMove(npcs[i].absY, npcs[i].makeY);
    npcs[i].getNextNPCMovement(i);
    npcs[i].updateRequired = true;
    }
    Add this:
    if (npcs[i].npcType == 212) {
    npcs[i].forceChat(""+PlayerHandler.getPlayerCount()+ " Players Online");

    }
    Now your done with this save and exit
    now go into data>cfg>spawn-config.cfg and add this anywhere:
    spawn = 212 3676 2976 0 0 0 0 0 announcer 2
    change the coords to anywhere u want. Compile and run!

    Enjoy
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member Russ's Avatar
    Join Date
    Jan 2011
    Age
    32
    Posts
    403
    Thanks given
    27
    Thanks received
    17
    Rep Power
    0
    This has been released loads of times, but good i guess for people who dont know how to add it or use search.

    Reply With Quote  
     

  4. #3  
    Member
    Join Date
    Oct 2010
    Posts
    142
    Thanks given
    2
    Thanks received
    10
    Rep Power
    0
    i searched and didnt get anything
    Reply With Quote  
     

  5. #4  
    Donator
    Defiled-X's Avatar
    Join Date
    Jun 2010
    Posts
    1,434
    Thanks given
    52
    Thanks received
    78
    Rep Power
    27
    Quote Originally Posted by iamproto View Post
    i searched and didnt get anything
    Search Harder

    OT: Will help new comers
    Reply With Quote  
     

  6. #5  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,379
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    nothing that hard but good job, some new ppl may need this.
    Attached image
    no external links without affiliate
    Reply With Quote  
     

  7. #6  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Thanks for contributing to the community!
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  8. #7  
    Donator [PI] npc shouting players online Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    28
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    Nice thanks!

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .


    Reply With Quote  
     

  9. #8  
    Banned
    Join Date
    Feb 2011
    Posts
    25
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by iamproto View Post
    Hi guys took me 2 mins though i would release may be cool for some people

    go to npchander.java

    add the beginning you will see imports such as this:

    underneath all of them add this:

    Then search:


    Underneath all of this:


    Add this:


    Now your done with this save and exit
    now go into data>cfg>spawn-config.cfg and add this anywhere:

    change the coords to anywhere u want. Compile and run!

    Enjoy
    I like good work
    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. 60 Players online = 100% CPU!
    By Division in forum Help
    Replies: 42
    Last Post: 06-12-2010, 07:02 AM
  2. Better players online [shows 100 players]
    By Fubergen in forum Snippets
    Replies: 10
    Last Post: 04-05-2010, 02:34 AM
  3. Players online
    By Ayton in forum Application Development
    Replies: 0
    Last Post: 10-10-2009, 07:59 PM
  4. Players Online:
    By Mocro in forum Help
    Replies: 3
    Last Post: 08-16-2009, 01:24 AM
  5. players online
    By ownages in forum Website Development
    Replies: 22
    Last Post: 06-01-2009, 10:15 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
  •