Nice..Are u working on full?
|
|
Description: to count and limit castle wars players.
Difficulty: 1.5/10
Assumed Knowledge: copy & paste
Tested Server: unID'eed
Files/Classes Modified: client.java
Procedure:
----------------------------------------------
1. declare these ints in server.java:
2.under packet (case) 132 add:, if you've already added the portals replace them with these!Code:public static int zammyPlayers = 0; public static int saraPlayers = 0;
3. add this command:, replace absX with Xcoords and absY with Ycoords.Code:if(objectID == #### && server.saraPlayers < 20) { // sara enter portal server.saraPlayers += 1; teleportToX = absX; teleportToY = absY; } if(objectID == ###) { // sara leave portal server.saraPlayers -= 1; teleportToX = absX; teleportToY = absY; } if(objectID == #### && server.zammyPlayers < 20) { // zammy enter portal server.zammyPlayers += 1; teleportToX = absX; teleportToY = absY; } if(objectID == ####) { // zammy leave portal server.zammyPlayers -= 1; teleportToX = absX; teleportToY = absY; }
PLEASE POST.Code:if(command.equalsIgnoreCase("checkteams")) { sendMessage("They're are "+server.saraPlayers+" saradomin team members."); sendMessage("They're are "+server.zammyPlayers+" zammorack team members."); }
creds 100% me, post errors!

Nice..Are u working on full?
yes, i'm currently working a 100% real version of castle wars. i will release as soon as its done.
This will still allow you to enter the portal, even if the team is full.
And what about logging out? TYYYYYY
nice but its all wrong you twit....try server.java for the ints not client.java, cause they way you do it...you can log out and back in and the number goes back to 0 lol...
ANd it only goes up when you enter...when some one else enters it stays at 1....but on their screen it goes from 0 up to 1...
WRONG
dude... i said! this is not full cwars... and if you find bugs you can fix, well i suggest you fix it..
kk, ty bulby i fixed it.
i never said it wasn't full...im saying your method IS TOTALLY WRONG AND DOESNT WORK CAUSE YOU ARE STUPID AND DON'T KNOW THAT ANY THING THAT HAPPENS IN CLIENT.JAVA ONLY HAPPENS TO 1 PERSON. Server.java is connected to all players..change an int in that and it will change on all players screens even if they log out it will remain the same!.
Gosh you're stupid.
EDIT: he fixed it lol.
bulby, i was yelling at ryin not you...
| « Making a Weapon Hit Harder | Fixing the Combat Equation / Modding it. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |