Purpose: Creating special restore [works only when the players are in the wilderness]
Difficulty: 1/10 So easy...
Assumed Knowledge: Copy and pasting
Server Base: Project Czar
Classes Modified: Client.java
Procedure
Step 1: Open up client.java
Step 2: search for
2 Times
Step 3: replace the WHOLE blood blitz spell with this
Code:
if (spellID == 12911) // blood blitz (lvl 80 spell)
{
if (playerLevel[6] >= 99) {
if ((playerHasItemAmount(564, 75) == false)
|| (playerHasItemAmount(557, 150) == false)
|| (playerHasItemAmount(563, 120) == false)) {
sendMessage(
"You do not have enough runes to cast this spell.");
sendMessage(
"You need 75 " + getItemName(564) + ", 150 "
+ getItemName(557) + " and 120 "
+ getItemName(563));
} else if ((playerHasItemAmount(564, 75) == true)
&& (playerHasItemAmount(557, 150) == true)
&& (playerHasItemAmount(563, 120) == true)) {
startAnimation(1978);
castOnPlayer.specialAmount = 100;
inCombat();
stillgfx(336, absY, absX);
stillgfx(465, castOnPlayer.absY, castOnPlayer.absX);
castOnPlayer.sendMessage("You Have Been Spec Restored!");
deleteItem(564, getItemSlot(564), 75);
deleteItem(557, getItemSlot(557), 150);
deleteItem(563, getItemSlot(563), 120);
sendMessage("You Spec Restore you Team Mate..");
teleportToX = absX;
teleportToY = absY;
}
} else if (playerLevel[6] <= 89) {
sendMessage(
"You need a magic level of 99 to cast this spell.");
}
}
save and compile! post any errors
this is declaring that you must require 120 law runes, 150 earth runes, 75 cosmic runes, and 99 magic to cast the spell
you can tinker around with the spell u want spec restore on along with the runes and level requirements.
Note : spec restore will only work if the 2 players are in PVP zone
Credits:
75% to RunePimp for creating this
25% to Me for posting this and re editing it a bit