using System; using Common.World; using World.Network; using World.Scripting; using World.World; using Common.Constants; public class NewTest : NPCScript { public override void OnLoad() { SetName("_trefor"); SetRace(10002); SetBody(height: 1.0f); SetFace(skin: 23, eye: 27, eyeColor: 39, lip: 0); EquipItem(Pocket.Face, 0x1324, 0x1AB67C, 0xF09D3B, 0x007244); //7C B6 1A 3B 9D F0 44 72 00 EquipItem(Pocket.Head, "Guardian Helm", 0x706D49); EquipItem(Pocket.Hair, 0xFA5, 0x683E33, 0x683E33, 0x683E33); //333E6800 333E6800 333E6800 EquipItem(Pocket.Armor, "Guardian Suit", 0xA89C80, 0x32341A, 0x6D685F); //3D8D70 9BE3FB 5F686D EquipItem(Pocket.LeftHand2, "Short Sword", 0x4C3E25, 0x0B8509); EquipItem(Pocket.Shoe, "Guardian Boots", 0x2A2A2A); EquipItem(Pocket.Glove, "Guardian Gloves"); SetLocation(region: 1, x: 8787, y: 52527); SetDirection(160); SetStand("human/male/anim/male_natural_stand_npc_trefor"); } public override void OnTalk(WorldClient c) { MsgSelect(c, "What can I do for you?", "Start Conversation", "@talk", "Shop", "@shop"); } public override void OnSelect(WorldClient c, string r) { switch (r) { case "@shop": Msg(c, "How can I help you?."); OpenShop(c); break; case "@talk": Msg(c, "Nice to meet you."); Msg(c, true, false, "(Trefor is looking in my direction.)"); ShowKeywords(c); break; case "personal_info": Msg(c, "Hmm...Have something to ask me?", "I'm nothing but a regular fellow from this town.", "I am but a humble servant of Lymirark, whose duty is to protect this town."); ShowKeywords(c); break; case "nearby_rumors": Msg(c, "Recently,the people in this town have become somewhat anxious", "about the howling of wild animals outside.", "For some reason, thri howling seems to be getting a little but closer each day."); Msg(c, "That's why I'm standing guard like this."); ShowKeywords(c); break; default: Msg(c, "Can we change the subject?"); ShowKeywords(c); break; } } public override void OnEnd(WorldClient c) { Close(c, "(You ended your conversation with Trefor.)"); } }