OMG! IM SO HAPPY LAWL! LIKE REALLY!
Well i came across this spell while working on my brothers Wizardscape Project
and i did it! works too, i am now trying to get it, to choose a random npc
but for the moment its just your chosen npc lawl!
Purpose: To replace confuse (if you want), with a spell that transfroms your enemy to a npc
Difficulty: NOT HARD AT ALL! 1/10
Assumed Knowledge: C & P
Server Base: Pimpscape (Works on any server with magic on it)
Classes Modified: client.java
Procedure
- Adding the Spell -
Step 1: Open client.java and search for boolean process
and
Add this above your public boolean process:
Code:
public static int[] rnpc = {3216,3231,3249,3228}; // theses being your random npc's by bambam
public static int rnpc()
{
return rnpc[(int)(Math.random()*rnpc.length)]; //by bambam
}
change the npc's to what npc's u want to be included
Step 2: In client.java before one of your spells like
Code:
if (spellID == 1152)
Add:
Code:
if (spellID == 1153) { // Confuse
ProjectileSpellPlayer(82, 473, 551, absY, absX, offsetY, offsetX, index, EnemyY, EnemyX, 12, 1, 566, 558, 2, 1);
startAnimation(2080);
castOnPlayer.inCombat();
stillgfx(82, castOnPlayer.absY, castOnPlayer.absX);
inCombat();
castOnPlayer.npcId = rnpc();
castOnPlayer.isNpc = true;
castOnPlayer.updateRequired = true;
castOnPlayer.appearanceUpdateRequired = true;
actionTimer = 10;
pSay("Transform!");
teleportToX = absX;
teleportToY = absY;
}
Save, compile and run!
CREDITS: Bam Bam (50% For Npc Randoms), Me (50% for making the tut and spell)
Thanks Bam Bam for random npcs 
Thanks
Please post your comments!
Hope you enjoy
:::. Icepkz .:::