ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_wiz.C
(Generate patch)

Comparing deliantra/server/server/c_wiz.C (file contents):
Revision 1.51 by root, Sun Sep 30 16:24:31 2007 UTC vs.
Revision 1.52 by root, Sun Sep 30 20:22:22 2007 UTC

693 */ 693 */
694 694
695int 695int
696command_inventory (object *op, char *params) 696command_inventory (object *op, char *params)
697{ 697{
698 int i;
698 object *tmp; 699 object *tmp;
699 int i;
700 700
701 if (!params) 701 if (!params || !sscanf (params, "%d", &i) || !(tmp = find_object (i)))
702 { 702 {
703 inventory (op, NULL); 703 op->contr->failmsg ("Inventory of what object (nr)?");
704 return 0; 704 return 1;
705 }
706
707 if (!sscanf (params, "%d", &i) || (tmp = find_object (i)) == NULL)
708 { 705 }
709 new_draw_info (NDI_UNIQUE, 0, op, "Inventory of what object (nr)?");
710 return 1;
711 }
712 706
713 inventory (op, tmp); 707 op->contr->infobox (MSG_CHANNEL ("examine"), tmp->query_inventory (op));
708
714 return 1; 709 return 1;
715} 710}
716 711
717/* just show player's their skills for now. Dm's can 712/* just show player's their skills for now. Dm's can
718 * already see skills w/ inventory command - b.t. 713 * already see skills w/ inventory command - b.t.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines