22 from CFGuildClearance
import CheckClearance
28 activator=Crossfire.WhoIsActivator()
29 activatorname=activator.Name
31 activatorx=activator.X
32 activatory=activator.Y
33 whoami=Crossfire.WhoAmI()
35 Params=Crossfire.ScriptParameters().
split()
40 text = Crossfire.WhatIsMessage().
split()
44 if text[0].upper() ==
'ENTER':
46 if guildrecord[
'Status'] ==
'inactive':
47 message =
'This guild is currently inactive and available to be bought.'
48 elif guildrecord[
'Status'] ==
'suspended':
49 message =
'This guild is currently under suspension.\nPlease see a DM for more information'
50 elif guildrecord[
'Status'] ==
'probation':
51 activator.Write(
'This guild is currently under probation.\nPlease see a DM for more information')
55 message =
"I don't know which door I'm supposed to open for you. Contact a DM."
57 message =
'Entry granted for %s' %activatorname
58 mymap.TriggerConnected(
int(Params[2]),1,activator)
60 message =
"You are not allowed through this door. Access denied."
62 elif text[0].upper() ==
'BUY' and whoami.Name==
"Guardian":
63 if guildrecord[
'Status'] ==
'inactive':
67 message =
"Proceed, but know ye that three are required to found a guild and the cost is high."
69 message +=
"\n Note, you are already a member of a guild, some servers may prohibit being in multiple guilds. Proceed at your own risk."
70 activator.Teleport(mymap,
int(x),
int(y))
72 message =
'This guild is already owned.'
73 elif whoami.Name==
"Guardian":
74 message =
'This is the entry to the great %s guild. Enter or begone!' %guildname
76 message =
"Say enter to request entry."
78 message =
'Guild Guardian Error, please notify a DM'