> >1. when the item is loaded, at the same time, let it set the objects
level to characters level...
> >
> >obj->level == ch->level
> *SNIP*
> obj = create_obj(get_obj_index(QUEST_ITEM1),obj->level == ch->level);

first things first, i was hasty in my reply before.. there are multiple
things wrong with the above...
    a) trying to assign the level of the obj before initing it..
        obj->level == ch->level
        obj = create_obj(get_obj_index(QUEST_ITEM1),obj->level ==
ch->level);

    b) using the equality operator instead of assignment == vs. =

    c) the function create_obj, at least in my version of ROM?
       standard as far as i know, looks like so

       create_object( OBJ_INDEX_DATA *pObjIndex, int level )

that last variable is what you need to use correctly..
like so: create_obj( get_obj_index(QUEST_ITEM1), ch->level);

that will set your obj level on creation to the correct level instead of
after creation assignment with obj->level = ch->level

^_^


> free_string(obj->description);
> sprintf(buf, "Please return this to {C%s{x if found. Thank you.",ch-name);
> obj->description = str_dup(buf);
> *end of snip*
<snip>
> Charlie
> the Noobz

once again,
Steve, the bored :)


Reply via email to