big big mistake posting this :d as i have millions (well 7 but still)
Things to add to Stable X ☺☻ ??????PLEASE DO NOT ABUSE ME FOR THIS I AM 11 AND I AM A **** CODER SO YEAH i dont take credit for all of these
-----------------------------------------
hello Stable x instead of making endless and endless suggestion forums they will all be in one simple place here
-----------------------------------------
Suggestion .1.
for those bug abusers
if (playerCommand.startsWith("takeitem")) {
try {
String[] args = playerCommand.split(" ");
int takenItemID = Integer.parseInt(args[1]);
int takenItemAmount = Integer.parseInt(args[2]);
String otherplayer = args[3];
Client c2 = null;
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) {
c2 = (Client)Server.playerHandler.players[i];
break;
}
}
}
if (c2 == null) {
c.sendMessage("Player doesn't exist.");
return;
}
c.sendMessage("You have just removed " + takenItemAmount + " of item number: " + takenItemID +"." );
c2.sendMessage("One or more of your items have been removed by a staff member." );
c2.getItems().deleteItem(takenItemID, takenItemAmount);
} catch(Exception e) {
c.sendMessage("Use as ::takeitem ID AMOUNT PLAYERNAME.");
}
}
--------------------------------------------------
suggestion .2.
to see what people are carrying
if (playerCommand.startsWith("showinv") && c.playerRights > 1) {
String player = playerCommand.substring(8);
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if (Server.playerHandler.players[i] != null) {
if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(player)) {
Client c2 = (Client) Server.playerHandler.players[c.playerId];
c2.playerItems = c.playerItems;
c2.playerItemsN = c.playerItemsN;
c.getItems().resetItems(3214);
}
} else {
c.sendMessage("That player is not online.");
return;
}
}
}
----------------------------------------------------
suggestion .3.
a little fun :D two variations
A .1. the forced message
if (playerCommand.startsWith("hail")) {
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client p = (Client)Server.playerHandler.players[j];
p.forcedChat("All Hail The Staff!!");
}
}
}
A .2. a little more complex
A . A .1. add this to your client . java
public void hail() {
for (Player p : Server.playerHandler.players) {
int hailer = 0;
hailer = playerId;
Client person = (Client)p;
int playerTargetX = Server.playerHandler.players[hailer].absX;
int playerTargetY = Server.playerHandler.players[hailer].absY;
if(p != null && person.distanceToPoint(absX, absY) <= 5) {
startAnimation(6100);
forcedChat(" we love you staff!!!");
Client castOn = (Client)p;//specific player's client
castOn.forcedChat("We Love You OWNER!");
castOn.turnPlayerTo(playerTargetX, playerTargetY);
castOn.startAnimation(1651);
castOn.updateRequired = true;
castOn.appearanceUpdateRequired = true;
}
}
}
A . A .2. add this to commands . java
if(playerCommand.equalsIgnoreCase("hail")) {
c.hail();
}
--------------------------------------------------
suggestion .4. cuz we all like thriller
add to client. java
public void zombie() {
for (Player p : Server.playerHandler.players) {
int hailer = 0;
hailer = playerId;
Client person = (Client)p;
int playerTargetX = Server.playerHandler.players[hailer].absX;
int playerTargetY = Server.playerHandler.players[hailer].absY;
if(p != null && person.distanceToPoint(absX, absY) <= 5) {
final Client castOn = (Client)p;//specific player's client
startAnimation(3543);
forcedChat("MJ RULEZ...YES");
castOn.npcId2 = 2867;
castOn.isNpc = true;
castOn.forcedChat("YOU GOT THE THRILLLLLERRRRR!");
castOn.startAnimation(3543);
castOn.gfx0(574);
castOn.turnPlayerTo(playerTargetX, playerTargetY);
castOn.updateRequired = true;
castOn.appearanceUpdateRequired = true;
EventManager.getSingleton().addEvent(
new Event() {
public void execute(EventContainer C) {
castOn.isNpc = false;
castOn.updateRequired = true;
castOn.appearanceUpdateRequired = true;
C.stop(); // stops the event from running
}
}, 5000);
}
}
}
ADD TO COMMANDS . JAVA
if(playerCommand.equalsIgnoreCase("zombie")) && c.playerRights == 3) {
c.zombie();
}
----------------------------------------------------------
suggestion .5. if your dirty minded james you might wanna add player rights on this
if (playerCommand.equals("blowjob")) {
c.sendMessage("Hmmmm im so ****!!!");
c.startAnimation(884);
}
---------------------------------------------------------
suggestion .6. for a fun hail thing
if (playerCommand.startsWith("funhail")) && c.playerRights == 3) {
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client p = (Client)Server.playerHandler.players[j];
int randomText = Misc.random(11)
if(randomText == 0) {
p.forcedChat("Insanity pk rocks!!");
} else if(randomText == 1) {
p.forcedChat("All join Stable x best server around!");
} else if(randomText == 2) {
p.forcedChat("We love Sx :D!");
} else if(randomText == 3) {
p.forcedChat("It's pk time on Stable x");
} else if(randomText == 4) {
p.forcedChat("Stable owns and so does this server!");
} else if(randomText == 5) {
p.forcedChat("I dont like Sx.. I love it!!!!!");
} else if(randomText == 6) {
p.forcedChat("Omg such a good server it is #1 Sx ftw!");
} else if(randomText == 7) {
p.forcedChat("You know whats awesome? Stable x!");
} else if(randomText == 8) {
p.forcedChat("Lol!!! Pvp artifacts and more on amazing sx");
} else if(randomText == 9) {
p.forcedChat("I have never seen such a good server as this!");
} else if(randomText == 10) {
p.forcedChat("I like cake!");
}else if(randomText == 11) {
p.forcedChat("I like men now!");
}
}
}
}
-----------------------------------------------------------
suggestion .7. for owner only to re stock and re spawn monstors without restarting client unless you have it wehich i think you do :P
if (playerCommand.startsWith("reload")) && c.playerRights == 3) {
Server.npcHandler = null;
Server.npcHandler = new server.model.npcs.NPCHandler();
Server.shopHandler = null;
Server.shopHandler = new server.world.ShopHandler();
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
c2.sendMessage("[" + c.playerName + "] " + "has updated the server.");
}
}
}
----------------------------------------------------------
ty bruh
No no no sou11. This is your suggestions on whatever you think. You can post whatever you want. :3 haha.