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

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.12 by root, Mon Oct 2 00:10:58 2006 UTC vs.
Revision 1.13 by root, Mon Oct 2 00:22:01 2006 UTC

457 { 457 {
458 dump_object (op->below); 458 dump_object (op->below);
459 new_draw_info (NDI_UNIQUE, 0, op, errmsg); 459 new_draw_info (NDI_UNIQUE, 0, op, errmsg);
460 /* Let's push that item on the dm's stack */ 460 /* Let's push that item on the dm's stack */
461 dm_stack_push (op->contr, op->below->count); 461 dm_stack_push (op->contr, op->below->count);
462 }
463 return 0;
464}
465
466int
467command_wizcast (object *op, char *params)
468{
469 int i;
470
471 if (!op)
472 return 0;
473
474 if (!params)
475 i = (QUERY_FLAG (op, FLAG_WIZCAST)) ? 0 : 1;
476 else
477 i = onoff_value (params);
478
479 if (i)
480 {
481 new_draw_info (NDI_UNIQUE, 0, op, "You can now cast spells anywhere.");
482 SET_FLAG (op, FLAG_WIZCAST);
483 }
484 else
485 {
486 new_draw_info (NDI_UNIQUE, 0, op, "You now cannot cast spells in no-magic areas.");
487 CLEAR_FLAG (op, FLAG_WIZCAST);
488 } 462 }
489 return 0; 463 return 0;
490} 464}
491 465
492int 466int

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines