Astral Walk Spell [by Brandon Brown]
Snippet Posted Wednesday, October 14th @ 12:40:33 PM, by George Greer in the Skills dept.
Brandon Brown writes "Here's a quick and easy astral walk spell I put together... make sure to define it in all the right places as a manual spell. And if yer in a really good mood, you can credit me somewhere ;)"
Note: this spell uses the NO_TELEPORT_IN roomflag, and color codes [&].. just remove them if you don't feel like using it)
ASPELL(spell_astral_walk)  
{
  sh_int location;
  char roomstr[MAX_INPUT_LENGTH];

if (ch == NULL || victim == NULL)
    return;

 if (ROOM_FLAGGED(victim->in_room, ROOM_NO_TELEPORT_IN)) {
   send_to_char("You fail.", ch);      
   return;
  }

  strcpy(buf, "&c$n vanishes into a haze of blue light!&n");
  act(buf, TRUE, ch, 0, 0, TO_ROOM);
  char_from_room(ch);
  char_to_room(ch, victim->in_room);

  strcpy(buf, "&c$n appears in a flash of blue light!&n");
  act(buf, TRUE, ch, 0, 0, TO_ROOM);
  look_at_room(ch, 0);
}

<< Buffer Allocation System 2.0 (Preview) | Reply | View as text | Flattened | CGI Scripts: Making Life Simple >>

 


Related Links
  Brandon Brown
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.