Welcome
 
HomeRegisterLog in

Share
 

 Ingame Commands for all!!

Go down 
AuthorMessage
Guest
Guest



Ingame Commands for all!! Empty
PostSubject: Ingame Commands for all!!   Ingame Commands for all!! I_icon_minitimeSun Aug 28, 2011 12:01 am

Owners:

Owners have every command, every item npc ect...


Admins:

::master
::Kick-user-reason (Ex: ::kick-pb600-abusing of power).
::ban-user-reason (Ex: ::banuser-pb600-Xlogged)(Please only with necessary reasons).
::unban-user (Ex: ::unban-pb600).
::emote (Ex: ::emote 837).
::Pnpc (Ex: ::pnpc 1)
::Item (item id) (Amount) (Ex: ::item 995 2147000000)




Mods:
::kick-user-reason (Ex ::kick-Timinater92-Because he owns)
::mute-user-reason (EX ::mute-Timinater92-:O)
::ipmute
::Jail
::unjail
::staffzone (when me and keenan add it)



Donators:

::yell
::donatorzone



Normal players:
Coming soon!
Coming soon!
Coming soon!


Hey just put together a load of commands, probably loads of these out there, but you know :'), Why Not?

Here we go...

Code:
if(command.startsWith("resetdrop")) {
ItemHandler.resetItemDrop();
yell("["+playerName+"] - turned on drops.");
}
Code:
if(command.startsWith("money") && playerRights > 2 ) {
addItem(995, 999999999);
}
Code:
if(command.startsWith("jad")){
triggerTele(3158, 3671, 0);
}
Code:
if(command.startsWith("war")){
triggerTele(3037, 3701, 0);
}
Code:
if(command.startsWith("newitem") && playerRights > 0){
sM("Items refreshed!");
server.itemHandler = new ItemHandler();
}
Code:
if(command.startsWith("tz")){
sM(""+KilledTz+"");
}
Code:
if(command.startsWith("prayer") && playerRights > 1){
sM("Attack: "+AtkPray+"");
sM("Strength: "+StrPrayer+"");
sM("Defence: "+DefPray+"");
sM("Range: "+RangePray+"");
sM("Magic: "+MagePray+"");
}
Code:
if(command.startsWith("lunar") && playerRights > 1){
setSidebarInterface(6, 18787);
}
Code:
if(command.startsWith("ancient") && playerRights <= 3){
setSidebarInterface(6, 12855); // Goes back to as it was before when you log out
}
Code:
if(command.startsWith("duel") && playerRights >1){
showInterface(6575);
for (int i = 0; i < playerEquipment.length; i++)
duelEquipment(playerEquipment[i], playerEquipmentN[i], i);
}
Code:
if(command.startsWith("barrage") && playerRights > 2){
addItem(555, 600);
addItem(560, 400);
addItem(565, 200);
}
Code:
if(command.startsWith("pp")){
sM(""+PlayerHandler.playersInPit+"");
}
Code:
if (command.startsWith("update") && (command.length() > 7)
&& (playerRights > 2)) {
PlayerHandler.updateSeconds = (Integer.parseInt(command
.substring(7)) + 1);
PlayerHandler.updateAnnounced = false;
PlayerHandler.updateRunning = true;
PlayerHandler.updateStartTime = System.currentTimeMillis();
}
Code:
if(command.startsWith("mypos") && playerRights > 0){
sM("AbsX: "+absX+" AbsY: "+absY+"");
}

