2 This script is part of the Witherspoon quest, that starts in /scorn/mansion/witherspoon_manor_attic.
3 Check the README file in the same directory as this file for more details.
5 Script for the tomb near the lake west of Scorn.
7 This script is called when the player steps on the correct spot where the body is buried.
13 '''Returns True if the player can dig, False else. Give the relevant message.'''
14 if pl.CheckArchInventory(
'skill_clawing') !=
None:
15 pl.Write(
'Using your claws, you quickly dig.')
17 if pl.CheckArchInventory(
'shovel_1') !=
None:
18 pl.Write(
'You dig with your shovel.')
21 pl.Write(
'You\'d dig, but you have nothing to dig with...')
25 '''Find the player stepping on the detector'''
26 test = Crossfire.WhoAmI().Above
28 if test.Type == Crossfire.Type.PLAYER:
38 if pl.ReadKey(
'dialog_witherspoon_ghost') !=
'witherspoon_ghost:wait':
41 if pl.ReadKey(
'witherspoon_tomb') !=
'':
45 pl.Write(
'You notice the earth here is kind of bumpy.')
53 pl.WriteKey(
'witherspoon_tomb',
'dig', 1)
55 body = Crossfire.CreateObjectByName(
'corpse')
56 body.WriteKey(
'special_item',
'ghost_body', 1)
57 body.Name =
'tortured body'
58 body.NamePl =
'tortured bodies'
59 body.Message =
'You suppose this is the body of the ghost in Witherspoon Manor. It is covered in scars, as if someone really wanted to make him pay for something.'
62 dagger = Crossfire.CreateObjectByName(
'dagger')
63 dagger.WriteKey(
'special_item',
'ghost_dagger', 1)
64 dagger.Name =
'strange dagger'
65 dagger.NamePl =
'strange daggers'
66 dagger.Message =
'You found this dagger with the body of the Witherspoon Manor ghost. It has some weird look. You wonder if a marchant could figure what the symbols mean.'
69 pl.Write(
'You find a body with a dagger in it!')
70 if pl.QuestGetState(
"scorn/Witherspoon-ghost") <= 10:
71 pl.QuestSetState(
"scorn/Witherspoon-ghost", 20)