Hi i made a command called leech, well. the name should say it all.. here's the command, i know that i have made lots of errors here.. but i need help in finding and correcting them.. ACMD(do_leech) { struct char_data *victim; char buf[MAX_INPUT_LENGTH]; one_argument(argument, buf); if (!*buf) send_to_char(ch, "Whom do you wish to leech?\r\n"); else if (!(victim = get_char_vis(ch, argument, NULL, FIND_CHAR_WORLD))) send_to_char(ch, NOPERSON); else { if (ch == victim){ send_to_char(ch, "Well, that wasn't so smart, was it?"); return; } GET_HIT(victim) = 1; GET_MANA(victim) = 1; GET_MOVE(victim) = 1; act("You leech $n's soul. You feel fully refreshened by it.", FALSE, ch, 0, victim, TO_CHAR); act("You feel your soul being leeched while $n draws power from it!", FALSE, ch, 0, victim, TO_VICT); } } and a second question.. what is the structure of act()? i only know how to use the first and last field.. i copied the act()'s in my command from other commands.. i have no real knowledge of them.. act(1, 2, 3, 4, 5, 6); 1 = i know.. the message. 2 = don't have a clue, true/false? <---- help 3 = i'm lost <---- help 4 = what? <---- help 5 = hmm.. <---- help 6 = oooohhhhh, i know, to whom it sends the message.. eh? can you fill out the missing parts? _________________________________________________________________ På MSN hittar du det roliga, intressanta och användbara på internet: http://www.msn.se -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT