//no exit from room1 if ((pexit = ch->in_room->exit[door1]) == NULL || (room2 = get_room_index (pexit->u1.to_room->vnum)) == NULL) { send_to_char ("No one can go there anyway.\n\r", ch); return; }
//no exit from room2 if ( (!room1->exit[door1]) || (!room2->exit[door2]) ) { dual_walls = FALSE; }
//already wall1 in room1 if (get_mob_vnum_room(ch, wall1)) { send_to_char("There is already an undead barricade constructed in that direction!\r\n", ch); return; }
And where is "target_name" coming from? Is it just a floating variable within your spells file? I don't see it being passed into that function anyplace.
30 Aug, 2009, boblinski wrote in the 63rd comment:
Votes: 0
At the top of magic2.c:
extern char *target_name;
Thanks for the fix on that one Kline, seems to be working now!
Entire code segment (from magic2.c):
It compiles fine, and everything works real good.. except if there is no "target" direction given.. it doesn't work properly…
Problem piece:
It doesn't "send_to_char ("In which direction……etc", and instead continues and ends up targeting 'north'…
Any suggestions?