<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.cyberlint.org/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Asend_msgs_for_play</id>
		<title>MUDL:send msgs for play - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.cyberlint.org/wiki/index.php?action=history&amp;feed=atom&amp;title=MUDL%3Asend_msgs_for_play"/>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:send_msgs_for_play&amp;action=history"/>
		<updated>2026-04-05T01:08:27Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>http://www.cyberlint.org/wiki/index.php?title=MUDL:send_msgs_for_play&amp;diff=65080&amp;oldid=prev</id>
		<title>Teker: /* Parameters */</title>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:send_msgs_for_play&amp;diff=65080&amp;oldid=prev"/>
				<updated>2016-03-04T22:18:24Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameters&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:18, 4 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Integer&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Integer&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Id of the song being &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cast&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Id of the song being &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;played&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Boolean&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Boolean&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| FALSE if this is the start of a song or TRUE if another verse of a song is being played.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| FALSE if this is the start of a song or TRUE if another verse of a song is being played.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Output =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Output =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	<entry>
		<id>http://www.cyberlint.org/wiki/index.php?title=MUDL:send_msgs_for_play&amp;diff=65077&amp;oldid=prev</id>
		<title>Teker: Created page with &quot; __TOC__   = Summary =  {|class=&quot;abilitiestable&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; ! Function Name | send_msgs_for_play |- ! Settable | No |- ! Returns | Boolean |}...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:send_msgs_for_play&amp;diff=65077&amp;oldid=prev"/>
				<updated>2016-03-04T22:12:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; __TOC__   = Summary =  {|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; ! Function Name | send_msgs_for_play |- ! Settable | No |- ! Returns | Boolean |}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
! Function Name&lt;br /&gt;
| send_msgs_for_play&lt;br /&gt;
|-&lt;br /&gt;
! Settable&lt;br /&gt;
| No&lt;br /&gt;
|-&lt;br /&gt;
! Returns&lt;br /&gt;
| Boolean&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This function sends the appropriate messages for playing a song.  It is most likely to be used inside the intercept_play function but could be used in other places.  The function returns TRUE if all the parameters are valid and FALSE otherwise.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Parameters =&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot; | Arguments&lt;br /&gt;
|-&lt;br /&gt;
| Character&lt;br /&gt;
| Actor playing the song.&lt;br /&gt;
|-&lt;br /&gt;
| Integer&lt;br /&gt;
| Id of the song being cast.&lt;br /&gt;
|-&lt;br /&gt;
| Boolean&lt;br /&gt;
| FALSE if this is the start of a song or TRUE if another verse of a song is being played.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Output =&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;abilitiestable&amp;quot; border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
! Person&lt;br /&gt;
! Message Sent&lt;br /&gt;
|-&lt;br /&gt;
| Actor&lt;br /&gt;
| You begin to play &amp;lt;Song&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
You play another verse of &amp;lt;Song&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| Others in Room&lt;br /&gt;
| &amp;lt;Actor&amp;gt; begins to play &amp;lt;Song&amp;gt;.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;Actor&amp;gt; plays another verse of &amp;lt;Song&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
addproc &amp;lt;mobile&amp;gt; mudl&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; 0 intercept_play_ib&lt;br /&gt;
&lt;br /&gt;
if (spell_name(%1) != 'lion chorus',&lt;br /&gt;
(&lt;br /&gt;
    # Wrong song.&lt;br /&gt;
    return(false)&lt;br /&gt;
)),&lt;br /&gt;
&lt;br /&gt;
if (false = %2,&lt;br /&gt;
(&lt;br /&gt;
    # Allow the initial play to run as normal.&lt;br /&gt;
    cmd(%a, 'play ~`lion chorus~` ' + concatenate(%s)),&lt;br /&gt;
    cmd(%c, 'say What a lovely song.')&lt;br /&gt;
),&lt;br /&gt;
(&lt;br /&gt;
    # Show the replay messages.&lt;br /&gt;
    send_msgs_for_play(%a, %1, %2),&lt;br /&gt;
    cmd(%c, 'say It keeps getting better!')&lt;br /&gt;
)),&lt;br /&gt;
&lt;br /&gt;
# Mark song as successful - full mana drain.&lt;br /&gt;
set(flag(%f, 'procedure-flags', 'success'), true),&lt;br /&gt;
&lt;br /&gt;
# Stop future processing of this command&lt;br /&gt;
set(flag(%f, 'procedure-flags', 'overrode-command'), true),&lt;br /&gt;
return(true)@&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;mobile&amp;gt; 0 PROC_ENABLED 1&lt;br /&gt;
compile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:MUDL|send_msgs_for_play]]&lt;/div&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	</feed>