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.59 by root, Mon Sep 29 10:20:49 2008 UTC vs.
Revision 1.60 by root, Mon Sep 29 10:32:50 2008 UTC

280 new_draw_info (NDI_UNIQUE, 0, op, "can't jail player, there is no map to hold them"); 280 new_draw_info (NDI_UNIQUE, 0, op, "can't jail player, there is no map to hold them");
281 return 0; 281 return 0;
282 } 282 }
283 283
284 pl->ob->player_goto (dummy->slaying, dummy->stats.hp, dummy->stats.sp);//TODO 284 pl->ob->player_goto (dummy->slaying, dummy->stats.hp, dummy->stats.sp);//TODO
285 dummy->destroy (true); 285 dummy->destroy ();
286 286
287 new_draw_info (NDI_UNIQUE, 0, pl->ob, "You have been arrested."); 287 new_draw_info (NDI_UNIQUE, 0, pl->ob, "You have been arrested.");
288 new_draw_info (NDI_UNIQUE, 0, op, "OK."); 288 new_draw_info (NDI_UNIQUE, 0, op, "OK.");
289 LOG (llevInfo, "Player %s arrested by %s\n", &pl->ob->name, &op->name); 289 LOG (llevInfo, "Player %s arrested by %s\n", &pl->ob->name, &op->name);
290 return 1; 290 return 1;
640 if (out_of_map (op->map, head->x + size_x, head->y + size_y)) 640 if (out_of_map (op->map, head->x + size_x, head->y + size_y))
641 { 641 {
642 if (head->x < size_x || head->y < size_y) 642 if (head->x < size_x || head->y < size_y)
643 { 643 {
644 dm_stack_pop (op->contr); 644 dm_stack_pop (op->contr);
645 head->destroy (true); 645 head->destroy ();
646 new_draw_info (NDI_UNIQUE, 0, op, "Object too big to insert in map, or wrong position."); 646 new_draw_info (NDI_UNIQUE, 0, op, "Object too big to insert in map, or wrong position.");
647 tmp->destroy (true); 647 tmp->destroy ();
648 return 1; 648 return 1;
649 } 649 }
650 650
651 check = head; 651 check = head;
652 652
672 if (at->randomitems && !at_spell) 672 if (at->randomitems && !at_spell)
673 create_treasure (at->randomitems, head, GT_APPLY, op->map->difficulty, 0); 673 create_treasure (at->randomitems, head, GT_APPLY, op->map->difficulty, 0);
674 } 674 }
675 675
676 /* free the one we used to copy */ 676 /* free the one we used to copy */
677 tmp->destroy (true); 677 tmp->destroy ();
678 } 678 }
679 679
680 return 1; 680 return 1;
681} 681}
682 682
816 dm_stack_pop (op->contr); 816 dm_stack_pop (op->contr);
817 817
818 if (tmp->head) 818 if (tmp->head)
819 tmp = tmp->head; 819 tmp = tmp->head;
820 820
821 tmp->destroy (true); 821 tmp->destroy ();
822 return 1; 822 return 1;
823} 823}
824 824
825/** 825/**
826 * This adds exp to a player. We now allow adding to a specific skill. 826 * This adds exp to a player. We now allow adding to a specific skill.
1220 new_draw_info_format (NDI_UNIQUE, 0, op, "You already know the spell %s.", &tmp->name); 1220 new_draw_info_format (NDI_UNIQUE, 0, op, "You already know the spell %s.", &tmp->name);
1221 return 0; 1221 return 0;
1222 } 1222 }
1223 1223
1224 do_learn_spell (op, tmp, special_prayer); 1224 do_learn_spell (op, tmp, special_prayer);
1225 tmp->destroy (true); 1225 tmp->destroy ();
1226 return 1; 1226 return 1;
1227} 1227}
1228 1228
1229int 1229int
1230command_learn_spell (object *op, char *params) 1230command_learn_spell (object *op, char *params)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines