4 activator = Crossfire.WhoIsActivator()
5 whoami = Crossfire.WhoAmI()
8 """An iterator for a given object's inventory."""
9 current_item = obj.Inventory
10 while current_item !=
None:
11 next_item = current_item.Below
13 current_item = next_item
16 """Find the total value of items in the deposit box and deposit."""
19 if obj.Name !=
'event_close':
20 total_value += obj.Value * obj.Quantity
23 bank.deposit(activator.Name, total_value)
24 whoami.Say(
"%s credited to your account." \
25 % Crossfire.CostStringFromValue(total_value))