22 from CFGuildClearance
import CheckClearance
28 activator=Crossfire.WhoIsActivator()
29 activatorname=activator.Name
35 activatorx=activator.X
36 activatory=activator.Y
37 whoami=Crossfire.WhoAmI()
39 Params=Crossfire.ScriptParameters().
split()
44 text = Crossfire.WhatIsMessage().
split()
48 if text[0].upper() ==
'ENTER':
50 if guildrecord[
'Status'] ==
'inactive':
51 message =
'This guild is currently inactive and available to be bought.'
52 elif guildrecord[
'Status'] ==
'suspended':
53 message =
'This guild is currently under suspension.\nPlease see a DM for more information'
54 elif guildrecord[
'Status'] ==
'probation':
55 activator.Write(
'This guild is currently under probation.\nPlease see a DM for more information')
58 message =
'Entry granted for %s' %activatorname
59 mymap.TriggerConnected(
int(Params[2]),1,activator)
61 message =
'You try my patience %s. BEGONE!' %activatorname
62 activator.Teleport(mymap,
int(x),
int(y))
64 elif text[0].upper() ==
'BUY' and whoami.Name==
"Guardian":
65 if guildrecord[
'Status'] ==
'inactive':
69 message =
"Proceed, but know ye that three are required to found a guild and the cost is high."
71 message +=
"\n Note, you are already a member of a guild, some servers may prohibit being in multiple guilds. Proceed at your own risk."
72 activator.Teleport(mymap,
int(x),
int(y))
74 message =
'This guild is already owned.'
75 elif whoami.Name==
"Guardian":
76 message =
'This is the entry to the great %s guild. Enter or begone!' %guildname
78 message =
"Say enter to request entry."
80 message =
'Guild Guardian Error, please notify a DM'