Re: [Circle] Check for string in do_bury

From: Haddixx (haddixx@megamed.com)
Date: 07/26/96


If all you need to do is identify if the object is a corpse or not why
not check for the corpse identifier flag (or whatever it is called)
object value #3 instead of keywords? 

if(GET_OBJ_VAL(obj, 3) == 1) then its a corpse 

much simplier and then players can use any of keywords for the corpse.

-Brian



On Jul 26, 11:17am, Linebacker wrote:
> Subject: [Circle] Check for string in do_bury
> I am adding a do_bury command similiar to sacrifice on
> most muds.
> 
> It works fine excepts I need a check to make sure
> the arg is 'corpse'
> 
> How would I code a check for this, I have tried stuff life
> 
> if (arg != 'corpse')
> 
> if (arg != item_to_bury)
>  where item_to_bury is a const char []
> 
> And several other vaiations of this but I keep
> getting warnings.
> 
> I just want a simple check so that players must
> enter corpse, or the function reutrns.
> 
> Right now players can 'bury' any container.
> 
> Thanks;
> 
> Chuck
> 
>-- End of excerpt from Linebacker

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Haddixx             |   -=-=-Implementor of Avalanche MUD-=-=-    |   
+ Brian M. Menges     + Running at: 143.207.31.45 8000              +
| haddixx@megamed.com |   Web Page: http://www.megamed.com/~haddixx |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/07/00 PST