Put a check in the code before it creates the object, something like

for ( obj = ch->in_room->contents ; obj != NULL ; obj = obj->next_content )
{
    if ( obj->pIndexData->vnum == OBJ_VNUM_FOUNTAIN )
    {
        send_to_char("But there's already a fountain in here!\n\r", ch );
        return;
    }
}

If it finds the fountain, it'll complain, otherwise it'll continue

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brinny
Sent: Tuesday, April 12, 2005 10:01 PM
To: [email protected]
Subject: Max # of item help


I'm trying to do something similar to the spell
create_spring, but I want the object (for instance the
spring) loaded to the room to only be loaded a max
amount of once. So, if a player does this skill, it
will load the object into the room, and will only
allow them to load it once in the room.  If another
player comes into the room it will not allow them to
load it because it's already there. Hopefully that
makes sense. :] Anyone know how to do this? Thanks.


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to