<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=4038" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Get Mob A to check whether Mob B has an item?</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4038</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17583#p17583</link>
   <description> [quote=Hanaisse]I don&#039;t think I&#039;d use a speech prog... there&#039;s no indication the PC is going to say anything to trigger it. I&#039;d be inclined to use a greet prog (if Mob A is stationary) or an entry prog (if Mob A is a wanderer). Another possibility is a rand prog and have Mob A teleport to the PC. Is there any reason you want it to trigger on NPC&#039;s? My opinion but I find creating fights between mobs that no one will see kind of unnecessary.[/quote] A speech prog is easier to trigger when</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17583#p17583</guid>
   <pubDate>Thu, 30 Apr 2009 19:30:05 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Banner)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17579#p17579</link>
   <description>For those of you who were wondering what the spec_patrolman code conversion might be (this worked): [code] #define OBJ_VNUM_WHISTLE 18516 #define MOB_VNUM_PATROLMAN 18206 bool spec_patrolman(CHAR_DATA *ch) { CHAR_DATA *vch,*victim = NULL; OBJ_DATA *obj; char *message; int count = 0; if (!IS_AWAKE(ch) || ch-&amp;gt;in_room == NULL ||  IS_AFFECTED(ch,AFF_CHARM) || ch-&amp;gt;fighting != NULL) return FALSE; /* look for a fight in the room */ // for( </description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17579#p17579</guid>
   <pubDate>Thu, 30 Apr 2009 14:00:45 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (irbobo)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17578#p17578</link>
   <description>It&#039;s pretty difficult to create truly dynamic and interesting behavior in mudprog; oftentimes coding up a spec_fun routine is the easier option. The downside is of course that to modify it, you have to recompile and re/hotboot the game.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17578#p17578</guid>
   <pubDate>Thu, 30 Apr 2009 13:21:39 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (David Haley)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17577#p17577</link>
   <description>Well I was converting the hood.are from Rom 2.4 area format over and was wondering if I could do the gang actions via olc instead of hardcoding them as specials... I opted to hardcoding the patrolmans code..</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17577#p17577</guid>
   <pubDate>Thu, 30 Apr 2009 13:19:31 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (irbobo)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17576#p17576</link>
   <description>I don&#039;t think I&#039;d use a speech prog... there&#039;s no indication the PC is going to say anything to trigger it. I&#039;d be inclined to use a greet prog (if Mob A is stationary) or an entry prog (if Mob A is a wanderer). Another possibility is a rand prog and have Mob A teleport to the PC. Is there any reason you want it to trigger on NPC&#039;s? My opinion but I find creating fights between mobs that no one will see kind of unnecessary.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17576#p17576</guid>
   <pubDate>Thu, 30 Apr 2009 12:09:41 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Hanaisse)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17572#p17572</link>
   <description>[code] &amp;gt; speech_prog bobo if mobinroom(101) &amp;gt;= 1 mpecho Mob Here! if ovnumhere(100) &amp;gt;= 1 mpecho Object Here! else mpecho No object! endif else mpecho No mob! endif [/code] Edit as you please. Note that you can&#039;t detect an object another player has using a program like this. It can: &amp;lt;place&amp;gt; definitions: ... room  - in the room the mobile is in ... wear  - worn by the mobile as equipment ... inv   - in the mobile&#039;s inventory ... carry - worn or in inventory ...</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17572#p17572</guid>
   <pubDate>Wed, 29 Apr 2009 23:08:15 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Banner)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17571#p17571</link>
   <description>OLC preferably</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17571#p17571</guid>
   <pubDate>Wed, 29 Apr 2009 22:13:56 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (irbobo)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17570#p17570</link>
   <description>You should probably specify if you&#039;re looking for this to be done via code or OLC.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17570#p17570</guid>
   <pubDate>Wed, 29 Apr 2009 22:03:31 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (Zeno)</author>
  </item>
  <item>
   <title>Get Mob A to check whether Mob B has an item?</title>
   <link>https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17569#p17569</link>
   <description>I know this is probably simple but for some reason I&#039;m having the worst of luck getting it to work. Basically Mob A randomly checks the room for a random MOB lets say Mob B and then checks to see if Mob B is wearing item with vnum xxx and if so Mob A attacks Mob B Oh and Mob B can either be a NPC or PC... Is this possible?</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/get-mob-a-to-check-whether-mob-b-has-an-item-4038/&amp;p=17569#p17569</guid>
   <pubDate>Wed, 29 Apr 2009 21:50:53 CDT</pubDate>
   <category>SmaugFUSS</category>
   <author>nobody@example.com (irbobo)</author>
  </item>
 </channel>
</rss>
