What's this for? It's to make a boss in your server, like what? Well you got to find out.
This tutorial is working on my server, AlexScape 2, hm... most of you guys may think this is dumb in the first place. But look into it, you should find out whats the point of this. If you have dumb weapons like Dragon Scim. as a super-weapon or admin-weapon. You should remove it because this monster drops it, you can change it too. Anyways let's begin.
Step 1. Open your autospawn.cfg.
Step 2. Put this in there.
Code:
spawn = 795 2836 3423 0 0 0 0 0 0 ice queen
Now close and save it.
Step 3. Open client.java.
Step 4. Search for "case 72: //Click to attack" or just "case 72".
Step 5. Now under the first "boolean slayer = true;" in there.
Step 6. Add this.
Code:
if(server.npcHandler.npcs[attacknpc].npcType == 795)
{
hitDiff = 5;
hitUpdateRequired = true;
updateRequired= true;
}
Close and save it.
Why did you add that? Because this can make it more like a boss, but she's weak! Don't worry, I'm going add spells for her to use later on. This also helps her against archers and mages.
Step 7. Okay, Now... Open npchandler.java.
Step 8. Search for this.
Code:
AttackPlayerMage(i);
else
AttackPlayer(i);
Step 9. Now under you should see something alike this.
Code:
npcs[i].npcType == 1645 ||
Step 10. Add this in front of it.
Code:
npcs[i].npcType == 795 ||
Step 11. Then there should be a another line under alike that.
Step 12: Add the same thing in front of it the same way.
Step 13. Now search for "public void MonsterDropItem(int NPCID)".
Step 14. Add this in it.
Code:
if(npcs[NPCID].npcType == 795) {
ItemHandler.addItem(4587, npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}
Step 15. Search for this.
Code:
npcs[NPCID].animNumber = 711; // mage attack
if(npcs[NPCID].npcType == 1645) {
p.stillgfx(369, p.absY, p.absX);
hitDiff = 6 + misc.random(43);
}
Step 16. Now add this under it.
Code:
if(npcs[NPCID].npcType == 795) {
gfxAll(369, EnemyY, EnemyX);
hitDiff = 24 + misc.random(10);
}
Why? So she can mage! Smart one.
Now close and save it. Compile like always. Then you're done.
Hm... Are you thinking what I'm thinking? A place for it heh? Sorry but. You got to do that you're self.
Hm... You may think this is lame, want some pictures? (Some parts not shown in this tutorial.)
I hope you really like it and not flame or leech it. So anyways.... It's time for me to go, bye and see you next time!
This is 100% made by me (AlexBeta). Please do not leech it. No point. =/