Crossfire Server, Trunk
givecontents.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # givecontents.py
3 # This is one of the files that can be called by an npc_dialog,
4 # The following code runs when a dialog has a post rule of 'givecontents'
5 # The syntax is ["givecontents", "nameofcontainer"]
6 # The NPC must have a container with the name "nameofcontainer", either in their
7 # inventory or in their NPC_Gift_Box if they have one.
8 # If a suitable container exists, then a complete copy of the entire contents
9 # of that container is given to the player. The container itself is *not* given
10 # to the player
11 # containers are matched by item name, not arch name.
12 
13 
18 
19 contents=True
20 # commongive.py does all of the heavy lifting here.
21 exec(open(os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(), 'python/dialog/commongive.py')).read())
CFBank.open
def open()
Definition: CFBank.py:69