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 >>
|
|