Question...

From: Sean P. Mountcastle (mountcas@itchy.ee.cua.edu)
Date: 04/07/95


>         I'm having some trouble with a spell I coded for players to
> get to the astral plane.  It seems that when they cast it on themselves
> and others it says, "Okay." and nothing happens.  I'm going to post the
> code here, and hopefully someone can help me out - if you get it working
> you're more than welcome to use it in your mud (if you want).
> 
>         I also have another question, that I cannot seem to find the answer 
> to, does anyone know where I can put the messages for spells?  All of the
> spells I've added (and some of the stock ones) do not give any message at
> all.  I've tried to put the messages in mag_damage underneath the case:
> for that spell, but it still doesn't work - earthquake doesn't give a message
> and thats a stock spell.....
> 
>         I'm using a modified circle 3.0 bpl 5 with some (if not most) 
> additions from bpl 7.
> 
>         Many thanks in advance,
> 
>         - Sean Mountcastle
> 
> #define ASTRAL_ENTRANCE   13006
> #define ASTRAL_ZONE       130
> #define TEMPLE_ROOM       3001
> 
> 
> ASPELL(astral_walk)
> {
> 
>   if (victim == NULL || IS_NPC(victim))
>     return;
> 
>   if (world[victim->in_room].zone == ASTRAL_ZONE) 
>   {
>      act("$n wavers and fades out of existence.",
>         FALSE, victim, 0, 0, TO_ROOM);
>      char_from_room(victim);
>      char_to_room(victim, real_room(TEMPLE_ROOM));
>      act("$n slowly fades into existence.", FALSE, victim, 0, 0, TO_ROOM);
>      look_at_room(victim, 0); 
>   }
> 
>   else if (!world[victim->in_room].zone == ASTRAL_ZONE) 
>   {
>      act("$n wavers and fades out of existence.",
>         FALSE, victim, 0, 0, TO_ROOM);
>      char_from_room(victim);
>      char_to_room(victim, real_room(ASTRAL_ENTRANCE));
>      act("$n slowly fades into existence.", FALSE, victim, 0, 0, TO_ROOM);
>      look_at_room(victim, 0); 
>   }
> 
> }



This archive was generated by hypermail 2b30 : 12/07/00 PST