ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/python/guilds/guild_questpoints_apply.py
Revision: 1.1
Committed: Sun Feb 5 00:02:09 2006 UTC (20 years, 7 months ago) by root
Content type: text/x-python
Branch point for: UPSTREAM, MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 root 1.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