[Circle] [C] obj_from_char

From: Brian Guilbault (guil9964@nova.gmi.edu)
Date: 11/02/96


I have a problem with the "Throw" skill I am writing. Everything works 
great until I try to remove the obj from the char and put it into the 
target room. I know what the problem is but can't seem to fix it. Here's 
what I am doing:

unequip_char(ch, WEAR_WIELD);
obj_to_room(weapon, target_room);

Now 'weapon' is defined as the object that ch is wielding, so when I try 
to obj_from_char it, it isn't wielded anymore and that's why I get the 
crash. How can I reorder this, or redefine weapon so that it exists? I 
have tried:

weapon = unequip_obj(ch, WEAR_WIELD)

and obviously this monster doens't work (grin):

obj_to_room(obj_from_room(obj_from_char(unequip_char(ch, WEAR_WIELD))), 

Anyway, any help is appreciated,


Brian Guilbault - GMI Engineering Institute
E-mail: guil9964@gmi.edu, dante@i-55.com
WWW: http://apollo.gmi.edu/~guil9964
QuarantineMUD: Telnet to exit1.i-55.com 4000

| 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/18/00 PST