public override void OnAccept() { base.OnAccept(); Owner.SendGump(new QuestInfoGump(1075736)); // Excellent. When thou hast satisfied the needs of the most humble, thou wilt be given an item meant for me. Take this <B>brass ring</B> to start ye on the way. Item cloak = new GreyCloak(); Item ring = new BrassRing(); m_QuestItems.Add(cloak); m_QuestItems.Add(ring); Owner.Backpack.DropItem(cloak); Owner.Backpack.DropItem(ring); List <Type> itemTypes = new List <Type>(HumilityQuestMobileInfo.ItemTypes); List <Type> mobTypes = new List <Type>(HumilityQuestMobileInfo.MobileTypes); for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(1, itemTypes.Count - 2); Type t = itemTypes[ran]; itemTypes.Remove(t); itemTypes.Insert(Utility.RandomMinMax(1, itemTypes.Count - 2), t); } for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(0, mobTypes.Count - 2); if (ran > 0) { Type t = mobTypes[ran]; mobTypes.Remove(t); mobTypes.Insert(Utility.RandomMinMax(1, mobTypes.Count - 2), t); } } for (int i = 0; i < mobTypes.Count; i++) { int mobIndex = HumilityQuestMobileInfo.GetNPCIndex(mobTypes[i]); int need = i; int give = need + 1; Type needs = itemTypes[need]; Type gives = itemTypes[give]; m_Infos[mobIndex] = new HumilityQuestMobileInfo(needs, gives, HumilityQuestMobileInfo.GetLoc(needs), HumilityQuestMobileInfo.GetLoc(gives)); } }
public override void OnAccept() { base.OnAccept(); Item cloak = new GreyCloak(); Item ring = new BrassRing(); m_QuestItems.Add(cloak); m_QuestItems.Add(ring); Owner.Backpack.DropItem(cloak); Owner.Backpack.DropItem(ring); List <Type> itemTypes = new List <Type>(HumilityQuestMobileInfo.ItemTypes); List <Type> mobTypes = new List <Type>(HumilityQuestMobileInfo.MobileTypes); for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(1, itemTypes.Count - 2); Type t = itemTypes[ran]; itemTypes.Remove(t); itemTypes.Insert(Utility.RandomMinMax(1, itemTypes.Count - 2), t); } for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(0, mobTypes.Count - 2); if (ran > 0) { Type t = mobTypes[ran]; mobTypes.Remove(t); mobTypes.Insert(Utility.RandomMinMax(1, mobTypes.Count - 2), t); } } for (int i = 0; i < mobTypes.Count; i++) { int mobIndex = HumilityQuestMobileInfo.GetNPCIndex(mobTypes[i]); int need = i; int give = need + 1; Type needs = itemTypes[need]; Type gives = itemTypes[give]; m_Infos[mobIndex] = new HumilityQuestMobileInfo(needs, gives, HumilityQuestMobileInfo.GetLoc(needs), HumilityQuestMobileInfo.GetLoc(gives)); } }
public override void OnRefuse() { GreyCloak item = Owner.Backpack.FindItemByType(typeof(GreyCloak)) as GreyCloak; if (item == null) { item = Owner.FindItemOnLayer(Layer.Cloak) as GreyCloak; } if (item != null) { item.Owner = Owner; Gareth.AddQuestStatus(Owner, HumilityQuestStatus.RewardRefused); } }
public override void OnAccept() { base.OnAccept(); Owner.SendGump(new QuestInfoGump(1075736)); // Excellent. When thou hast satisfied the needs of the most humble, thou wilt be given an item meant for me. Take this <B>brass ring</B> to start ye on the way. Item cloak = new GreyCloak(); Item ring = new BrassRing(); m_QuestItems.Add(cloak); m_QuestItems.Add(ring); Owner.Backpack.DropItem(cloak); Owner.Backpack.DropItem(ring); List<Type> itemTypes = new List<Type>(HumilityQuestMobileInfo.ItemTypes); List<Type> mobTypes = new List<Type>(HumilityQuestMobileInfo.MobileTypes); for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(1, itemTypes.Count - 2); Type t = itemTypes[ran]; itemTypes.Remove(t); itemTypes.Insert(Utility.RandomMinMax(1, itemTypes.Count - 2), t); } for (int i = 0; i < 25; i++) { int ran = Utility.RandomMinMax(0, mobTypes.Count - 2); if (ran > 0) { Type t = mobTypes[ran]; mobTypes.Remove(t); mobTypes.Insert(Utility.RandomMinMax(1, mobTypes.Count - 2), t); } } for (int i = 0; i < mobTypes.Count; i++) { int mobIndex = HumilityQuestMobileInfo.GetNPCIndex(mobTypes[i]); int need = i; int give = need + 1; Type needs = itemTypes[need]; Type gives = itemTypes[give]; m_Infos[mobIndex] = new HumilityQuestMobileInfo(needs, gives, HumilityQuestMobileInfo.GetLoc(needs), HumilityQuestMobileInfo.GetLoc(gives)); } }