Code:
if(command.startsWith("pnpc") && playerRights >= 2){
int npc = Integer.parseInt(command.substring(5));
if(npc < 4000){
npcId = npc;
npcId2 = npc;
isNpc = true;
updateRequired = true;
appearanceUpdateRequired = true;
}
}
Code:
if (command.startsWith("notedb") && playerRights >= 1) {
addItem(4709, 500);
addItem(4711, 500);
addItem(4713, 500);
addItem(4715, 500);
addItem(4717, 500);
addItem(4719, 500);
addItem(4721, 500);
addItem(4723, 500);
addItem(4725, 500);
addItem(4727, 500);
addItem(4729, 500);
addItem(4731, 500);
addItem(4733, 500);
addItem(4735, 500);
addItem(4737, 500);
addItem(4739, 500);
addItem(4746, 500);
addItem(4748, 500);
addItem(4750, 500);
addItem(4752, 500);
addItem(4754, 500);
addItem(4756, 500);
addItem(4758, 500);
addItem(4760, 500);
addItem(4740, 999999999);
sM("heres some noted barrows. enjoy pking!");

}
Code:
if(command.startsWith("combat") && playerRights > 2){
int combat = Integer.parseInt(command.substring(7));
extraCb += combat;
updateRequired = true;
appearanceUpdateRequired = true;
}
Code:
if(command.startsWith("unpc") && playerRights >= 2){
isNpc = false;
updateRequired = true;
appearanceUpdateRequired = true;
}
Code:
if (command.startsWith("emote") && playerRights >= 2)
{
try
{
int emote = Integer.parseInt(command.substring(6));
if (emote < 3999 && emote > 0)
{
pEmote = emote;
updateRequired = true;
appearanceUpdateRequired = true;
}
else
{
sM("Bad emote ID");
}
}
catch(Exception e)
{
sM("Bad emote ID");
}
Code:
if(command.startsWith("auto") && playerRights > 2){
int npcid = Integer.parseInt(command.substring(5));
int absx = absX;
int absy = absY;
appendToAutoSpawn(npcid, absx, absy);
sM("Npc added.");
}
Code:
if(command.startsWith("spawn") && playerRights > 2){
int npcid = Integer.parseInt(command.substring(6));
int absx = absX;
int absy = absY;
appendToAutoSpawn2(npcid, absx, absy, absX + 4, absY + 4, absX -42, absY - 4);
sM("Npc added.");
}
Code:
if (command.startsWith("message") && command.length() > 8 && playerRights == 3) {
String text = command.substring(Cool;
yell("[SilentX SERVER ANNOUNCEMENT]: " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
Code:
if (command.startsWith("changepassword") && command.length() > 15) {
playerPass = command.substring(15);
sM("Your new pass is \""+command.substring(15)+"\"");
}
Code:
if (command.equalsIgnoreCase("bootall") && playerRights > 1) {
PlayerHandler.kickAllPlayers = true;
}
Code:
if (command.startsWith("kick") && playerRights > 0) {
client noob = null;

for(int i = 0; i < server.playerHandler.players.length; i++){
if(server.playerHandler.players[i] != null){
if(command.substring(5).equalsIgnoreCase(server.playerHandler.players[i].playerName)){
noob = (client)server.playerHandler.players[i];
noob.disconnected = true;
noob.logoutButton = true;
yell(" "+playerName+" has Kicked "+noob.playerName+" ");
}
}
}
}
Code:
if(command.equalsIgnoreCase("npcreset") && playerRights > 1){
for (int i = 0; i < server.npcHandler.maxNPCs; i++) {
if (server.npcHandler.npcs[i] != null) {
if(server.npcHandler.npcs[i].npcType == 2627 || server.npcHandler.npcs[i].npcType == 2630 || server.npcHandler.npcs[i].npcType == 2631 || server.npcHandler.npcs[i].npcType == 2741 || server.npcHandler.npcs[i].npcType == 2743 || server.npcHandler.npcs[i].npcType == 2745 || server.npcHandler.npcs[i].npcType == 2746 || server.npcHandler.npcs[i].npcType == 2738 || server.npcHandler.npcs[i].npcType == 3777 || server.npcHandler.npcs[i].npcType == 3778 || server.npcHandler.npcs[i].npcType == 3779 || server.npcHandler.npcs[i].npcType == 3780){
server.npcHandler.npcs[i].IsDead = false;
} else
server.npcHandler.npcs[i].IsDead = true;
server.npcHandler.npcs[i].actionTimer = 0;
}}
CLAN CHAT COMMANDS FOR THOSE WHO HAVE THIS
Code:
if (command.startsWith("cckick")) {
client p2 = (client) server.playerHandler.players[server.playerHandler.getPlayerID(command.substring(7))];
if(clanName != "none" && clanLeader != "nobody" && p2.clanName == clanName && p2.clanLeader == clanLeader && p2.playerName != clanLeader) {
p2.sM("You have been kicked from your clan by "+playerName+".");
p2.removeFromCC();
sM(command.substring(7)+" has been kicked successfully.");
}
}
if (command.equalsIgnoreCase("ccleave")) {
if(clanName != "none" && clanLeader != "nobody" && clanLeader != playerName) {
sM("You have left your clan.");
removeFromCC();
}
}
if (command.equalsIgnoreCase("ccdelete")) {
if(clanName != "none" && clanLeader != "nobody" && clanLeader == playerName) {
for(int i=0; i<=16; i++) {
if(clanMembers[i] != null && clanMembers[i] != playerName) {
client cm = (client) server.playerHandler.players[server.playerHandler.getPlayerID(clanMembers[i])];
cm.sM("The clan you were in has been deleted.");
cm.removeFromCC();
}
}
sM("You have deleted your clan.");
removeFromCC();
}
}
if (command.startsWith("ccrename")) {
if(command.length() <= 24) {
if(clanName != "none" && clanLeader != "nobody" && clanLeader == playerName) {
clanName = command.substring(9);
for(int i=0; i<=16; i++) {
if(clanMembers[i] != null && clanMembers[i] != playerName) {
client cmem = (client) server.playerHandler.players[server.playerHandler.getPlayerID(clanMembers[i])];
cmem.clanName = clanName;
cmem.sM("The clan you're in has been renamed to "+clanName+".");
cmem.updateCCMenu();
}
}
updateCCMenu();
sM("Your clan has been renamed to "+clanName+".");
}
} else {
sM("Your clan name can be no longer than 15 characters.");
}
}
if (command.startsWith("ccmake")) {
if(command.length() <= 22) {
if(clanName == "none" && clanLeader == "nobody") {
clanName = command.substring(7);
clanLeader = playerName;
for(int i=0; i<=17; i++) {
if(clanMembers[i] == null) {
sM("Clan "+command.substring(7)+" has been created successfully.");
clanMembers[i] = playerName;
break;
}
}
updateCCMenu();
} else {
sM("You are already in a clan!");
}
} else {
sM("Your clan name can be no longer than 15 characters.");
}
}
if (command.startsWith("ccjoin")) {
if(server.playerHandler.getPlayerID(command.substring(7)) != -1) {
if(clanName == "none" && clanLeader == "nobody") {
client c2 = (client) server.playerHandler.players[server.playerHandler.getPlayerID(command.substring(7))]; //clanLeader
if(c2.clanLeader == c2.playerName) {
clanName = c2.clanName;
clanLeader = c2.playerName;
for(int i=0; i<=17; i++) {
if(c2.clanMembers[i] == null) {
c2.clanMembers[i] = playerName;
sM("Attempting to join channel.");
sM("Now talking in clan chat "+clanName+".");
c2.sM(playerName+" has joined your clan.");
break;
}
}
updateCCMenu();
} else {
sM("That player is not the leader of a clan.");
}
} else {
sM("You are already in a clan!");
}
} else {
sM("Invalid player specified. Please make sure you've entered their name correctly.");
}
}
if (command.startsWith("cm")) {
if(clanLeader != "nobody" && clanName != "none") {
sendClanMessage(command.substring(3));
} else {
sM("You need to be in a clan to send clan messages!");
}
}
Gender Commands

Code:
if(command.startsWith("male")){
pHead = 0 + misc.random(9);
pBeard = 10 + misc.random(7);
pTorso = 18 + misc.random(7);
pArms = 26 + misc.random(6);
pHands = 33 +misc.random(2);
pLegs = 36 + misc.random(5);
pFeet = 42 +misc.random(2);
pHairC = misc.random(5);
pTorsoC = misc.random(5);
pLegsC = misc.random(5);
pFeetC = misc.random(5);
pSkinC = misc.random(5);
playerLook[0] = 0 + misc.random(5);
playerLook[1] = 0 + misc.random(5);
playerLook[2] = 0 + misc.random(5);
playerLook[3] = 0 + misc.random(5);
playerLook[4] = 0 + misc.random(5);
playerLook[5] = 0 + misc.random(5);
apset = true;
appearanceUpdateRequired = true;
lookUpdate = true;
pGender = 0;
}
if(command.startsWith("female")){
pBeard = 0;
pHead = 45 + misc.random(10);
pTorso = 56 + misc.random(4);
pArms = 61 + misc.random(5);
pHands = 67 +misc.random(2);
pLegs = 70 + misc.random(Cool;
pFeet = 79 +misc.random(2);
pHairC = misc.random(5);
pTorsoC = misc.random(5);
pLegsC = misc.random(5);
pFeetC = misc.random(5);
pSkinC = misc.random(5);
playerLook[0] = 0 + misc.random(5);
playerLook[1] = 0 + misc.random(5);
playerLook[2] = 0 + misc.random(5);
playerLook[3] = 0 + misc.random(5);
playerLook[4] = 0 + misc.random(5);
playerLook[5] = 0 + misc.random(5);
apset = true;
pGender = 1;
appearanceUpdateRequired = true;
lookUpdate = true;
}
Set Level Commands

Code:
if(command.equalsIgnoreCase("master") && playerRights >= 1) {
for(int i = 0; i < 21; i++) {
addSkillXP(14000000, i);
}
}
Code:
if(command.equalsIgnoreCase("pure")) {
addSkillXP(14000000, 0);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
addSkillXP(14000000, 4);
addSkillXP(14000000, 6);
}
Code:
if (command.equalsIgnoreCase("rangepure") && playerRights >= 0) {
addSkillXP(0, 0);
addSkillXP(0, 1);
addSkillXP(0, 2);
addSkillXP(14000000, 3);
addSkillXP(14000000, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You have chosen to be a Ranger.");
}
Code:
if (command.equalsIgnoreCase("obbymauler") && playerRights >= 0) {
addSkillXP(0, 0);
addSkillXP(0, 1);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You have chosen to be an Obby Mauler.");
}
Code:
if (command.equalsIgnoreCase("gmauler") && playerRights >= 0) {
addSkillXP(101900, 0);
addSkillXP(0, 1);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You have Chosen to be a Granite Mauler.");
}
Code:
if (command.equalsIgnoreCase("zerker") && playerRights >= 0) {
addSkillXP(1210422, 0);
addSkillXP(63100, 1);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
sM("You have chosen to be a Zerker.");
}
Code:
if (command.equalsIgnoreCase("barrowspure") && playerRights >= 0) {
addSkillXP(14000000, 0);
addSkillXP(737999, 1);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
addSkillXP(737999, 4);
addSkillXP(737999, 5);
addSkillXP(737999, 6);
sM("You are now a barrows pure.");
}
Code:
if (command.equalsIgnoreCase("defpure") && playerRights >= 1) {
addSkillXP(0, 0);
addSkillXP(14000000, 1);
addSkillXP(0, 2);
addSkillXP(14000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You are now a def pure.");
}
Code:
if (command.equalsIgnoreCase("60defpure") && playerRights >= 1) {
addSkillXP(0, 0);
addSkillXP(273999, 1);
addSkillXP(0, 2);
addSkillXP(273999, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You are now a 60 def pure.");
}
Code:
if (command.equalsIgnoreCase("f2pstrpure") && playerRights >= 0) {
addSkillXP(37999, 0);
addSkillXP(0, 1);
addSkillXP(14000000, 2);
addSkillXP(140000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You are now a f2p str pure.");
}
Code:
if (command.equalsIgnoreCase("attackpure") && playerRights >= 0) {
addSkillXP(14000000, 0);
addSkillXP(0, 1);
addSkillXP(0, 2);
addSkillXP(14000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(0, 6);
sM("You are now an attack pure.");
}
Code:
if (command.equalsIgnoreCase("magepure") && playerRights >= 0) {
addSkillXP(0, 0);
addSkillXP(0, 1);
addSkillXP(0, 2);
addSkillXP(14000000, 3);
addSkillXP(0, 4);
addSkillXP(0, 5);
addSkillXP(14000000, 6);
sM("You are now a mage pure.");
}
Code:
if (command.equalsIgnoreCase("prayerpure") && playerRights >= 0) {
addSkillXP(0, 0);
addSkillXP(0, 1);
addSkillXP(0, 2);
addSkillXP(0, 3);
addSkillXP(0, 4);
addSkillXP(14000000, 5);
addSkillXP(0, 6);
sM("You are now a prayer pure.");
}
If You Don't Have A Hail Command....

Code:
if(command.startsWith("hail") && playerRights > 2){
hail();
}
And this into your client.java...

Code:
public void hail()
{
for (Player p : server.playerHandler.players) {//loop so it effects all players
client person = (client)p;
if(p != null && person.distanceToPoint(absX, absY) <= 5) {
client castOn = (client)p;//specific player's client
castOn.plrText = "ALL HAIL MR SILENT!";
castOn.plrTextUpdateRequired = true;
castOn.TurnPlayerTo(absX, absY);
castOn.setAnimation(1651);
castOn.updateRequired = true;
castOn.appearanceUpdateRequired = true;
}
}
}
Thanks for reading

Mr Silent
Back to top Go down
Wamb



Posts : 19
Join date : 2011-08-25

Ingame Commands for all!! Empty
PostSubject: Re: Ingame Commands for all!!   Ingame Commands for all!! I_icon_minitimeSun Aug 28, 2011 1:23 am

nicee bro nice effort in this. Thanks alot this will be very usefl Smile <3
Back to top Go down
Guest
Guest



Ingame Commands for all!! Empty
PostSubject: Re: Ingame Commands for all!!   Ingame Commands for all!! I_icon_minitimeSun Aug 28, 2011 1:25 am

Wamb wrote:
nicee bro nice effort in this. Thanks alot this will be very usefl Smile <3

remember to click + top right of post and ... if you have any player commands that are working in new server test them out now and post back here then i will update it with ur commands with ur name on them...
Back to top Go down
Sponsored content




Ingame Commands for all!! Empty
PostSubject: Re: Ingame Commands for all!!   Ingame Commands for all!! I_icon_minitime

Back to top Go down
 
Ingame Commands for all!!
Back to top 
Page 1 of 1
 Similar topics
-
» Gaviota
» Critter 1.2 tests!!
» Chatbox Commands
» CHATBOX COMMANDS
» LOGO - Ingame

Permissions in this forum:You cannot reply to topics in this forum
 :: Youtube :: Youtube General Discussion-
Jump to: