<?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%3Ais_class_primary_for_spell</id>
		<title>MUDL:is class primary for spell - 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%3Ais_class_primary_for_spell"/>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:is_class_primary_for_spell&amp;action=history"/>
		<updated>2026-04-04T00:51:13Z</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:is_class_primary_for_spell&amp;diff=65253&amp;oldid=prev</id>
		<title>Teker at 22:56, 7 November 2018</title>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:is_class_primary_for_spell&amp;diff=65253&amp;oldid=prev"/>
				<updated>2018-11-07T22:56:14Z</updated>
		
		<summary type="html">&lt;p&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:56, 7 November 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L51&quot; &gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&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;[[Category:Building]]&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;[[Category:Building]]&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;[[Category:MUDL|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;MUDL&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;[[Category:MUDL|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is_class_primary_for_spell&lt;/ins&gt;]]&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:is_class_primary_for_spell&amp;diff=65252&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 | is_class_primary_for_spell |- ! Settable | No |- ! Returns | Bool...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.cyberlint.org/wiki/index.php?title=MUDL:is_class_primary_for_spell&amp;diff=65252&amp;oldid=prev"/>
				<updated>2018-11-07T22:40:01Z</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 | is_class_primary_for_spell |- ! Settable | No |- ! Returns | Bool...&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;
| is_class_primary_for_spell&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;
{|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;
! Parameter Options&lt;br /&gt;
|-&lt;br /&gt;
| PC Class (integer or string), Spell (integer or string)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This function returns True if the PC class is primary for a particular spell.  This means that the class is able to cast the spell at a lower level than any other class.  So for 'magic missile', 'magic-user' would return True and other classes would return False.  For spells like 'spirit watcher' where multiple classes are able to cast the spell at level 20, those classes would all return True whereas non-caster classes would all return False.&lt;br /&gt;
&lt;br /&gt;
A table of [[MUDL_PC_Class_Values]] is available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # intercept_cast_i&lt;br /&gt;
# If not primary, fail the spell&lt;br /&gt;
if (is_pc(%a) AND !is_class_primary_for_spell(class(%a, 1), %1),&lt;br /&gt;
(&lt;br /&gt;
    msg_character(%a, 'Your spell fizzles!'),&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;
&lt;br /&gt;
return(false)&lt;br /&gt;
@&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
setproc &amp;lt;parent&amp;gt; # PROC_ENABLED 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:MUDL|MUDL]]&lt;/div&gt;</summary>
		<author><name>Teker</name></author>	</entry>

	</feed>