|
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:import server.Server;
Then search:import server.model.players.PlayerHandler;
Underneath all of this:if (npcs[i].walkingHome && npcs[i].absX == npcs[i].makeX && npcs[i].absY == npcs[i].makeY) {
Add 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;
}
Now your done with this save and exitif (npcs[i].npcType == 212) {
npcs[i].forceChat(""+PlayerHandler.getPlayerCount()+ " Players Online");
}
now go into data>cfg>spawn-config.cfg and add this anywhere:
change the coords to anywhere u want. Compile and run!spawn = 212 3676 2976 0 0 0 0 0 announcer 2
Enjoy
This has been released loads of times, but good i guess for people who dont know how to add it or use search.
i searched and didnt get anything
nothing that hard but good job, some new ppl may need this.
Thanks for contributing to the community!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |