<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendHelpMessage</id>
	<title>API:SendHelpMessage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendHelpMessage"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendHelpMessage&amp;action=history"/>
	<updated>2026-10-18T01:23:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:SendHelpMessage&amp;diff=30698&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendHelpMessage&amp;diff=30698&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:41Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Social}}&lt;br /&gt;
Sends a help request to the server: an appeal (petition), a report, a bug report, feedback, or an update or cancellation of an appeal.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendHelpMessage(helpType, topic, category, details, field1, string1, field2, string2, field3, string3, field4, string4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;helpType : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;GameData.HelpType&amp;lt;/code&amp;gt; value: &amp;lt;code&amp;gt;CREATE_APPEAL_NON_VALIDATED&amp;lt;/code&amp;gt; (0), &amp;lt;code&amp;gt;CREATE_APPEAL_NAMING_VIOLATION&amp;lt;/code&amp;gt; (1), &amp;lt;code&amp;gt;CREATE_APPEAL_VIOLATION_REPORT&amp;lt;/code&amp;gt; (2), &amp;lt;code&amp;gt;CREATE_APPEAL_GOLD_SELLER&amp;lt;/code&amp;gt; (3), &amp;lt;code&amp;gt;CREATE_BUG_REPORT&amp;lt;/code&amp;gt; (4), &amp;lt;code&amp;gt;CREATE_FEEDBACK&amp;lt;/code&amp;gt; (5), &amp;lt;code&amp;gt;UPDATE_APPEAL&amp;lt;/code&amp;gt; (6), &amp;lt;code&amp;gt;CANCEL_APPEAL&amp;lt;/code&amp;gt; (7).&lt;br /&gt;
;topic : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Subtype of the message, for appeals a &amp;lt;code&amp;gt;GameData.AppealTopic&amp;lt;/code&amp;gt; value; for bug reports and feedback the selected type. Sent as an 8-bit value.&lt;br /&gt;
;category : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Topic category.&lt;br /&gt;
;details : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – The text of the message.&lt;br /&gt;
;field1 : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Field id for &amp;lt;code&amp;gt;string1&amp;lt;/code&amp;gt;.&lt;br /&gt;
;string1 : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Extra text field 1.&lt;br /&gt;
;field2 : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Field id for &amp;lt;code&amp;gt;string2&amp;lt;/code&amp;gt;.&lt;br /&gt;
;string2 : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Extra text field 2.&lt;br /&gt;
;field3, string3, field4, string4 : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Not used by the client, but must be given with these types.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* If &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt; is empty and &amp;lt;code&amp;gt;helpType&amp;lt;/code&amp;gt; is not &amp;lt;code&amp;gt;CANCEL_APPEAL&amp;lt;/code&amp;gt;, the client shows an error dialog and sends nothing.&lt;br /&gt;
* Which of the other arguments are sent depends on &amp;lt;code&amp;gt;helpType&amp;lt;/code&amp;gt;. Bug reports and feedback send &amp;lt;code&amp;gt;topic&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;UPDATE_APPEAL&amp;lt;/code&amp;gt; sends only &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;CANCEL_APPEAL&amp;lt;/code&amp;gt; sends no text.&lt;br /&gt;
* Any &amp;lt;code&amp;gt;helpType&amp;lt;/code&amp;gt; above 7 sends nothing.&lt;br /&gt;
* If the Lua state is not available, nothing happens.&lt;br /&gt;
* The function needs at least twelve arguments and only reads the last twelve.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument has the wrong type.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Sending a bug report, from &amp;lt;code&amp;gt;default/ea_helpwindow/source/bugreportwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendHelpMessage(GameData.HelpType.CREATE_BUG_REPORT, BugReportWindow.selectedType, L&amp;quot;&amp;quot;,&lt;br /&gt;
                TextEditBoxGetText(&amp;quot;BugReportWindowText&amp;quot;), 0, L&amp;quot;&amp;quot;, 0, L&amp;quot;&amp;quot;, 0, L&amp;quot;&amp;quot;, 0, L&amp;quot;&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parameter list, as documented in the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- SendHelpMessage expects the following params:&lt;br /&gt;
--      param1 (number) = The type of help message this is, defined by GameData.HelpType.*&lt;br /&gt;
--      param2 (number) = The subtype, aka topic, of this message.  Defined by GameData.AppealTopic.*&lt;br /&gt;
--      param3 (WString) = The sub-subtype, aka topic category, of this message. Defined by EViolation&lt;br /&gt;
--      param4 (WString) = The details field of this message.&lt;br /&gt;
--      param5 (number)  = field ID for string 1&lt;br /&gt;
--      param6 (WString) = Generic string1 param&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:SendBugReport|SendBugReport]]&lt;br /&gt;
* [[API:AddTemporaryIgnore|AddTemporaryIgnore]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>