Crossfire Server, Trunk
madnessmaze1.py
Go to the documentation of this file.
1 #This is the madness maze, created by Alestan. Like all of crossfire, it is distributed under the GNU lisence.
2 #Please report bugs to Alestan@meflin.com
3 #Created: 1 Aug 2008
4 import Crossfire
5 import CFGuilds
6 import CFItemBroker
7 import random
8 import string
9 
10 activator=Crossfire.WhoIsActivator()
11 activatorname=activator.Name
12 whoami=Crossfire.WhoAmI()
13 if whoami==Guardian:
14  text=string.split(Crossfire.WhatIsMessage())
15  if text[0]=="1":
16  message= "This is the Madness maze, leave before it is too late"
17  whoami.Say(message)
18  message= "5. Too late?"
19  whoami.Say(message)
20  if text[0]=="2":
21  message="I am the Guardian of the Madness Maze. As you see, I am armless, not much of a guardian eh?"
22  whoami.Say(message)
23  message="6. What happened to your arms?"
24  whoami.Say(message)
25  if text[0]=="3":
26  message= "Many entered here, few return, those that do are... changed... For the good of all, it has been closed. I am here to give warning."
27  whoami.Say(message)
28  message="7. Changed?"
29  whoami.Say(message)
30  if text[0]=='4':
31  message= "Please, go ahead, kill me, I want to die."
32  whoami.Say(message)
33  if text[0]=='5':
34  message="If you go in there, you won't come back."
35  whoami.Say(message)
36  if text[0]=="6":
37  message="They cut them off, seemed to think I might be tempted by the maze, like I woulda been. Figured I could warn people without arms, but I couldn't disarm the traps without arms."
38  whoami.Say(message)
39  if text[0]=="7":
40  message= "That's what I said, changed. Rarely for the better."
41  whoami.Say(message)
42  else:
43  message="I have some information you need."
44  whoami.Say(message)
45  message="(You may reply with the following, just reply with the number.)"
46  whoami.Say(message)
47  message="1. What is this place?"
48  whoami.Say(message)
49  message="2. Who are you?"
50  whoami.Say(message)
51  message="3.What information?"
52  whoami.Say(message)
53  message="4. Die you freak!"