You are viewing our Forum Archives. To view or take place in current topics click here.
How do i add commands?
Posted:
How do i add commands?Posted:
Status: Offline
Joined: Jul 23, 201014Year Member
Posts: 532
Reputation Power: 21
hello, im trying to make my own private server and it doesnt have some commands so im wodering how to add them
::master
::pickup
::train
::home
::pure
::master
::pickup
::train
::home
::pure
#2. Posted:
Status: Offline
Joined: Mar 02, 201113Year Member
Posts: 19
Reputation Power: 1
#3. Posted:
Status: Offline
Joined: Aug 26, 201014Year Member
Posts: 2,527
Reputation Power: 114
Status: Offline
Joined: Aug 26, 201014Year Member
Posts: 2,527
Reputation Power: 114
best to look on the moparscape forums but i do not know alot about these since i quit rsps and started scripting san andreas multiplayer servers
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Oct 26, 201013Year Member
Posts: 425
Reputation Power: 27
Status: Offline
Joined: Oct 26, 201013Year Member
Posts: 425
Reputation Power: 27
#5. Posted:
Status: Offline
Joined: Jan 14, 201113Year Member
Posts: 1,990
Reputation Power: 209
Status: Offline
Joined: Jan 14, 201113Year Member
Posts: 1,990
Reputation Power: 209
if(command.equalsIgnoreCase("master") && playerRights >= 2) {
for(int i = 0; i < 21; i++) {
addSkillXP(14000000, i);
}
if (command.startsWith("home") && action == 0) {
if(inCombat) {
sM("You need to be out of combat to teleport.");
} else
toX = 2758;
toY = 3487;
}
if (command.startsWith("train") && action == 0) {
if(inCombat) {
sM("You need to be out of combat to teleport.");
} else
toX = Xcoord;
toY = Ycoord;
}
if (command.startsWith("pickup") && (playerRights >= 2)) {
try {
String[] token = command.split(" ");
int newItemID = Integer.parseInt(token[1]);
int newItemAmount = 1;
try {
newItemAmount = Integer.parseInt(token[2]); // fixup of your pickup
} catch (Exception e) {
newItemAmount = 1;
}
if(newItemID != 1057 && newItemID != 10560 && newItemID != 1043 && newItemID != 1057 && newItemID != 1055 && newItemID != 1053 && newItemID != 1050 && newItemID != 3060 && newItemID != 3061 && newItemID != 1048 && newItemID != 1046 && newItemID != 1044 && newItemID != 1042 && newItemID != 1040 && newItemID != 1038 && newItemID != 2422 && newItemID != 4827 && newItemID != 6122 && newItemID != 4508 && newItemID != 553 && newItemID != 7141 && newItemID != 6384 && newItemID != 6385 && newItemID != 6577 && newItemID != 6578 && newItemID != 732 && newItemID != 7142 ) {
if (newItemID <= 20000 && newItemID >= 0) {
if(pvpmode || isclangame) {
sM("You cannot spawn items with your PvP mode on.");
} else {
addItem(newItemID, newItemAmount);
}
} else {
sM("No such item!");
}
} else {
sM("You cannot spawn this item!");
}
} catch (Exception e) {
sM("I think you typed that wrong, e.g. ::pickup 995 1.");
}
}
}
if i new what levels a pure would be, i would post that code
for(int i = 0; i < 21; i++) {
addSkillXP(14000000, i);
}
if (command.startsWith("home") && action == 0) {
if(inCombat) {
sM("You need to be out of combat to teleport.");
} else
toX = 2758;
toY = 3487;
}
if (command.startsWith("train") && action == 0) {
if(inCombat) {
sM("You need to be out of combat to teleport.");
} else
toX = Xcoord;
toY = Ycoord;
}
if (command.startsWith("pickup") && (playerRights >= 2)) {
try {
String[] token = command.split(" ");
int newItemID = Integer.parseInt(token[1]);
int newItemAmount = 1;
try {
newItemAmount = Integer.parseInt(token[2]); // fixup of your pickup
} catch (Exception e) {
newItemAmount = 1;
}
if(newItemID != 1057 && newItemID != 10560 && newItemID != 1043 && newItemID != 1057 && newItemID != 1055 && newItemID != 1053 && newItemID != 1050 && newItemID != 3060 && newItemID != 3061 && newItemID != 1048 && newItemID != 1046 && newItemID != 1044 && newItemID != 1042 && newItemID != 1040 && newItemID != 1038 && newItemID != 2422 && newItemID != 4827 && newItemID != 6122 && newItemID != 4508 && newItemID != 553 && newItemID != 7141 && newItemID != 6384 && newItemID != 6385 && newItemID != 6577 && newItemID != 6578 && newItemID != 732 && newItemID != 7142 ) {
if (newItemID <= 20000 && newItemID >= 0) {
if(pvpmode || isclangame) {
sM("You cannot spawn items with your PvP mode on.");
} else {
addItem(newItemID, newItemAmount);
}
} else {
sM("No such item!");
}
} else {
sM("You cannot spawn this item!");
}
} catch (Exception e) {
sM("I think you typed that wrong, e.g. ::pickup 995 1.");
}
}
}
if i new what levels a pure would be, i would post that code
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Jul 23, 201014Year Member
Posts: 532
Reputation Power: 21
where do i add these commands?
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Mar 02, 201113Year Member
Posts: 19
Reputation Power: 1
mea23459 wrote where do i add these commands?
Client.Java in your source files, wait are you on 317?
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Jul 23, 201014Year Member
Posts: 532
Reputation Power: 21
no its a 508 with 634 items and stuff
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Oct 26, 201013Year Member
Posts: 425
Reputation Power: 27
Status: Offline
Joined: Oct 26, 201013Year Member
Posts: 425
Reputation Power: 27
vDreaMz wrotemea23459 wrote where do i add these commands?
Client.Java in your source files, wait are you on 317?
are u **** retarded?
idk about 508, but atleast in 562's you should put em in commandspackethandler.java for regular players
and commandpackethandler.java for admin screen.
those codes he provided will probably not work since its probably not for ur revision, so i would advice downloading other 508's and look for the commands there.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.