6 activator=Crossfire.WhoIsActivator()
7 activatorname=activator.Name
10 while (object.Type != 1) :
19 whoami=Crossfire.WhoAmI()
23 ClearanceLevels={
"Initiate":1,
"Novice":2,
"Guildman":3,
"Journeyman":4,
"Master":5,
"GuildMaster":6}
26 if oActivator.DungeonMaster==1:
28 iClearanceLevel=ClearanceLevels.get(lParams[1],0)
29 dGuildInfo=oGuild.info(oActivator.Name)
34 iClearanceApproved=ClearanceLevels.get(dGuildInfo[
'Rank'],0)
35 if dGuildInfo[
"Status"]==
'suspended':
37 Crossfire.WhoIsActivator().Say(
"You are currently suspended from the guild.")
38 elif dGuildInfo[
"Status"]==
"probation":
39 Crossfire.WhoIsActivator().Say(
"You are currently on probation.")
40 if iClearanceLevel>iClearanceApproved:
45 if __name__==
'__builtin__':
48 if Crossfire.WhatIsMessage():
49 texta=string.split(Crossfire.WhatIsMessage())
51 if (texta[0].upper() ==
'ENTER'):
52 Params=string.split(Crossfire.ScriptParameters())
54 Approved =
"Access granted"
56 Approved =
"Access denied"
60 if (Approved ==
'Access granted'):
61 mymap.TriggerConnected(
int(Params[2]),0,activator)
64 whoami.Say(
'Say enter to request entry')