if(magicID == 12891) // ice barrage (lvl 94 spell) { if(playerLevel[6] >= -92 && playerLevel[3] >= 1) { if((playerHasItemAmount(560, 40)==false) || (playerHasItemAmount(4278, 40)==false) || (playerHasItemAmount(554, 60)==false)) { sendMessage("You do not have enough runes to cast this spell."); } else if((playerHasItemAmount(560, 40)==true) && (playerHasItemAmount(4278, 40)==true) && (playerHasItemAmount(554, 60)==true)) { deleteItem(560, getItemSlot(560), 40); deleteItem(4278, getItemSlot(4278), 40); deleteItem(554, getItemSlot(554), 60); startAnimation(1979); attackNPCSWithin(369, 39, 0); //hitDiff = 5 + misc.random(67); server.npcHandler.PoisonNPC(npcIndex); inCombat(); PkingDelay = 15; sendMessage("You poison and freeze the enemy!"); //stillgfx(369, EnemyY2, EnemyX2); teleportToX = absX; teleportToY = absY; } } else if(playerLevel[6] <= 124) { sendMessage("You need a magic level of 125 to cast this spell."); } }