On Wed, 14 Jan 1998, Bowes, Chris wrote: > > Hi all, > > i`m writing the disarm skill, but i have a problem in that i cant get th= > e =20 > weapon from the victim without going through perform_remove and =20 > perform_drop :--( Try, if (successful_disarm_attempt) { obj_to_char(unequip_char(victim, WEAR_WIELD), victim); act("You have disarmed $N!", TRUE, ch, 0, victim, TO_CHAR); act("$n disarmed $N!", TRUE, ch, 0, victim, TO_NOTVICT); act("$n disarms you!", TRUE, ch, 0, victim, TO_VICT); } else { send_to_char("You failed.\r\n", ch); } Of course, you will prolly want better messages than that. Those are just there as example. John Evans <evansj@hi-line.net> -- http://www.hi-line.net/~evansj/ Any sufficiently advanced technology is indistinguishable from magic. --Arthur C. Clarke +------------------------------------------------------------+ | 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