Created: 6/21/2004
Base Mud Version: v1.11o
Description--
This add-on provides spells for all classes to recall from anywhere in the game to Silvermere Town Square, as well as a potion and a non-magical worn item to do the same. Recalling causes a 5-second (1 combat round) lag, and will not work if there are monsters in the room. The items to learn/cast recall are not included in any shops with this add-on, so you will need to add them, as well as adjusting the prices and required levels if you feel it necessary.
Record Numbers Used:
Items (new): 3188-3192, 3222, 3407
Spells (new): 2099-2104, 2106-2108, 2122-2124, 2149
Messages (new): 10178-10180, 10184-10185, 10192, 10225
Textblocks (new): 8263, 8266, 8288, 8297
How it works...
- The items (potion and worn item) as well as the learnable spells execute textblock 8263 when used/casted.
- Textblock 8263 casts a spell on you (2107) and then checks for no monsters (Spell 2107 confuses you for 2 rounds).
- If the no monster check fails then spell execution stops and you are confused for two rounds.
- If the no monster check succeeds, then another spell (2124) is casted to "void" spell 2107.
- A new spell is then casted (2106) which also confuses you for 2 rounds (note: not an additional 2 rounds as step two canceled the first confusion). This 2 round confusion is to verify that no monsters come in the room while trying to recall and to give anyone enganged in PVP with you a chance to do one last thing.
- At the end of those two rounds, spell 2106 end casts spell 2108 which executes block 8266.
- Textblock 8266 in a way repeats steps 2 and 3 in order to recheck for no monsters, but teleports you after voiding spell 2107. (If this nomonster check fails, you will be confused for an additional 2 rounds for trying to recall in the heat of battle.)
Code: Select all
Items:
Name: potion of recall, Type: Drink, Enc: 30
>> Uses: 1 (destroys after uses) -- Casts: [potion of recall, TextBlock 8263]
Name: scroll of recall, Type: Scroll, Enc: 10
>> Abilities: LearnSp (word of recall), Magical +1, MinLevel +20 -- Uses: 1 (destroys after uses)
Name: songsheet of recall, Type: Scroll, Enc: 25
>> Abilities: LearnSp (song of transportation), MinLevel +50 -- Uses: 1 (destroys after uses)
Name: brooch of safety, Worn: Worn, Armr Type: Natural, Level: 50, Enc: 100
>> Abilities: LoyalItem -- Casts: [brooch of safety, TextBlock 8263]
Name: potion of instant recall, Type: Drink, Enc: 30
>> Abilities: MinLevel +100 -- Uses: 1 (destroys after uses) -- Casts: [potion of instant recall, (@lvl 100): TextBlock 8297]
Spells:
Number: 2099, Name: potion of recall, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- TextBlock 8263
Number: 2149, Name: potion of instant recall, Short: , Magery: None, LVL: 100, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- (@lvl 100): TextBlock 8297
Number: 2124, Name: recall ok, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- KillSpell [word of recall]
Number: 2123, Name: recall fail, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- TextBlock 8288
Number: 2122, Name: brooch of safety, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- TextBlock 8263
Number: 2108, Name: recall tele, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- TextBlock 8266
Number: 2107, Name: word of recall, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- EndCast [recall fail, TextBlock 8288], Confusion +100, for 2 rounds
Number: 2106, Name: word of recall, Short: , Magery: None, LVL: 0, Mana: 0, Diff: 500
>> Target: Self -- Attack Type: Normal -- EndCast [recall tele, TextBlock 8266], Confusion +100, for 2 rounds
Number: 2104, Name: way of the sliph, Short: slph, Magery: Kai-0, LVL: 50, Mana: 10, Diff: 200
>> Target: Self -- Attack Type: Normal -- (@lvl 99): TextBlock 8263
Number: 2103, Name: song of transportation, Short: tran, Magery: Bard-0, LVL: 50, Mana: 50, Diff: 200
>> Target: Self -- Attack Type: Normal -- (@lvl 99): TextBlock 8263
Number: 2102, Name: word of recall, Short: rcal, Magery: Mage-0, LVL: 40, Mana: 40, Diff: 500
>> Target: Self -- Attack Type: Normal -- (@lvl 99): TextBlock 8263
Number: 2101, Name: word of recall, Short: rcal, Magery: Druid-0, LVL: 30, Mana: 30, Diff: 500
>> Target: Self -- Attack Type: Normal -- (@lvl 99): TextBlock 8263
Number: 2100, Name: word of recall, Short: rcal, Magery: Priest-0, LVL: 20, Mana: 20, Diff: 500
>> Target: Self -- Attack Type: Normal -- (@lvl 99): TextBlock 8263
Textblocks:
8263: cast 2107:nomonsters:cast 2124:cast 2106
8266: cast 2107:nomonsters:cast 2124:message 10180:teleport 224 1:message 10178
8288: message 10184
8297: nomonsters 10225:message 10180:teleport 224 1:message 10178