Modernization Fixes & Updates to Default Values (#3)
This commit is contained in:
parent
445eddff68
commit
dcf64091b1
768 changed files with 10507 additions and 14196 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Server.Commands;
|
||||
|
|
@ -158,9 +157,8 @@ namespace Server.Engines.MLQuests
|
|||
}
|
||||
|
||||
Type index = ScriptCompiler.FindTypeByName(e.GetString(0));
|
||||
MLQuest quest;
|
||||
|
||||
if (index == null || !Quests.TryGetValue(index, out quest))
|
||||
if (index == null || !Quests.TryGetValue(index, out MLQuest quest))
|
||||
{
|
||||
m.SendMessage("Invalid quest type name.");
|
||||
return;
|
||||
|
|
@ -232,7 +230,7 @@ namespace Server.Engines.MLQuests
|
|||
{
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
ArrayList found = new ArrayList();
|
||||
List<object> found = new List<object>();
|
||||
|
||||
foreach (Item item in World.Items.Values)
|
||||
if (item.QuestItem)
|
||||
|
|
@ -303,10 +301,7 @@ namespace Server.Engines.MLQuests
|
|||
|
||||
MLQuestContext context = GetContext(pm);
|
||||
|
||||
MLQuest quest;
|
||||
MLQuestInstance entry;
|
||||
|
||||
if (!FindQuest(quester, pm, context, out quest, out entry))
|
||||
if (!FindQuest(quester, pm, context, out MLQuest quest, out MLQuestInstance entry))
|
||||
{
|
||||
Tell(quester, pm, 1080107); // I'm sorry, I have nothing for you at this time.
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue