Got tutorial quests working again. Integrated Jorges DftSea work, thanks!

This commit is contained in:
Filip Maj 2022-02-20 23:03:16 -05:00
parent 0b67f8e436
commit 0cdeb5d9ac
5 changed files with 276 additions and 277 deletions

View file

@ -1820,17 +1820,17 @@ namespace Meteor.Map.Actors
public Quest GetTutorialQuest(Npc npc)
{
if (npc.CurrentArea.RegionId != 101 || npc.CurrentArea.RegionId != 103 || npc.CurrentArea.RegionId != 104)
return null;
switch (npc.GetActorClassId())
if (npc.CurrentArea.RegionId == 101 || npc.CurrentArea.RegionId == 103 || npc.CurrentArea.RegionId == 104)
{
case 1000137:
return (Quest)Server.GetStaticActors("Trl0l1");
case 1000230:
return (Quest)Server.GetStaticActors("Trl0g1");
case 1000841:
return (Quest)Server.GetStaticActors("Trl0u1");
switch (npc.GetActorClassId())
{
case 1000137:
return (Quest)Server.GetStaticActors("Trl0l1");
case 1000230:
return (Quest)Server.GetStaticActors("Trl0g1");
case 1000841:
return (Quest)Server.GetStaticActors("Trl0u1");
}
}
return null;
}