Re: [SPELL] Question about objects & owners.

From: Stephen Wolfe (siv@CYBERENET.NET)
Date: 08/19/98


>   I made a clone spell, that clones a piece of EQ or a weapon, and then
> fires off an event, and after so many minutes, it extracts the object.
> Everything works fine, but I am curious how to resolve a few things. If
> someone were to give the object to another player, how would I switch the
> ch pointer to the new owner? I need to do this because as the item fades,
> it gives messages to the caster. If the caster gives it away and quits,
> MUD will probably crash (I have not tested this because I assume thats
> what will happen). Is there a way to check to make sure the person that is
> either wielding it or in its inventory is the same as the ch pointer in
> the event structure?

why not just include a pointer to the object itself, then you can send the
message to the person currently carrying via obj->carrying it regardless
of whether or not that is the original caster..

siv


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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