<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4935" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: obj_cast_spell possible bug?</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4935</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>obj_cast_spell possible bug?</title>
   <link>https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24097#p24097</link>
   <description>Would you want to address this in things like do_brandish( ) and do_zap( ) rather than in obj_cast_spell( )?  What do yours currently look like where they call obj_cast_spell( )? </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24097#p24097</guid>
   <pubDate>Wed, 19 Jul 2023 03:20:08 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (GatewaySysop)</author>
  </item>
  <item>
   <title>obj_cast_spell possible bug?</title>
   <link>https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24096#p24096</link>
   <description>Well I tried putting this in place in obj_cast_spell function and found it will cast the spell but still goes by the hard coded spell level and not obj-&amp;gt;value[0] that the builder sets a wand or staff to be brandished too. [code] if ( skill-&amp;gt;spell_fun != spell_smaug &amp;amp;&amp;amp; obj ) { if((sn = skill_lookup(skill-&amp;gt;name)) &amp;lt; 0) return 0; (*skill_table[sn]-&amp;gt;spell_fun) (sn, obj-&amp;gt;value[0], ch, vo); return 0; } else retcode = (*skill-&amp;gt;spell_fun) (sn, level, ch, vo); [/code] </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24096#p24096</guid>
   <pubDate>Mon, 5 Jun 2023 19:27:58 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>obj_cast_spell possible bug?</title>
   <link>https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24095#p24095</link>
   <description>Maybe this is a old bug that Druid fixed years ago, but I think smaugfuss has same function. I think the way to fix it, is to use skill_lookup function like spec fun stuff does instead of return retcode that obj_cast_spell currently does.  Than you could still change the level to obj-&amp;gt;value[0]. Prob could still retcode return if skill-&amp;gt;type smaug_spell </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24095#p24095</guid>
   <pubDate>Mon, 5 Jun 2023 17:39:31 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
  <item>
   <title>obj_cast_spell possible bug?</title>
   <link>https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24094#p24094</link>
   <description>I think I might have found a bug.  Only affects non code spell_smaug spells. obj_cast_spell ignores obj-&amp;gt;value[0] when it goes to hard coded spell that has level set. For instance af.level = ch-&amp;gt;level in a hard coded spell I have the spell fly coded to af.level = ch-&amp;gt;level so if a object has fly spell as brandish. Instead of looking for obj-&amp;gt;value[0] for spell level the builder sets it too, it goes right to spell_fly af.level Anyway, maybe not a bug anyone else still has, but I ha</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/objcastspell-possible-bug-4935/&amp;p=24094#p24094</guid>
   <pubDate>Sun, 4 Jun 2023 21:26:09 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Vladaar)</author>
  </item>
 </channel>
</rss>
