Teleport Spell

From: Lord Kyu (shapeshifter@TKA.COM)
Date: 06/07/98


        The teleport spell is another one of those that was left out, even though
the spell itself works. For those of you who haven't fixed it already, here
is how to make it workable.

------------------------
In spell_parser.c
------------------------

    case SPELL_SUMMON:          MANUAL_SPELL(spell_summon); break;
    case SPELL_WORD_OF_RECALL:  MANUAL_SPELL(spell_recall); break;
+  case SPELL_TELEPORT:        MANUAL_SPELL(spell_teleport); break;
    }

------------------------
In spell_parser.c (further down)
------------------------

  spello(SPELL_SENSE_LIFE, 20, 10, 2, POS_STANDING,
        TAR_CHAR_ROOM | TAR_SELF_ONLY, FALSE, MAG_AFFECTS);

+ spello(SPELL_TELEPORT, 75, 50, 3, POS_STANDING,
+       TAR_CHAR_ROOM, FALSE, MAG_MANUAL);

  /* NON-castable spells should appear here */

-----------------------
In class.c
-----------------------

  spell_level(SPELL_CHARM, CLASS_MAGIC_USER, 16);
+ spell_level(SPELL_TELEPORT, CLASS_MAGIC_USER, 18);
  spell_level(SPELL_ENCHANT_WEAPON, CLASS_MAGIC_USER, 26);

-----------------------
In spells.c
-----------------------

- ASPELL(spell_teleport)
- {
-   int to_room;
-   extern int top_of_world;
-
-  if (victim != NULL)
-    return;

+ ASPELL(spell_teleport)
+ {
+   int to_room;
+   extern int top_of_world;
+
+   if (victim == NULL || IS_NPC(victim))
+     return;

----------------
Thats it, if I missed anything, please let me know. Thanks...

- Lord Kyu -


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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