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