Skip to content

Commit

Permalink
feat: Adds Rename system notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohicatv committed Jan 25, 2025
1 parent 7019186 commit e5f3df8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Projects/UOContent/Mobiles/AI/BaseAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ private void AddControlMasterEntries(ref PooledRefList<ContextMenuEntry> list)
list.Add(new InternalEntry(3006112, 14, OrderType.Stop, true)); // Command: Stop
list.Add(new InternalEntry(3006114, 14, OrderType.Stay, true)); // Command: Stay

// This command is on OSI. However, the cliloc must be manually added to client files.
list.Add(new InternalEntry(3006098, 14, OrderType.Rename, true)); // Command: Rename

if (m_Mobile.CanDrop)
{
list.Add(new InternalEntry(3006109, 14, OrderType.Drop, !isDeadPet)); // Command: Drop
}

// This command is on OSI. However, the cliloc must be manually added to client files.
list.Add(new InternalEntry(3006098, 14, OrderType.Rename, true)); // Rename

if (!m_Mobile.Summoned && m_Mobile is not GrizzledMare)
{
Expand Down Expand Up @@ -1117,6 +1117,10 @@ public virtual void OnCurrentOrderChanged()
case OrderType.Follow:
HandleFollowOrder();
break;

case OrderType.Rename:
HandleRenameOrder();
break;
}
}

Expand Down Expand Up @@ -1172,6 +1176,11 @@ private void HandleFollowOrder()
m_Mobile.PlaySound(m_Mobile.GetIdleSound());
}

public virtual void HandleRenameOrder()
{
m_Mobile.ControlMaster.SendMessage("Change name on pet health bar.");
}

public virtual bool DoOrderNone()
{
if (m_Mobile.Debug)
Expand Down

0 comments on commit e5f3df8

Please sign in to comment.