PDA

View Full Version : [z508] Removing Administator Restrictions



Mod_Cubsmiles
June 23rd, 2010, 14:23
Yeah I know, it's retarded for making a tutorial based on z508 when it's actually Espeon but I get asked this a lot.

Description: To remove Admin restrictions

Difficulty: 9/10

Files Modified: DropItem.class, PlayerUpdateMasks.class, PTrade.class


Chapter 1: Removing the deletion of drop items
Open up DropItem.java
Search for:

if (p.rights >= 2) {
Delete:

if (p.rights >= 2) {
Engine.playerItems.deleteItem(p, itemId, itemSlot, p.itemsN[itemSlot]);
return;
}

Chapter 2: Allowing Admins to have their orginal Combat Levels
Open PlayerUpdateMasks.java
Search for:

if (p.rights >= 2) {
Delete:

combat = 0;
You can delete the whole statement if you want, but it's good to leave just incase you want to go back and edit something dealing with that, up to you.

Chapter 3: Allowing Admins to trade normal players
Open PTrade.java
Search for:

if (p.rights >= 2 && tp.rights < 2) {
Delete

if (p.rights >= 2 && tp.rights < 2) {
p.getActionSender().sendMessage(p, "Administrators cannot trade normal players.");
return;
}

There you go.

chopsuey
September 13th, 2010, 16:44
or u can change the player right to 4 or higher -.-

Bunni
September 13th, 2010, 17:13
Why is the difficulty 9/10?
Apart from that Nice short good Guide. :)

The Egg Pk
September 16th, 2010, 04:23
I Assume That the 9/10 Is Your way Of Being Funny :)?