AHMG to big to fit into one post! Liam's Pets Tutorial
LIAMS BUGFIXES SOLD SEPERATELY. (Free of charge when liams energy bar is full)
Server Base: Dynastyscape
Base that you'll be able to get: Devolution V7, Uber Server 3, Devolution V1 -6, Cheezscape (Already Has most), Project 16 (Already has full I think)
Difficulty: 8 - Ill post the Liamigo Tutorial Difficulty Index Shortly
Required Knowledge: Ints, Booleans, Java (IF you dont know what that is, go die in a hole), Playertokens, Voids, Ctrl+C and Ctrl+V, Ctrl+F, Basic Typing Skills, Sight, Touch and Smell if you screw up that bad your computer kamikazes.
Credits: The real RSPS god, Xero(Xerocheez) for most of this, Me for bugfixes and posting this after 2005.
Leechers: Will be castrated with a Dog Collar.
OK, The actual tutorial:
MAKE BACKUPS IF YOU ARENT CONFIDENT
Step 1: Adding Following
Lets open NPChandler.java Search for: 'Summon'
Along with some old codes by Xero, you should find this:
Code
public void newSummonedNPC(int npcType, int x, int y, int heightLevel,
int rangex1, int rangey1, int rangex2, int rangey2,
int WalkingType, int HP, boolean Respawns, int summonedBy) {
// first, search for a free slot
int slot = -1;
for (int i = 1; i < maxNPCSpawns; i++) {
if (npcs[i] == null) {
slot = i;
break;
}
}
if (slot == -1)
return; // no free slot found
if (HP <= 0) { // This will cause client crashes if we don't
// use this <img src="http://s102.ucoz.net/sm/1/smile.gif" border="0" align="absmiddle" alt="smile"> - xero
HP = 100;
}
NPC newNPC = new NPC(slot, npcType);
newNPC.absX = x;
newNPC.absY = y;
newNPC.makeX = x;
newNPC.makeY = y;
newNPC.moverangeX1 = rangex1;
newNPC.moverangeY1 = rangey1;
newNPC.moverangeX2 = rangex2;
newNPC.moverangeY2 = rangey2;
newNPC.walkingType = WalkingType;
newNPC.HP = HP;
newNPC.MaxHP = HP;
newNPC.MaxHit = (int) Math.floor((HP / 10));
if (newNPC.MaxHit < 1) {
newNPC.MaxHit = 1;
}
newNPC.heightLevel = heightLevel;
newNPC.Respawns = Respawns;
newNPC.followPlayer = summonedBy;
newNPC.followingPlayer = true;
npcs[slot] = newNPC;
}
If you cant, add it within your other voids einstein then continue. If you do have this (ALREADY IN YOUR SOURCE), close npchandler.java and skip to step 2.
Still in Npchandler.java, add this below the above.
CONTINUED...