<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=506" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: How do I add new commands?</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=506</link>
  <description>The largest Smaug community resource site. - Mini-guide</description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>How do I add new commands?</title>
   <link>https://smaugmuds.afkmods.com/topic/how-do-i-add-new-commands-506/&amp;p=2048#p2048</link>
   <description> Since this gets asked alot, I figured I&#039;d improvise a short hack guide to this. Most Smaug bases require 4 things to add a new command: 1. The do_fun code for the command itself 2. A DECLARE_DO_FUN line in mud.h. 3. 2 entries in tables.c. 4. Use of the cedit command to activate it. AFKMud does not require steps 2 and 3, but there is a difference in how step 1 needs to be done. For a command to work, it must be defined as a CMDF instead of a void. Example: void do_something( CHAR_DATA *ch, </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/how-do-i-add-new-commands-506/&amp;p=2048#p2048</guid>
   <pubDate>Tue, 6 Jan 2004 08:11:00 CST</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Samson)</author>
  </item>
 </channel>
</rss>
