Revision: | 1.1 |
Committed: | Sun Feb 5 00:02:09 2006 UTC (18 years, 5 months ago) by root |
Content type: | text/x-python |
Branch point for: | UPSTREAM, MAIN |
Log Message: | Initial revision |
# | Content |
---|---|
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 | print 'Error, no points specified in %s on map %s' %(whoami,mapname) |
21 |