diff --git a/P3D/Entites/Enviroment/ItemObject.vb b/P3D/Entites/Enviroment/ItemObject.vb index 0dc7c017b..a05476997 100644 --- a/P3D/Entites/Enviroment/ItemObject.vb +++ b/P3D/Entites/Enviroment/ItemObject.vb @@ -156,7 +156,19 @@ SoundManager.PlaySound("Receive_Item", True) End If Screen.TextBox.TextColor = TextBox.PlayerColor - Screen.TextBox.Show(Localization.GetString("item_found", " found~").Replace("", Core.Player.Name) & Me.Item.OneLineName() & "!*" & Core.Player.Inventory.GetMessageReceive(Item, 1), {Me}) + + Dim foundString As String = Localization.GetString("item_found", " found~").Replace("", Core.Player.Name) & Me.Item.OneLineName() + If Item.ItemType = Items.ItemTypes.Machines Then + If Item.IsGameModeItem = True Then + foundString &= " " & CType(Item, GameModeItem).gmTeachMove.Name & "!*" + Else + foundString &= " " & CType(Item, Items.TechMachine).Attack.Name & "!*" + End If + Else + foundString &= "!*" + End If + + Screen.TextBox.Show(foundString & Core.Player.Inventory.GetMessageReceive(Item, 1), {Me}) Dim ItemID As String If Me.Item.IsGameModeItem Then ItemID = Me.Item.gmID diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb index 4e44dcc37..9125ab9f0 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoItem.vb @@ -98,12 +98,34 @@ Dim Amount As Integer = int(argument.GetSplit(1)) If Not item Is Nothing Then - Dim receiveString As String = Localization.GetString("item_received_single", "Received the~") & item.OneLineName() & ".*" - If Amount > 1 Then - receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.OneLinePluralName() & ".*" + Dim receiveString As String = Localization.GetString("item_received_single", "Received the~") & item.OneLineName() + If item.ItemType = Items.ItemTypes.Machines Then + If Amount > 1 Then + If item.IsGameModeItem = True Then + receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.OneLinePluralName() & " " & CType(item, GameModeItem).gmTeachMove.Name & ".*" + Else + receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.OneLinePluralName() & " " & CType(item, Items.TechMachine).Attack.Name & ".*" + End If + Else + If item.IsGameModeItem = True Then + receiveString &= " " & CType(item, GameModeItem).gmTeachMove.Name & ".*" + Else + receiveString &= " " & CType(item, Items.TechMachine).Attack.Name & ".*" + End If + End If + Else + If Amount > 1 Then + receiveString = Localization.GetString("item_received_multiple", "Received") & " " & Amount & "~" & item.OneLinePluralName() & ".*" + Else + receiveString &= ".*" + End If End If - SoundManager.PlaySound("Receive_Item", True) + If item.OriginalName.Contains("HM") Then + SoundManager.PlaySound("Receive_HM", True) + Else + SoundManager.PlaySound("Receive_Item", True) + End If Screen.TextBox.reDelay = 0.0F Screen.TextBox.TextColor = TextBox.PlayerColor