Hello, Well i feel stupid as i know this ones been overhashed, and ive made plenty of spec procs myself. But I cant seem to get down the arguements passed to a mob procedure. This is not the function, just a skeleton showing debug code to see and verify what im getting passed. player would type: repair sword Ive got the repair command in interpreter as { "repair" , "repa", POS_STANDING, do_not_here , 0, 0 }, as its only a command before a weaponsmith in his shop. SPECIAL(weapons_repair) { if (CMD_IS("repair")) { send_to_char(argument,ch); send_to_char("\r\n",ch); argument = one_argument(argument,buf); send_to_char(buf,ch); argument = one_argument(argument,buf2); send_to_char(buf2,ch); } return TRUE; } This special in in spec_procs.c and is assigned to a mobile in spec_assign.c When invoked I send the unaltered argument as sent to the function, a carraige return, then the first word of 'argument' stored in buf, then the second word from argument, stored in buf2 here is what I get when i type: repair sword repair repair argument alone is only repair, and buf after parsing with one argument is repair. Nothing at all spit out by buf2 Where did my 'sword' go???? The Puzzles One ******************************************************************* * Ron Hensley ron@dmv.com * * Network Administrator http://www.dmv.com/~ron * * PGP Key at WWW Page * * DelMarVa OnLine 749-7898 Ext. 403 * ******************************************************************* +------------------------------------------------------------+ | 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/08/00 PST