Removes literal variables (#257)
This commit is contained in:
parent
580da8a0cc
commit
4d6e584b6c
359 changed files with 1306 additions and 1306 deletions
|
|
@ -153,37 +153,37 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
|
||||
if (from.Race == targetRace)
|
||||
{
|
||||
@from.SendLocalizedMessage(1111918); // You are already that race.
|
||||
from.SendLocalizedMessage(1111918); // You are already that race.
|
||||
}
|
||||
else if (!MondainsLegacy.CheckML(from, false))
|
||||
{
|
||||
@from.SendLocalizedMessage(1073651); // You must have Mondain's Legacy before proceeding...
|
||||
from.SendLocalizedMessage(1073651); // You must have Mondain's Legacy before proceeding...
|
||||
}
|
||||
else if (!from.Alive)
|
||||
{
|
||||
@from.SendLocalizedMessage(1073646); // Only the living may proceed...
|
||||
from.SendLocalizedMessage(1073646); // Only the living may proceed...
|
||||
}
|
||||
else if (from.Mounted)
|
||||
{
|
||||
@from.SendLocalizedMessage(1073647); // You may not continue while mounted...
|
||||
from.SendLocalizedMessage(1073647); // You may not continue while mounted...
|
||||
}
|
||||
else if (!from.CanBeginAction<PolymorphSpell>() || DisguiseTimers.IsDisguised(from) ||
|
||||
AnimalForm.UnderTransformation(from) || !from.CanBeginAction<IncognitoSpell>() ||
|
||||
from.IsBodyMod) // TODO: Does this cover everything?
|
||||
{
|
||||
@from.SendLocalizedMessage(1073648); // You may only proceed while in your original state...
|
||||
from.SendLocalizedMessage(1073648); // You may only proceed while in your original state...
|
||||
}
|
||||
else if (from.Spell?.IsCasting == true)
|
||||
{
|
||||
@from.SendLocalizedMessage(1073649); // One may not proceed while embracing magic...
|
||||
from.SendLocalizedMessage(1073649); // One may not proceed while embracing magic...
|
||||
}
|
||||
else if (from.Poisoned)
|
||||
{
|
||||
@from.SendLocalizedMessage(1073652); // You must be healthy to proceed...
|
||||
from.SendLocalizedMessage(1073652); // You must be healthy to proceed...
|
||||
}
|
||||
else if (IsWearingEquipment(from))
|
||||
{
|
||||
@from.SendLocalizedMessage(1073650); // To proceed you must be unburdened by equipment...
|
||||
from.SendLocalizedMessage(1073650); // To proceed you must be unburdened by equipment...
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ namespace Server.Items
|
|||
|
||||
if (ret)
|
||||
{
|
||||
DestroyItem(@from);
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
@ -38,7 +38,7 @@ namespace Server.Items
|
|||
|
||||
if (ret)
|
||||
{
|
||||
DestroyItem(@from);
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
@ -50,7 +50,7 @@ namespace Server.Items
|
|||
|
||||
if (ret && Parent != from.Backpack)
|
||||
{
|
||||
DestroyItem(@from);
|
||||
DestroyItem(from);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -43,11 +43,11 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
if (!from.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
@from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
}
|
||||
else if (!IsChildOf(from.Backpack))
|
||||
{
|
||||
@from.SendLocalizedMessage(1042593); // That is not in your backpack.
|
||||
from.SendLocalizedMessage(1042593); // That is not in your backpack.
|
||||
}
|
||||
else if (MLQuestSystem.Enabled && CanGiveMLQuest && from is PlayerMobile mobile)
|
||||
{
|
||||
|
|
@ -121,11 +121,11 @@ namespace Server.Engines.MLQuests.Items
|
|||
{
|
||||
if (!from.InRange(GetWorldLocation(), 2))
|
||||
{
|
||||
@from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 1019045); // I can't reach that.
|
||||
}
|
||||
else if (!IsChildOf(from.Backpack))
|
||||
{
|
||||
@from.SendLocalizedMessage(1042593); // That is not in your backpack.
|
||||
from.SendLocalizedMessage(1042593); // That is not in your backpack.
|
||||
}
|
||||
else if (MLQuestSystem.Enabled && CanGiveMLQuest && from is PlayerMobile mobile)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -90,11 +90,11 @@ namespace Server.Engines.MLQuests.Mobiles
|
|||
if (!from.Hidden && !from.HasGump<RaceChangeConfirmGump>() &&
|
||||
!RaceChangeConfirmGump.IsPending(from.NetState) && CanTalkTo(from))
|
||||
{
|
||||
TalkTo(@from as PlayerMobile);
|
||||
TalkTo(from as PlayerMobile);
|
||||
}
|
||||
else if (fromClick)
|
||||
{
|
||||
DenyTalk(@from);
|
||||
DenyTalk(from);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue