Code:
package Bulby.io.packets;
import Bulby.Engine;
import Bulby.players.Player;
import Bulby.util.Misc;
import Bulby.npcs.*;
import Bulby.io.*;
import Bulby.Skills.*;
import Bulby.npcs.NPC;
public class NPCOption1 implements Packet {
public Player p;
public int logs[] = new int[28];
public void GetSkillCape(Player p,int Dialogue, int Npc, String Name, String Skill)
{
p.Dialogue = Dialogue;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, Npc, 241, 2);
p.frames.setString(p, Name, 241, 3);
p.frames.setString(p, "Aha! it seems you are a master of "+Skill+"...", 241, 4);
}
public void OnlyLevel(Player p,int Dialogue, int Npc, String Name, int Skill, String Nskill)
{
p.Dialogue = Dialogue;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9845, 241, 2);
p.frames.setNPCId(p, Npc, 241, 2);
p.frames.setString(p, Name, 241, 3);
p.frames.setString(p, "Your "+Nskill+" level is only level "+p.skillLvl[Skill]+". You should..", 241,
4);
}
/**
* Handles the first NPC option.
* @param p The Player which the frame should be handled for.
* @param packetId The packet id this belongs to.
* @param packetSize The amount of bytes being recieved for this packet.
*/
public NPC n;
public void handlePacket(Player p, int packetId, int packetSize) {
if (p == null || p.stream == null) {
return;
}
if (!p.npcOption1) {
int npcId = p.stream.readUnsignedWordA();
p.requestFaceTo(npcId);
p.wc.resetWoodcutting();
p.mi.resetMining();
if (npcId <= 0 || npcId >= Engine.npcs.length
|| Engine.npcs[npcId] == null) {
return;
}
p.clickId = npcId;
p.clickX = Engine.npcs[npcId].absX;
p.clickY = Engine.npcs[npcId].absY;
if (Misc.getDistance(p.absX, p.absY, p.clickX, p.clickY) > 30) {
return;
}
p.npcOption1 = true;
}
if (p.clickId <= 0 || p.clickId >= Engine.npcs.length
|| Engine.npcs[p.clickId] == null) {
p.npcOption1 = false;
return;
}
if (Misc.getDistance(p.absX, p.absY, p.clickX, p.clickY) > 1) {
return;
}
p.npcOption1 = false;
NPC pnp = Engine.npcs[p.clickId];
NPC np = Engine.npcs[p.FamiliarID];
if(pnp.npcType == 2253) {
if (Engine.playerItems.HasItemAmount(p, 7774, 100)) {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You have been rewarded for your 100
work tokens.", 241, 4);
Engine.playerItems.addItem(p, 995, 500000);
Engine.playerItems.deleteItem(p, 7774, 100);
}
else if (Engine.playerItems.HasItemAmount(p, 7774, 200)) {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You have been rewarded for your 200
work tokens.", 241, 4);
Engine.playerItems.addItem(p, 995, 1000000);
Engine.playerItems.deleteItem(p, 7774, 200);
}
else if (Engine.playerItems.HasItemAmount(p, 7774, 300)) {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You have been rewarded for your 300
work tokens.", 241, 4);
Engine.playerItems.addItem(p, 995, 1500000);
Engine.playerItems.deleteItem(p, 7774, 300);
}
else if (Engine.playerItems.HasItemAmount(p, 7774, 400)) {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You have been rewarded for your 400
work tokens.", 241, 4);
Engine.playerItems.addItem(p, 995, 2000000);
Engine.playerItems.deleteItem(p, 7774, 400);
}
else if (Engine.playerItems.HasItemAmount(p, 7774, 500)) {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You have been rewarded for your 500
work tokens.", 241, 4);
Engine.playerItems.addItem(p, 995, 2500000);
Engine.playerItems.deleteItem(p, 7774, 500);
} else {
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 2567, 241, 2);
p.frames.setString(p, "Wise Old Man", 241, 3);
p.frames.setString(p, "You do not have enough tokens for a
reward!", 241, 4);
}
}
if(pnp.npcType == 198)//GuildMaster
{
if(p.DragonSlayer == 0)
{
p.Dialogue = 100;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 198, 241, 2);
p.frames.setString(p, "Guildmaster", 241, 3);
p.frames.setString(p, "Looking for a quest are you?", 241, 4);
}
if(p.DragonSlayer == 1)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 198, 241, 2);
p.frames.setString(p, "Guildmaster", 241, 3);
p.frames.setString(p, "Go speak to Oziach in Edgeville...", 241, 4);
}
if(p.DragonSlayer == 2)
{
p.Dialogue = 102;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 198, 241, 2);
p.frames.setString(p, "Guildmaster", 241, 3);
p.frames.setString(p, "Ah yes, the dragon of Crandor Island...", 241, 4);
}
if(p.DragonSlayer == 3)
{
p.frames.setString(p, "How can I find a route to Crandor?", 458, 1);
p.frames.setString(p, "Where can I find the right ship?", 458, 2);
p.frames.setString(p, "How can I protect myself from the dragon's breath?", 458, 3);
p.frames.showChatboxInterface(p, 458);
p.Smithing = false;
p.Cooking = false;
p.TalkAgent = false;
p.DecorChange = false;
p.Choice = 1;
}
if(p.DragonSlayer == 4)
{
Engine.playerItems.deleteItem(p,11279, Engine.playerItems.getItemSlot(p, 11279), 28);
p.Dialogue = 110;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 198, 241, 2);
p.frames.setString(p, "Guildmaster", 241, 3);
p.frames.setString(p, "Wow you slayed Elvarg! Accept this reward.", 241, 4);
}
if(p.DragonSlayer == 5)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 198, 241, 2);
p.frames.setString(p, "Guildmaster", 241, 3);
p.frames.setString(p, "Hello...", 241, 4);
}
}
if(pnp.npcType == 6531)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 6531, 242, 2);
p.frames.setString(p, "Grand Excange Clerk", 242, 3);
p.frames.setString(p, "Welcome sir, what you wanna do", 242, 4);
p.frames.setString(p, "me for you?", 242, 5);
}
if(pnp.npcType == 6529)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 6529, 242, 2);
p.frames.setString(p, "Grand Excange Clerk", 242, 3);
p.frames.setString(p, "Welcome sir, what you wanna do", 242, 4);
p.frames.setString(p, "me for you?", 242, 5);
}
if(pnp.npcType == 6528)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 6528, 242, 2);
p.frames.setString(p, "Grand Excange Clerk", 242, 3);
p.frames.setString(p, "Welcome sir, what you wanna do", 242, 4);
p.frames.setString(p, "me for you?", 242, 5);
}
if(pnp.npcType == 6530)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 6530, 242, 2);
p.frames.setString(p, "Grand Excange Clerk", 242, 3);
p.frames.setString(p, "Welcome sir, what you wanna do", 242, 4);
p.frames.setString(p, "me for you?", 242, 5);
}
if(pnp.npcType == 8000)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 8000, 242, 2);
p.frames.setString(p, "Goth leprechaun", 242, 3);
p.frames.setString(p, "Congrats you have completed the quest.", 242, 4);
p.frames.setString(p, "Thank you for helping us out.", 242, 5);
p.GreatWar = 5;
p.QuestPoints += 3;
}
if(pnp.npcType == 6526)
{
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9840, 242, 2);
p.frames.setNPCId(p, 6526, 242, 2);
p.frames.setString(p, "Relobo Blinyo", 242, 3);
p.frames.setString(p, "Sorry, but I got a little much", 242, 4);
p.frames.setString(p, "thing to do.", 242, 5);
}
if(pnp.npcType == 456)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9840, 241, 2);
p.frames.setNPCId(p, 456, 241, 2);
p.frames.setString(p, "Father Aereck", 241, 3);
p.frames.setString(p, "If you believe in the gods, they will help you out.", 241, 4);
}
if(pnp.npcType == 747)//Oziach
{
if(p.DragonSlayer == 0)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9785, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "What are you looking for?", 241, 4);
}
if(p.DragonSlayer == 1)
{
p.Dialogue = 105;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "The guild master sent you right...", 241, 4);
}
if(p.DragonSlayer == 2)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "Go speak to the guildmaster for help.", 241, 4);
}
if(p.DragonSlayer > 2 && p.DragonSlayer < 4)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9785, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "You haven't killed Elvarg yet!", 241, 4);
}
if(p.DragonSlayer == 4)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "Wow, you killed Elvarg? Go tell the Guildmaster!", 241, 4);
}
if(p.DragonSlayer == 5)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 747, 241, 2);
p.frames.setString(p, "Oziach", 241, 3);
p.frames.setString(p, "Good job killing that dragon.", 241, 4);
}
}
if(pnp.npcType == 639)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 639, 242, 2);
p.frames.setString(p, "Romeo", 242, 3);
p.frames.setString(p, "Welcome to Mezzy-Scape!", 242, 4);
p.frames.setString(p, "Type ::manual for help it shows the rules!", 242, 5);
}
if(pnp.npcType == 6743)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6743, 242, 2);
p.frames.setString(p, "Dragon Snowman", 242, 3);
p.frames.setString(p, "Thanks for joining the Server!", 242, 4);
p.frames.setString(p, "Hope you have a fantastic time!!", 242, 5);
}
if(pnp.npcType == 6744)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6744, 242, 2);
p.frames.setString(p, "Dwarf Snowman", 242, 3);
p.frames.setString(p, "Thanks for joining the Server!", 242, 4);
p.frames.setString(p, "Have fun on this server!", 242, 5);
}
if(pnp.npcType == 6742)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6742, 242, 2);
p.frames.setString(p, "Barbarian Snowman", 242, 3);
p.frames.setString(p, "Thanks for joining the Server!", 242, 4);
p.frames.setString(p, "All the staff wish's you the best :)", 242, 5);
}
if(pnp.npcType == 6745)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6745, 242, 2);
p.frames.setString(p, "Pirate Snowman", 242, 3);
p.frames.setString(p, "Thanks for joining the Server!", 242, 4);
p.frames.setString(p, "Remember the rules and you'll do fine!!", 242, 5);
p.frames.setString(p, "Just do ::manual to see the rules! Click the book then!", 242, 6);
}
if(pnp.npcType == 6746)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6746, 242, 2);
p.frames.setString(p, "Snowman", 242, 3);
p.frames.setString(p, "Thanks for joining the Server!", 242, 4);
p.frames.setString(p, "This is the weekly Event!!", 242, 5);
}
if(pnp.npcType == 2402)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 2402, 242, 2);
p.frames.setString(p, "Mysterious Ghost", 242, 3);
p.frames.setString(p, "Why do you come here?", 242, 4);
p.frames.setString(p, "Coming here will just lead to your ultimate destruction!", 242, 5);
p.frames.setString(p, "Be careful.. Don't wanna wind up like me and the rest of us!", 242, 6);
}
if(pnp.npcType == 2398)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 2398, 242, 2);
p.frames.setString(p, "Mysterious Ghost", 242, 3);
p.frames.setString(p, "'Ello there mate!", 242, 4);
p.frames.setString(p, "Beware of what lies ahead!!! It might just be your very own", 242, 5);
p.frames.setString(p, "doom!!", 242, 6);
}
if(pnp.npcType == 6098)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6098, 242, 2);
p.frames.setString(p, "Ghost", 242, 3);
p.frames.setString(p, "Your time has come to an ending!!", 242, 4);
p.frames.setString(p, "Fear my leet powers!!!!!", 242, 5);
}
if(pnp.npcType == 6504)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 6504, 242, 2);
p.frames.setString(p, "Ghost", 242, 3);
p.frames.setString(p, "Get out of here!! Or i'll unleash my wrath on you!", 242, 4);
p.frames.setString(p, "Your death has come!", 242, 5);
}
if(pnp.npcType == 1700)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 1700, 242, 2);
p.frames.setString(p, "Ghost InnKeeper", 242, 3);
p.frames.setString(p, "Welcome to the Ghost House", 242, 4);
p.frames.setString(p, "Would you like to rent a room?", 242, 5);
}
if(pnp.npcType == 1704)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 1704, 242, 2);
p.frames.setString(p, "Ghost Captain", 242, 3);
p.frames.setString(p, "You dare enter my realm!! I will show no Mercy!", 242, 4);
p.frames.setString(p, "The end for you has come!! I shall show you my power!", 242, 5);
p.frames.setString(p, "Prepare to die!!", 242, 6);
}
if(pnp.npcType == 7467)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7467, 242, 2);
p.frames.setString(p, "Milknosugar", 242, 3);
p.frames.setString(p, "Help us!!", 242, 4);
p.frames.setString(p, "they invaded our lands!!", 242, 5);
}
if(pnp.npcType == 1886)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 1886, 242, 2);
p.frames.setString(p, "Cowardly Bandit", 242, 3);
p.frames.setString(p, "Ehh, I hate doing this kinda stuff.", 242, 4);
p.frames.setString(p, "You know like the destroying lands and taking over.", 242, 5);
p.frames.setString(p, "Can you help get me out of this?? Please!", 242, 6);
}
if(pnp.npcType == 1878)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 1878, 242, 2);
p.frames.setString(p, "Bandits Leader", 242, 3);
p.frames.setString(p, "Welcome to Bandits Training area!", 242, 4);
p.frames.setString(p, "I'm The Owner of these lands and people!", 242, 5);
p.frames.setString(p, "So beware don't do anything stupid!!", 242, 6);
}
if(pnp.npcType == 659)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 659, 242, 2);
p.frames.setString(p, "Party Pete", 242, 3);
p.frames.setString(p, "Time to Party!!!", 242, 4);
p.frames.setString(p, "Anyone can host drop partys here!!", 242, 5);
}
if(pnp.npcType == 1835)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 1835, 242, 2);
p.frames.setString(p, "Easter Bunny", 242, 3);
p.frames.setString(p, "Happy Begining Server!", 242, 4);
p.frames.setString(p, "This event is to celebrate the begining of the server!", 242, 5);
}
if(pnp.npcType == 7339)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7339, 242, 2);
p.frames.setString(p, "Geyser Titan", 242, 3);
p.frames.setString(p, "Welcome " + p.username + " to FunZone!!", 242, 4);
p.frames.setString(p, "Just sit back and relax!", 242, 5);
}
if(pnp.npcType == 7355)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7355, 242, 2);
p.frames.setString(p, "Fire Titan", 242, 3);
p.frames.setString(p, "Welcome " + p.username + " to FunZone!!", 242, 4);
p.frames.setString(p, "A place for all players to just relax", 242, 5);
}
if(pnp.npcType == 275)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 275, 242, 2);
p.frames.setString(p, "Guardian of Armadyl", 242, 3);
p.frames.setString(p, "Welcome " + p.username + " to the Chill Zone!!", 242, 4);
p.frames.setString(p, "A place for all players to just come and chill out!!", 242, 5);
}
if(pnp.npcType == 7359)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7359, 242, 2);
p.frames.setString(p, "Ice Titan", 242, 3);
p.frames.setString(p, "Welcome " + p.username + " to FunZone!!", 242, 4);
p.frames.setString(p, "Your an amazing Player!!!", 242, 5);
}
if(pnp.npcType == 7360)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7360, 242, 2);
p.frames.setString(p, "Ice Titan", 242, 3);
p.frames.setString(p, "Must Crush you!!!!", 242, 4);
p.frames.setString(p, "You are FINISHED!", 242, 5);
}
if(pnp.npcType == 3788)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 3788, 242, 2);
p.frames.setString(p, "Void knight", 242, 3);
p.frames.setString(p, "You have chosen to leave..", 242, 4);
p.frames.setString(p, "You will or are now teleported back.", 242, 5);
p.requestForceChat("I have left the pest control game.");
p.teleportTo(2352, 3171, 0, 4, 0, 8939, 8941, 1678, 0, 1679, 0);
p.inpest = 0;
}
if(pnp.npcType == 7001)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7001, 242, 2);
p.frames.setString(p, "Dark Squall", 242, 3);
p.frames.setString(p, "You have entered the area of runecrafting", 242, 4);
p.frames.setString(p, "Runecraft here to get experience.", 242, 5);
p.requestForceChat("Hm.. How did I end up here?");
p.teleportTo(2110, 3915, 0, 4, 0, 8939, 8941, 1678, 0, 1679, 0);
}
if(pnp.npcType == 398)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 398, 242, 2);
p.frames.setString(p, "Legends Guard", 242, 3);
p.frames.setString(p, "Welcome to Friction!", 242, 4);
p.frames.setString(p, "Best Private Server Ever! Owners are Omg D Claws and Wowpureags!",
242, 5);
}
if(pnp.npcType == 3100)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 3100, 242, 2);
p.frames.setString(p, "Enchantment Guardian", 242, 3);
p.frames.setString(p, "Welcome to The Bank!!", 242, 4);
p.frames.setString(p, "This area is for shopping!!", 242, 5);
}
if(pnp.npcType == 3097)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 3097, 242, 2);
p.frames.setString(p, "Entrance Guardian", 242, 3);
p.frames.setString(p, "Welcome to Shops!", 242, 4);
p.frames.setString(p, "More shops are going to be added!!", 242, 5);
}
if(pnp.npcType == 7343)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7343, 242, 2);
p.frames.setString(p, "Steel Titan", 242, 3);
p.frames.setString(p, "Welcome " + p.username + " to FunZone!!", 242, 4);
p.frames.setString(p, "You worked hard to get here! Enjoy!", 242, 5);
}
if(pnp.npcType == 2259)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 2259, 242, 2);
p.frames.setString(p, "Mage of Zamorak", 242, 3);
p.frames.setString(p, "Hmm.. You seem like you can be trusted, here's the book.", 242, 4);
p.frames.setString(p, "read it for all the information you need for it.", 242, 5);
Engine.playerItems.addItem(p, 10562, 1);
p.GreatWar = 3;
}
if(pnp.npcType == 274)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 274, 242, 2);
p.frames.setString(p, "Guardian of Armadyl", 242, 3);
p.frames.setString(p, "You're in jail!! Read the rule book and information book given to you!",
242, 4);
p.frames.setString(p, "Then you may leave!", 242, 5);
}
if(pnp.npcType == 7905)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7905, 242, 2);
p.frames.setString(p, "Barricade Guard", 242, 3);
p.frames.setString(p, "Help us! Have you heard of The Great War? It's a", 242, 4);
p.frames.setString(p, "war between all beings, monsters and humans.", 242, 5);
p.GreatWar = 1;
}
if(pnp.npcType == 5478)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 5478, 242, 2);
p.frames.setString(p, "King Gjuki Sorvott IV", 242, 3);
p.frames.setString(p, "Okay you've made it this far.. Very well..", 242, 4);
p.frames.setString(p, "Read this and you will get your task", 242, 5);
p.GreatWar = 2;
Engine.playerItems.addItem(p, 7633, 1);
}
if(pnp.npcType == 7002)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9850, 242, 2);
p.frames.setNPCId(p, 7002, 242, 2);
p.frames.setString(p, "Surok Magis", 242, 3);
p.frames.setString(p, "Use ::join [name] to join a chat and play the game!", 242, 4);
p.frames.setString(p, "Use the ::leave command to leave the chat!", 242, 5);
}
if(pnp.npcType == 6521)
{
p.Dialogue = 800;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 6521, 241, 2);
p.frames.setString(p, "Grand Exchange Tutor", 241, 3);
p.frames.setString(p, "Welcome to the Grand Exchange!", 241, 4);
p.frames.setString(p, "Currenty Under Construction!!", 231, 5);
}
if(pnp.npcType == 746)
{
if(p.DragonSlayer < 3)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9785, 241, 2);
p.frames.setNPCId(p, 746, 241, 2);
p.frames.setString(p, "Oracle", 241, 3);
p.frames.setString(p, "Help us!!", 241, 4);
p.frames.setString(p, "They destroyed my lands and tent!", 241, 5);
}
else
{
p.Dialogue = 108;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 746, 241, 2);
p.frames.setString(p, "Oracle", 241, 3);
p.frames.setString(p, "You are looking for a map to crandor?", 241, 4);
}
}
if(pnp.npcType == 741)
{
p.Dialogue = 0;
Engine.playerItems.addItem(p, 1540, 1);
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 741, 241, 2);
p.frames.setString(p, "Duke", 241, 3);
p.frames.setString(p, "Take this anti-dragon shield...", 241, 4);
}
if(pnp.npcType == 216)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 242);
p.frames.animateInterfaceId(p, 9780, 242, 2);
p.frames.setNPCId(p, 547, 242, 2);
p.frames.setString(p, "DANGERUS", 242, 3);
p.frames.setString(p, "this is serrius warning! DOn't fight dose np'c.", 242, 4);
p.frames.setString(p, "IF U R Under 75 hp or u will die...", 242, 5);
}
if(pnp.npcType == 7952)
{
p.frames.showInterface(p, 779);
}
if(pnp.npcType == 7151)
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 244);
p.frames.animateInterfaceId(p, 9850, 244, 2);
p.frames.setNPCId(p, 7151, 244, 2);
p.frames.setString(p, "Student", 244, 3);
p.frames.setString(p, "Welcome to Latviascape training road...!", 244, 4);
p.frames.setString(p, "u can teleport whit difrent levels train...", 244, 5);
p.frames.setString(p, "use. ::train1 (1-50cmb) ::train2 (50-90).", 244, 6);
p.frames.setString(p, "and ::train3 for (90-126cmb)...BYE!", 244, 7);
}
if(pnp.npcType == 744)
{
if(p.DragonSlayer > 2)
{
p.Dialogue = 0;
p.frames.setString(p, "Can you sail me to crandor Island?", 458, 1);
p.frames.setString(p, "Do you like dragons?", 458, 2);
p.frames.setString(p, "Never mind....", 458, 3);
p.frames.showChatboxInterface(p, 458);
p.Smithing = false;
p.Cooking = false;
p.TalkAgent = false;
p.DecorChange = false;
p.Choice = 2;
}
else
{
p.Dialogue = 0;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 744, 241, 2);
p.frames.setString(p, "Klarense", 241, 3);
p.frames.setString(p, "Sorry mate, I'm busy.", 241, 4);
}
}
if(pnp.npcType == 6901)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This isn't your dragon.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up the dragon.");
Engine.playerItems.addItem(p, 12469, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6957)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This isn't your Guthix Raptor.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up your Raptor.");
Engine.playerItems.addItem(p, 12510, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6951)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This isn't your Saradomin Owl.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up your Owl.");
Engine.playerItems.addItem(p, 12185, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6954)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This isn't your Zamorak Hawk.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up your Hawk.");
Engine.playerItems.addItem(p, 12508, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6920)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This isn't your Squirrel.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up the Squirrel.");
Engine.playerItems.addItem(p, 12490, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6903)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This is not your dragon.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up the dragon.");
Engine.playerItems.addItem(p, 12471, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6905)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This is not your dragon.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up the dragon.");
Engine.playerItems.addItem(p, 12473, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6907)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This is not your dragon.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick up the dragon.");
Engine.playerItems.addItem(p, 12475, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 768)
{
if(np != null)
{
if(p.FamiliarID != p.clickId)
{
p.frames.sendMessage(p, "This is not your cat.");
}
else
{
p.requestAnim(827, 0);
p.FamiliarType = 0;
np.isDead = true;
p.FamiliarID = 0;
p.frames.sendMessage(p, "You pick your cat.");
Engine.playerItems.addItem(p, 1561, 1);
p.frames.setTab(p, 80, 18);
}
}
}
if(pnp.npcType == 6970)
{
if(p.skillLvl[23] > 98)
{ GetSkillCape(p, 54, 6970, "Pikkupstix", "Summoning"); }
else { OnlyLevel(p, 55, 6970, "Pikkupstix", 23, "Summoning"); }
}
if(pnp.npcType == 6064)
{
if(p.skillLvl[21] >= 83)
{
if(p.equipment[3] != 11259)
{
p.frames.sendMessage(p, "You need to be wielding a net to catch this with.");
}
else
{
Engine.npcs[p.clickId].isDead = true;
Engine.npcs[p.clickId].absX = 1;
Engine.npcs[p.clickId].absY = 1;
p.frames.sendMessage(p, "You catch the dragon impling!");
p.addSkillXP(1250*p.skillLvl[21] ,21);
Engine.playerItems.addItem(p, 11256, 1);
p.requestAnim(5209, 0);
}
}
else
{
p.frames.sendMessage(p, "You need level 83 Hunting to catch this.");
}
}
if(pnp.npcType == 6063)
{
if(p.skillLvl[21] >= 70)
{
if(p.equipment[3] != 11259)
{
p.frames.sendMessage(p, "You need to be wielding a net to catch this with.");
}
else
{
Engine.npcs[p.clickId].isDead = true;
Engine.npcs[p.clickId].absX = 1;
Engine.npcs[p.clickId].absY = 1;
p.frames.sendMessage(p, "You catch the ninja impling!");
p.addSkillXP(800*p.skillLvl[21] ,21);
Engine.playerItems.addItem(p, 11254, 1);
p.requestAnim(5209, 0);
}
}
else
{
p.frames.sendMessage(p, "You need level 70 Hunting to catch this.");
}
}
if(pnp.npcType == 6062)
{
if(p.skillLvl[21] >= 60)
{
if(p.equipment[3] != 11259)
{
p.frames.sendMessage(p, "You need to be wielding a net to catch this with.");
}
else
{
Engine.npcs[p.clickId].isDead = true;
Engine.npcs[p.clickId].absX = 1;
Engine.npcs[p.clickId].absY = 1;
p.frames.sendMessage(p, "You catch the magpie impling!");
p.addSkillXP(600*p.skillLvl[21] ,21);
Engine.playerItems.addItem(p, 11252, 1);
p.requestAnim(5209, 0);
}
}
else
{
p.frames.sendMessage(p, "You need level 60 Hunting to catch this.");
}
}
if(pnp.npcType == 6056)
{
if(p.skillLvl[21] >= 40)
{
if(p.equipment[3] != 11259)
{
p.frames.sendMessage(p, "You need to be wielding a net to catch this with.");
}
else
{
Engine.npcs[p.clickId].isDead = true;
Engine.npcs[p.clickId].absX = 1;
Engine.npcs[p.clickId].absY = 1;
p.frames.sendMessage(p, "You catch the young impling!");
p.addSkillXP(300*p.skillLvl[21] ,21);
Engine.playerItems.addItem(p, 11240, 1);
p.requestAnim(5209, 0);
}
}
else
{
p.frames.sendMessage(p, "You need level 40 Hunting to catch this.");
}
}
if(pnp.npcType == 6055)
{
if(p.skillLvl[21] >= 1)
{
if(p.equipment[3] != 11259)
{
p.frames.sendMessage(p, "You need to be wielding a net to catch this with.");
}
else
{
Engine.npcs[p.clickId].isDead = true;
Engine.npcs[p.clickId].absX = 1;
Engine.npcs[p.clickId].absY = 1;
p.frames.sendMessage(p, "You catch the baby impling!");
p.addSkillXP(125*p.skillLvl[21] ,21);
Engine.playerItems.addItem(p, 11238, 1);
p.requestAnim(5209, 0);
}
}
else
{
p.frames.sendMessage(p, "You need level 1 Hunting to catch this.");
}
}
if(pnp.npcType == 251)
{
p.viewings = 1;
p.shopid = 13;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop13, p.shop13n);
p.frames.setString(p, " Staff Shop", 278, 88);
}
if(pnp.npcType == 3103)
{
p.viewings = 1;
p.shopid = 14;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop14, p.shop14n);
p.frames.setString(p, " Tokkul Shop", 278, 88);
}
if(pnp.npcType == 670)
{
p.viewings = 1;
p.shopid = 22;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop22, p.shop22n);
p.frames.setString(p, " Sweets Shop", 278, 88);
}
if(pnp.npcType == 1552)
{
p.viewings = 1;
p.shopid = 23;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop23, p.shop23n);
p.frames.setString(p, " Donator Shop", 278, 88);
}
if(pnp.npcType == 3299)
{
if(p.skillLvl[19] < 99)
{
p.Dialogue = 50;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 3299, 241, 2);
p.frames.setString(p, "Master Gardener", 241, 3);
p.frames.setString(p, "Oh good you are here...", 241, 4);
}
else
{
GetSkillCape(p, 51, 3299, "Master Gardener", "Farming");
}
}
if(pnp.npcType == 548)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 548, 241, 2);
p.frames.setString(p, "Thessalia", 241, 3);
p.frames.setString(p, "I wonder why every one is poor these days...", 241, 4);
}
if(pnp.npcType == 598)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9820, 241, 2);
p.frames.setNPCId(p, 598, 241, 2);
p.frames.setString(p, "Hairdresser", 241, 3);
p.frames.setString(p, "Eww..you have emo hair....", 241, 4);
}
if(pnp.npcType == 521)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 521, 241, 2);
p.frames.setString(p, "Shop assistant", 241, 3);
p.frames.setString(p, "Hey, I sell some good stuplies and weapons.", 241, 4);
}
if(pnp.npcType == 538)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 538, 241, 2);
p.frames.setString(p, "Shop assistant", 241, 3);
p.frames.setString(p, "I have all the barrows armour for sale!", 241, 4);
}
if(pnp.npcType == 549)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 549, 241, 2);
p.frames.setString(p, "Horvik", 241, 3);
p.frames.setString(p, "I got a ton of armour if you want to buy some. Noob.", 241, 4);
}
if(pnp.npcType == 6537)
{
p.viewings = 1;
p.shopid = 4;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop4, p.shop4n);
p.frames.setString(p, " The PRO Shop", 278, 88);
}
if(pnp.npcType == 4900)
{
p.viewings = 1;
p.shopid = 7;
p.frames.showInterface(p, 278);
p.frames.setItems(p, 278, 89, 94, p.shop7, p.shop7n);
p.frames.setString(p, " Crafting Stuff", 278, 88);
}
if(pnp.npcType == 1)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9785, 241, 2);
p.frames.setNPCId(p, 1, 241, 2);
p.frames.setString(p, "Man", 241, 3);
p.frames.setString(p, "Hey noob, gonna steal from me?", 241, 4);
}
if(pnp.npcType == 316)
{
//Net Shrimps
if(p.ActionTimer == 0)
{
if(p.skillLvl[10] >= 1)
{
if(Engine.playerItems.HasItemAmount(p, 305, 1) == true)
{
p.FishXP = 25;
p.FishGet = 317;
p.FishEmote = 620;
p.FishThat(p, p.FishXP, p.FishGet, p.FishEmote);
}
else
{
p.frames.sendMessage(p, "You need a big fishing net to fish here.");
}
}
else
{
p.frames.sendMessage(p, "You need level 1 fishing to fish here.");
}
}
}
if(pnp.npcType == 313)
{
//Net Bass
if(p.ActionTimer == 0)
{
if(p.skillLvl[10] > 29)
{
if(Engine.playerItems.HasItemAmount(p, 305, 1) == true)
{
p.FishXP = 45;
p.FishGet = 363;
p.FishEmote = 620;
p.FishThat(p, p.FishXP, p.FishGet, p.FishEmote);
}
else
{
p.frames.sendMessage(p, "You need a big fishing net to fish here.");
}
}
else
{
p.frames.sendMessage(p, "You need level 30 fishing to fish here.");
}
}
}
if(pnp.npcType == 312)
{
//Cage Lobsters
if(p.ActionTimer == 0)
{
if(p.skillLvl[10] > 39)
{
if(Engine.playerItems.HasItemAmount(p, 301, 1) == true)
{
p.FishXP = 90;
p.FishGet = 377;
p.FishEmote = 619;
p.FishThat(p, p.FishXP, p.FishGet, p.FishEmote);
}
else
{
p.frames.sendMessage(p, "You need a lobster pot to fish here.");
}
}
else
{
p.frames.sendMessage(p, "You need level 40 fishing to fish here.");
}
}
}
if(pnp.npcType == 495)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9827, 241, 2);
p.frames.setNPCId(p, 495, 241, 2);
p.frames.setString(p, "Banker", 241, 3);
p.frames.setString(p, "Hello there, you can bank by selecting the bank option.", 241,
4);
}
if(pnp.npcType == 2270)
{
if(p.skillLvl[17] > 98)
{ GetSkillCape(p, 1, 2270, "Martin Thwait", "Thieving"); }
else { OnlyLevel(p, 2, 2270, "Martin Thwait", 17, "Thieving"); }
}
if(pnp.npcType == 437)
{
if(p.skillLvl[16] > 98)
{ GetSkillCape(p, 32, 437, "Cap'n Izzy No-Beard", "Agility"); }
else { OnlyLevel(p, 33, 437, "Cap'n Izzy No-Beard", 16, "Agility"); }
}
if(pnp.npcType == 455)
{
if(p.skillLvl[15] > 98)
{ GetSkillCape(p, 36, 455, "Kaqemeex", "Herblore"); }
else
{
if(Engine.playerItems.HasItemAmount(p, 249, 1) || Engine.playerItems.HasItemAmount(p,
257, 1))
{
p.Dialogue = 37;
Engine.playerItems.deleteItem(p,249, Engine.playerItems.getItemSlot(p, 249), 28);
Engine.playerItems.deleteItem(p,257, Engine.playerItems.getItemSlot(p, 257), 28);
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 455, 241, 2);
p.frames.setString(p, "Kaqemeex", 241, 3);
p.frames.setString(p, "Let me take those cleaned herbs from you...", 241, 4);
}
else { OnlyLevel(p, 37, 455, "Kaqemeex", 15, "Herblore"); }
}
}
if(pnp.npcType == 5113)
{
if(p.skillLvl[21] > 98)
{ GetSkillCape(p, 38, 5113, "Hunting Expert", "Hunting"); }
else { OnlyLevel(p, 39, 5113, "Hunting Expert", 21, "Hunting"); }
}
if(pnp.npcType == 847)
{
if(p.skillLvl[7] > 98)
{ GetSkillCape(p, 40, 847, "Head Chef", "Cooking"); }
else { OnlyLevel(p, 41, 847, "Head Chef", 7, "Cooking"); }
}
if(pnp.npcType == 604)
{
if(p.skillLvl[13] > 98)
{ GetSkillCape(p, 42, 604, "Thurgo", "Smithing"); }
else { OnlyLevel(p, 43, 604, "Thurgo", 13, "Smithing"); }
}
if(pnp.npcType == 1658)
{
if(p.skillLvl[6] > 98)
{ GetSkillCape(p, 3, 1658, "Robe Store Owner", "Magic"); }
else { OnlyLevel(p, 4, 1658, "Robe Store Owner", 6, "Magic"); }
}
if(pnp.npcType == 802)
{
if(p.skillLvl[5] > 98)
{ GetSkillCape(p, 19, 802, "Brother Jered", "Prayer"); }
else { OnlyLevel(p, 20, 802, "Brother Jered", 5, "Prayer"); }
}
if(pnp.npcType == 4906)
{
if(Engine.playerItems.HasItemAmount(p, 1511, 1) == true)
{
Engine.playerItems.addItem(p, 995, 7000);
Engine.playerItems.deleteItem(p,1511, Engine.playerItems.getItemSlot(p, 1511), 1);
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 4906, 241, 2);
p.frames.setString(p, "Woodcutting Tutor", 241, 3);
p.frames.setString(p, "Thank you for the logs!", 241, 4);
}
else if(p.skillLvl[8] > 98)
{ GetSkillCape(p, 15, 4906, "Woodcutting Tutor", "Woodcutting"); }
else { OnlyLevel(p, 16, 4906, "Woodcutting Tutor", 8, "Woodcutting"); }
}
if(pnp.npcType == 805)
{
if(p.skillLvl[12] > 98)
{ GetSkillCape(p, 34, 805, "Master Crafter", "Crafting"); }
else { OnlyLevel(p, 35, 805, "Master Crafter", 12, "Crafting"); }
}
if(pnp.npcType == 553)
{
if(p.skillLvl[20] > 98)
{ GetSkillCape(p, 21, 553, "Aubury", "Runecrafting"); }
else { OnlyLevel(p, 22, 553, "Aubury", 20, "Runecrafting"); }
}
if(pnp.npcType == 4946)
{
if(p.skillLvl[11] > 98)
{ GetSkillCape(p, 26, 4946, "Ignatius Vulcan", "Firemaking"); }
else { OnlyLevel(p, 27, 4946, "Ignatius Vulcan", 11, "Firemaking"); }
}
if(pnp.npcType == 308)
{
if(p.skillLvl[10] > 98)
{ GetSkillCape(p, 13, 308, "Master Fisher", "Fishing"); }
else { OnlyLevel(p, 14, 308, "Master Fisher", 10, "Fishing"); }
}
if(pnp.npcType == 3295)
{
if(p.skillLvl[14] > 98)
{ GetSkillCape(p, 17, 3295, "Dwarf", "Mining"); }
else { OnlyLevel(p, 18, 3295, "Dwarf", 14, "Mining"); }
}
if(pnp.npcType == 575)
{
if(p.skillLvl[9] > 98)
{ GetSkillCape(p, 28, 575, "Hickton", "Fletching"); }
else { OnlyLevel(p, 29, 575, "Hickton", 9, "Fletching"); }
}
if(pnp.npcType == 7950)
{
if(p.skillLvl[1] > 98)
{ GetSkillCape(p, 5, 7950, "Melee Tutor", "Defence"); }
else { OnlyLevel(p, 6, 7950, "Melee Tutor", 1, "Defence"); }
}
if(pnp.npcType == 1599)
{
p.Runecrafting = false;
p.Smithing = false;
p.Cooking = false;
p.TalkAgent = false;
p.DecorChange = false;
p.frames.setString(p, "Slayer Cape", 458, 1);
p.frames.setString(p, "New Slayer Task", 458, 2);
p.frames.setString(p, "Teleport to slayer Cave", 458, 3);
p.frames.showChatboxInterface(p, 458);
}
if(pnp.npcType == 4247)
{
p.Runecrafting = false;
p.Smithing = false;
p.Cooking = false;
p.TalkAgent = true;
p.DecorChange = false;
p.frames.setString(p, "Construction Cape", 458, 1);
p.frames.setString(p, "How do I go in my friends house?", 458, 2);
p.frames.setString(p, "Buy new house decoration", 458, 3);
p.frames.showChatboxInterface(p, 458);
}
if(pnp.npcType == 4288)
{
if(p.skillLvl[0] > 98)
{ GetSkillCape(p, 7, 4288, "Ajjat", "Attack"); }
else { OnlyLevel(p, 8, 4288, "Ajjat", 0, "Attack"); }
}
if(pnp.npcType == 4297)
{
if(p.skillLvl[2] > 98)
{ GetSkillCape(p, 9, 4297, "Sloane", "Strength"); }
else { OnlyLevel(p, 10, 4297, "Sloane", 2, "Strength"); }
}
if(pnp.npcType == 961)
{
if(p.skillLvl[3] > 98)
{ GetSkillCape(p, 11, 961, "Surgeon General Tafani", "Hitpoints"); }
else { OnlyLevel(p, 12, 961, "Surgeon General Tafani", 3, "Hitpoints"); }
}
if(pnp.npcType == 682)
{
if(p.skillLvl[4] > 98)
{ GetSkillCape(p, 23, 682, "Armour salesman", "Range"); }
else { OnlyLevel(p, 24, 682, "Armour salesman", 4, "Range"); }
}
if(pnp.npcType == 1861)
{
p.Dialogue = 25;
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9760, 241, 2);
p.frames.setNPCId(p, 1861, 241, 2);
p.frames.setString(p, "DANGERUS!", 241, 3);
p.frames.setString(p, "USING RANGE IS UR OWN RISK!", 241, 4);
}
if(pnp.npcType == 494)
{
p.frames.showChatboxInterface(p, 241);
p.frames.animateInterfaceId(p, 9850, 241, 2);
p.frames.setNPCId(p, 494, 241, 2);
p.frames.setString(p, "Banker", 241, 3);
p.frames.setString(p, "Hello there, you can bank by selecting the bank option.", 241,
4);
}
}
}