Purpose: to mkae ice spells freeze npc's in place
Server Base: p16 should work on all tho
Difficulty: 1/10
Assumed Knowledge: copy + paste/ctrl +f
credits: this is 100% me, i dont remember seeing it anywere else=\
ANTI-LEECH
ok to get started go into your NPCHandler.java and search for
Code:
npcs[NPCID].RandomWalk = false;
right under it add this:
Code:
if((npcs[NPCID].npcType != 2745 && npcs[NPCID].npcType != 3777 && npcs[NPCID].npcType != 3778 && npcs[NPCID].npcType != 3779 && npcs[NPCID].npcType != 3780 ) && npcs[NPCID].Frozentimer == 0) {//R
once again search for
Code:
npcs[NPCID].RandomWalk = false;
and under that one also put
Code:
if((npcs[NPCID].npcType != 2745 && npcs[NPCID].npcType != 3777 && npcs[NPCID].npcType != 3778 && npcs[NPCID].npcType != 3779 && npcs[NPCID].npcType != 3780 ) && npcs[NPCID].Frozentimer == 0) {//U
after that search for:
Code:
for (int i = 0; i < maxNPCs; i++) {
if (npcs[i] != null) {
if (npcs[i].actionTimer > 0) {
npcs[i].actionTimer--;
}
right under it add this:
Code:
if (npcs[i].Frozentimer > 0) {
npcs[i].Frozentimer--;//K
}
now save your npchandler and exit out
next open up your NPC.java and search for
Code:
public boolean RandomWalk;
directly under it add
Code:
public int Frozentimer = 0;//IA
save that and exit that
now to make it to were the spells freeze, open up your client.java search for magic on npc
then search for , ice rush, ice burst, ice blitz, and ice barrage
under each of those spells you should see something like this
Code:
if(magicID == 12891) {// ice barrage
if(playerLevel[6] >= 94) {
stillgfx(369, EnemyY2, EnemyX2);
stillgfx(366, absY, absX);
hitDiff = 0 + misc.random(30);
teleportToX = absX;
teleportToY = absY;
addSkillXP((52*hitDiff), playerMagic);
setAnimation(1979);
} else {
sendMessage("You do need a magic level of 94 to cast this spell");
}
}
under the
Code:
teleportToX = absX;
teleportToY = absY;
add
Code:
server.npcHandler.npcs[npcIndex].Frozentimer = #;
under each of the ice spells and there u have it save and compile and enjoy 
also were the # is change that to the number of seconds u want the spell to hold the npc so if u want 20 sec replace # with 20 me like rep