public override string GetChat() { Player player = Main.player[Main.myPlayer]; player.GetModPlayer <OSRSplayer>().SlayerTextUpdate(); /*if (player.GetModPlayer<OSRSplayer>().slayTasksComplete >= 100 && OSRSworld.slayBossProgress < 5) //not implemented * { * return "Ah, you have completed a fair amount of my tasks already. " + * "I suppose you are up for a greater challenge? " + * "There is this huge severed hand that lurks within the darkness of this land. " + * "I have added an item to my shop that will lure the beast to you. " + * "This is the toughest challenge I can provide, so if you manage to slay it, a new master will come and take my place in this world."; * }*/ if (player.GetModPlayer <OSRSplayer>().slayerMob != 0) { if (player.GetModPlayer <OSRSplayer>().slayerLeft == 0) { player.GetModPlayer <OSRSplayer>().SlayerReward("Nieve"); return("Well done! Here's your reward."); } else if (Main.rand.Next(2) == 0) { int a = player.GetModPlayer <OSRSplayer>().slayerMob; int am = player.GetModPlayer <OSRSplayer>().slayerLeft; string name = Lang.GetNPCName(a).ToString(); name = OSRSplayer.FixEndings(name, am); return("You're currently assigned to kill " + name + "; only " + am + " more to go."); } } switch (Main.rand.Next(4)) { case 0: return("'Ello, and what are you after then?"); case 1: return("I have a wide selection of Slayer equipment; take a look!"); case 2: return("You have currently completed " + player.GetModPlayer <OSRSplayer>().slayTasksComplete + " slayer tasks."); default: return("I'm a Slayer Master. I train adventurers to learn the weaknesses of seemingly invulnerable monsters. To learn how, you need to kill specific monsters. I'll identify suitable targets and assign you a quota."); } }
public override string GetChat() { Player player = Main.player[Main.myPlayer]; player.GetModPlayer <OSRSplayer>().SlayerTextUpdate(); if (player.GetModPlayer <OSRSplayer>().slayTasksComplete >= 30 && OSRSworld.slayBossProgress < 3) { return("You seem to have cleared a lot of my tasks already, well done. " + "I suppose you are up for a greater challenge? " + "A rotten stench is oozing from somewhere deep in this world, the cause is still unknown. " + "I have added an item to my shop that might attract the source of the smell. " + "This is the toughest challenge I can provide, so if you manage to slay it, a new master will come and take my place in this world."); } if (player.GetModPlayer <OSRSplayer>().slayerMob != 0) { if (player.GetModPlayer <OSRSplayer>().slayerLeft == 0) { player.GetModPlayer <OSRSplayer>().SlayerReward("Vannaka"); return("Well done! Here's your reward."); } else if (Main.rand.Next(2) == 0) { int a = player.GetModPlayer <OSRSplayer>().slayerMob; int am = player.GetModPlayer <OSRSplayer>().slayerLeft; string name = Lang.GetNPCName(a).ToString(); name = OSRSplayer.FixEndings(name, am); return("You're currently assigned to kill " + name + "; only " + am + " more to go."); } } switch (Main.rand.Next(4)) { case 0: return("'Ello, and what are you after then?"); case 1: return("I have a wide selection of Slayer equipment; take a look!"); case 2: return("You have currently completed " + player.GetModPlayer <OSRSplayer>().slayTasksComplete + " slayer tasks."); default: return("I'm a Slayer Master. I train adventurers to learn the weaknesses of seemingly invulnerable monsters. To learn how, you need to kill specific monsters. I'll identify suitable targets and assign you a quota."); } }
public override string GetChat() { Player player = Main.player[Main.myPlayer]; player.GetModPlayer <OSRSplayer>().SlayerTextUpdate(); if (player.GetModPlayer <OSRSplayer>().slayTasksComplete >= 20 && OSRSworld.slayBossProgress < 2) { return("Great progress on those tasks! " + "If you are up for it, I might have something more challenging for you. " + "Screams have been reported echoing from the deeps, and a mysterious creature has been sighted in the night. " + "I have added an item to my shop that will lure the creature to you. " + "This is the toughest challenge I can provide, so if you manage to slay it, a new master will come and take my place in this world."); } if (player.GetModPlayer <OSRSplayer>().slayerMob != 0) { if (player.GetModPlayer <OSRSplayer>().slayerLeft == 0) { player.GetModPlayer <OSRSplayer>().SlayerReward("Mazchna"); return("Well done! Here's your reward."); } else if (Main.rand.Next(2) == 0) { int a = player.GetModPlayer <OSRSplayer>().slayerMob; int am = player.GetModPlayer <OSRSplayer>().slayerLeft; string name = Lang.GetNPCName(a).ToString(); name = OSRSplayer.FixEndings(name, am); return("You're currently assigned to kill " + name + "; only " + am + " more to go."); } } switch (Main.rand.Next(4)) { case 0: return("'Ello, and what are you after then?"); case 1: return("I have a wide selection of Slayer equipment; take a look!"); case 2: return("You have currently completed " + player.GetModPlayer <OSRSplayer>().slayTasksComplete + " slayer tasks."); default: return("I'm a Slayer Master. I train adventurers to learn the weaknesses of seemingly invulnerable monsters. To learn how, you need to kill specific monsters. I'll identify suitable targets and assign you a quota."); } }
public override string GetChat() { Player player = Main.player[Main.myPlayer]; player.GetModPlayer <OSRSplayer>().SlayerTextUpdate(); if (player.GetModPlayer <OSRSplayer>().slayTasksComplete >= 40 && OSRSworld.slayBossProgress < 4) { return("Ah, you have completed a fair amount of my tasks already. " + "I suppose you are up for a greater challenge? " + "Once stationary pieces of stalactite in the marble caves have been moving on their own and gathering together to form a mass of some sort. " + "I have added an item to my shop that will most likely attract the being to you. " + "This is the toughest challenge I can provide, so if you manage to slay it, a new master will come and take my place in this world."); } if (player.GetModPlayer <OSRSplayer>().slayerMob != 0) { if (player.GetModPlayer <OSRSplayer>().slayerLeft == 0) { player.GetModPlayer <OSRSplayer>().SlayerReward("Chaeldar"); return("Well done! Here's your reward."); } else if (Main.rand.Next(2) == 0) { int a = player.GetModPlayer <OSRSplayer>().slayerMob; int am = player.GetModPlayer <OSRSplayer>().slayerLeft; string name = Lang.GetNPCName(a).ToString(); name = OSRSplayer.FixEndings(name, am); return("You're currently assigned to kill " + name + "; only " + am + " more to go."); } } switch (Main.rand.Next(4)) { case 0: return("'Ello, and what are you after then?"); case 1: return("I have a wide selection of Slayer equipment; take a look!"); case 2: return("You have currently completed " + player.GetModPlayer <OSRSplayer>().slayTasksComplete + " slayer tasks."); default: return("I'm a Slayer Master. I train adventurers to learn the weaknesses of seemingly invulnerable monsters. To learn how, you need to kill specific monsters. I'll identify suitable targets and assign you a quota."); } }
public override void OnChatButtonClicked(bool firstButton, ref bool shop) { if (firstButton) { shop = true; } if (!firstButton) { OSRSplayer mp = Main.player[Main.myPlayer].GetModPlayer <OSRSplayer>(); if (mp.slayerMob == 0) { mp.SlayerTask("Vannaka"); } else { string name = Lang.GetNPCName(mp.slayerMob).ToString(); name = OSRSplayer.FixEndings(name, mp.slayerLeft); Main.npcChatText = "You're still on an assignment. You need to finish that one first. You need to kill " + mp.slayerLeft + " " + name + "."; } } }
public override void GetChat(NPC npc, ref string chat) { Player player = Main.player[npc.FindClosestPlayer()]; OSRSplayer p = player.GetModPlayer <OSRSplayer>(); if (npc.type == NPCID.Guide && p.easyClue == 4) { player.GetModPlayer <OSRSplayer>().cluestep = 1; } if (npc.type == NPCID.Merchant && p.easyClue == 5) { player.GetModPlayer <OSRSplayer>().cluestep = 1; } if (npc.type == NPCID.Nurse && p.easyClue == 6) { player.GetModPlayer <OSRSplayer>().cluestep = 1; } if (npc.type == NPCID.Demolitionist && p.easyClue == 7) { player.GetModPlayer <OSRSplayer>().cluestep = 1; } if (npc.type == NPCID.Angler && p.easyClue == 8) { player.GetModPlayer <OSRSplayer>().cluestep = 1; } if (npc.type == NPCID.Dryad && p.mediumClue == 1) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.DyeTrader && p.mediumClue == 2) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.ArmsDealer && p.mediumClue == 3) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.DD2Bartender && p.mediumClue == 4) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.Painter && p.mediumClue == 5) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.Clothier && p.mediumClue == 6) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.Mechanic && p.mediumClue == 7) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.GoblinTinkerer && p.mediumClue == 8) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.Stylist && p.mediumClue == 9) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.TravellingMerchant && p.mediumClue == 10) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.WitchDoctor && p.mediumClue == 11) { player.GetModPlayer <OSRSplayer>().cluestep = 2; } if (npc.type == NPCID.Wizard && p.hardClue == 1) { player.GetModPlayer <OSRSplayer>().cluestep = 3; } if (npc.type == NPCID.PartyGirl && p.hardClue == 2) { player.GetModPlayer <OSRSplayer>().cluestep = 3; } if (npc.type == NPCID.TaxCollector && p.hardClue == 3) { player.GetModPlayer <OSRSplayer>().cluestep = 3; } if (npc.type == NPCID.Steampunker && p.hardClue == 4) { player.GetModPlayer <OSRSplayer>().cluestep = 3; } if (npc.type == NPCID.SkeletonMerchant && p.eliteClue == 1) { player.GetModPlayer <OSRSplayer>().cluestep = 4; } if (npc.type == NPCID.Cyborg && p.eliteClue == 2) { player.GetModPlayer <OSRSplayer>().cluestep = 4; } if (npc.type == NPCID.Truffle && p.eliteClue == 3) { player.GetModPlayer <OSRSplayer>().cluestep = 4; } if (npc.type == NPCID.Pirate && p.eliteClue == 4) { player.GetModPlayer <OSRSplayer>().cluestep = 4; } }