Hey guys
Just wondering how i remove required runes for the teleports?
I'm using a battlescape source
Code:
case 1164:
wildLvl = (((absY - 3520) / 8) + 1);
if (IsInFightCave() || duelStatus == 3 || wildLvl >= 20 && WildArea() || meleeFightStatus == 1)
{
sendMessage("You cannot teleport from here.");
break;
}
if (teleBlockDelay > 0)
{
sendMessage("You are still teleBlocked!");
break;
}
if (playerLevel[playerMagic] >= 25)
{
if (InvItemAmt(563) >= 1 && InvItemAmt(556) >= 3 && InvItemAmt(554) >= 1)
{
pcStatus = 0;
deleteItem(563, GetItemSlot(563), 1);
deleteItem(556, GetItemSlot(556), 3);
deleteItem(554, GetItemSlot(554), 1);
startTele(3213, 3423, 0, 714, 715, 308, 4, 18431);
if (spellSet == 2)
SetSidebar(6, 18787);
}
else
sendMessage("You do not have enough runes to cast this spell.");
}
else
sendMessage("You need atleast 25 magic to cast this spell.");
break;