Crossfire Server, Trunk
giveitem.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # giveitem.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 'giveitem'
5 # The syntax is ["giveitem", "itemtogive", "quantitytogive"]
6 # "quantitytogive" is optional, if it is missing, then 1 is assumed.
7 # The NPC must have at least one of the item being given, either in their
8 # inventory or in their NPC_Gift_Box if they have one.
9 # items are matched by item name, not arch name.
10 
11 
17 
18 contents=False
19 # commongive.py does all of the heavy lifting here.
20 exec(open(os.path.join(Crossfire.DataDirectory(), Crossfire.MapDirectory(), 'python/dialog/commongive.py')).read())
CFBank.open
def open()
Definition: CFBank.py:69