Crossfire Server, Trunk
guild_questpoints_apply.py
Go to the documentation of this file.
1 import Crossfire
2 import CFGuilds
3 
4 activator=Crossfire.WhoIsActivator()
5 activatorname=activator.Name
6 whoami=Crossfire.WhoAmI()
7 mymap = activator.Map
8 mapname = mymap.Name
9 trank = 0
10 
11 points=Crossfire.ScriptParameters() # 1 is apply event
12 
13 if points:
14  guild = CFGuilds.SearchGuilds(activatorname)
15  if guild:
16  CFGuilds.CFGuild.add_questpoints(activatorname,points)
17  else:
18  pass
19 else:
20  Crossfire.Log(Crossfire.LogError, 'Error, no points specified in %s on map %s' %(whoami.Name,mapname))
CFGuilds.SearchGuilds
def SearchGuilds(player)
Definition: CFGuilds.py:38
CFGuilds.CFGuild.add_questpoints
def add_questpoints(self, name, number)
Definition: CFGuilds.py:209