<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=4752" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Need some help</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4752</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23348#p23348</link>
   <description>Alright Well I want to have a function that does the opposite as well. Like a racial attack mod. 100% normal 90% - 10% less and 110- 10% more</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23348#p23348</guid>
   <pubDate>Sat, 19 Oct 2013 19:02:44 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23343#p23343</link>
   <description>Assuming a straight linear scale, just look at what you want it to do. Assuming you&#039;re using integers.... int damage; int shield; shield = 100; damage = (int)((double)damage * ((double)shield / 100.0) );  That would increase damage based on the shield level, the opposite of what you want, but it&#039;s easy to see how the typecasting works here.  You want to use floating point math to scale your damage, and 1.0 would be &amp;quot;normal&amp;quot;.  You cast it back to an integer to truncate it and make i</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23343#p23343</guid>
   <pubDate>Sat, 19 Oct 2013 06:47:00 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23340#p23340</link>
   <description>alright question. I want to add in something like a defensemod  it would start out at 100% which is normal.  lets say we add 10% so it would be 110% I want it to decrease the damage done to you by 10% lets say we subtract 10% making it 90% I want it to increase the damage done to you by 10%  I know where I would put this for it to work. I just can&#039;t figure out the math part on it.  Any help ?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23340#p23340</guid>
   <pubDate>Fri, 18 Oct 2013 19:24:03 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23318#p23318</link>
   <description>Here&#039;s the equivalent spot in WileyMUD&#039;s code: [code] /* * Find first non blank */ for (begin = 0; (*(argument + begin) == &#039; &#039;); begin++); /* * Find length of first word * Order swapped by Quixadhal to fix say bug when using &amp;quot;&#039;&amp;quot; */ if ((*(argument + begin) == &#039;\&#039;&#039;) || (*(argument + begin) == &#039;:&#039;) || (*(argument + begin) == &#039;\&amp;quot;&#039;) || (*(argument + begin) == &#039;,&#039;) || (*(argument + begin) == &#039;@&#039;)) look_at = begin + 1; </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23318#p23318</guid>
   <pubDate>Mon, 7 Oct 2013 11:57:38 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23317#p23317</link>
   <description>it matters and afterall it was designed to catch &#039; and treat it like a command, it use to be a command for say or chat lol been a long time so dont recall which right off.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23317#p23317</guid>
   <pubDate>Mon, 7 Oct 2013 10:52:11 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23316#p23316</link>
   <description>That doesn&#039;t make sense.... If you&#039;re typing &amp;quot;final shine&amp;quot; to try to use the skill &amp;quot;final shine&amp;quot;, argument[0] *IS* alphabetic, so it won&#039;t enter that if statement. A better fix would be to set aside any skills that have spaces in their name and scan for those FIRST. [code] for( skillCheck = 0; skillCheck &amp;lt; multiwordSkillCount; skillCheck++ ) { if(strncasecmp(multiwordSkillName[skillCheck], argument, strlen(multiwordSkillName[skillCheck]) - 1) { // found skill, so make tha</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23316#p23316</guid>
   <pubDate>Mon, 7 Oct 2013 06:53:56 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Quixadhal)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23307#p23307</link>
   <description>thanks that worked perfectly :) </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23307#p23307</guid>
   <pubDate>Sun, 6 Oct 2013 14:09:54 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23306#p23306</link>
   <description>Ok here is the issue in interp.c find [code] /* * Grab the command word. * Special parsing so &#039; can be a command, also no spaces needed after punctuation. */ mudstrlcpy( logline, argument, sizeof( logline ) ); if( !isalpha( (int)argument[0] ) &amp;amp;&amp;amp; !isdigit( (int)argument[0] ) ) { command[0] = argument[0]; command[1] = &#039;\0&#039;; argument++; while( isspace( (int)*argument ) ) argument++; } </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23306#p23306</guid>
   <pubDate>Sun, 6 Oct 2013 13:06:48 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23305#p23305</link>
   <description>Quixadhal its more or less the same lol :) Ok, so I just added two skills to my mud, final flash and final shine and of course not useable till after a hotboot and then final flash is 163 and final shine is 164. Slookup works fine to show both, but when using it seems it always uses the final shine. Since I made both skills and target self and affect hit by 5 I just added in hitchar messages to show a message for what skill it was. And you are right on the fact that it has no way to know for </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23305#p23305</guid>
   <pubDate>Sun, 6 Oct 2013 12:57:31 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (Remcon)</author>
  </item>
  <item>
   <title>Need some help</title>
   <link>https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23298#p23298</link>
   <description>appericiate it :) trying to get the game open for round 2 of player testing. </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/need-some-help-4752/&amp;p=23298#p23298</guid>
   <pubDate>Sat, 5 Oct 2013 06:33:39 CDT</pubDate>
   <category>Coding</category>
   <author>nobody@example.com (dbna2)</author>
  </item>
 </channel>
</rss>
