Crossfire Server, Trunk
pshop Namespace Reference

Functions

def Expire ()
 
def GetInvCount (object)
 
def GetObjectAt (Map, X, Y, Name)
 
def GetObjectByName (object, Name)
 
def GetObjectByUID (object, UID)
 
def GetObjectByWeightLimit (object, WeightLimit)
 

Variables

 activator = Crossfire.WhoIsActivator()
 
 bank = CFBank.open()
 
 CFDB = CFDataBase.CFDataBase("PShop")
 
 CoinType = CoinTypes.get(Message[i].upper())
 
int Ctrl = 1
 
 Date = VariableList[1].split(": ")[1]
 
 Day
 
 Days = int(VariableList[2].split(": ")[1])
 
tuple DaysPast = (Today-LastDate).days
 
 Dict = CFDB.get(pshop, {})
 
int DT120 = 120-Days
 
int DT150 = 150-Days
 
int DT180 = 180-Days
 
int DT210 = 210-Days
 
int DT240 = 240-Days
 
int DT270 = 270-Days
 
int DT30 = 30-Days
 
int DT300 = 300-Days
 
int DT330 = 330-Days
 
int DT366 = 366-Days
 
int DT60 = 60-Days
 
int DT90 = 90-Days
 
 Face
 
 GlassReplica = whoami.CreateObject("icecube")
 
 Inv = activator.Inventory
 
def InvCount = GetInvCount(whoami)
 
 Inventory = whoami.Inventory
 
 Item = whoami.Inventory
 
list Items = []
 
 LastDate = datetime.datetime(int(Year),int(Month),int(Day))
 
 MaxDays = int(Params)
 
 Message = Crossfire.WhatIsMessage()
 
list MissingItems = []
 
 Month
 
 Name = ''
 
 NamePl
 
 Owner = VariableList[0].split(": ")[1]
 
 Package = whoami.CreateObject("dust_generic")
 
 PicDB = CFDataBase.CFDataBase("PicDB")
 
 PicDict = PicDB.get("Dict")
 
int Price = 0
 
 pshop = whoami.Map.Path.replace("/","_")
 
 Quantity = int(Message[i-1])
 
list RealItems = []
 
 Slaying
 
 Speed
 
 Str = Dict.get(str(i))
 
 t = GlassReplica.CreateObject("event_drop")
 
 Title = ''
 
 tmp = whoami.CreateObject("silvercoin")
 
 Today = datetime.date(1,2,3).today()
 
 Trash = whoami.Map.ObjectAt(37,0)
 
 Trash1 = Trash.Above
 
int Value = 0
 
 VariableList = Variables.Message.split('\n')
 
 Variables = whoami.Map.ObjectAt(49,0)
 
 Weight
 
 WeightLimit
 
 whoami = Crossfire.WhoAmI()
 
 Year
 
 z = Package.CreateObject("event_pickup")
 

Function Documentation

◆ Expire()

def pshop.Expire ( )

Definition at line 26 of file pshop.py.

References GetObjectAt(), GetObjectByName(), GetObjectByWeightLimit(), and make_face_from_files.int.

+ Here is the call graph for this function:

◆ GetInvCount()

def pshop.GetInvCount (   object)

Definition at line 115 of file pshop.py.

◆ GetObjectAt()

def pshop.GetObjectAt (   Map,
  X,
  Y,
  Name 
)

Definition at line 95 of file pshop.py.

Referenced by Expire().

+ Here is the caller graph for this function:

◆ GetObjectByName()

def pshop.GetObjectByName (   object,
  Name 
)

Definition at line 89 of file pshop.py.

Referenced by Expire().

+ Here is the caller graph for this function:

◆ GetObjectByUID()

def pshop.GetObjectByUID (   object,
  UID 
)

Definition at line 109 of file pshop.py.

◆ GetObjectByWeightLimit()

def pshop.GetObjectByWeightLimit (   object,
  WeightLimit 
)

Definition at line 103 of file pshop.py.

Referenced by Expire().

+ Here is the caller graph for this function:

Variable Documentation

◆ activator

pshop.activator = Crossfire.WhoIsActivator()

Definition at line 5 of file pshop.py.

◆ bank

pshop.bank = CFBank.open()

Definition at line 14 of file pshop.py.

◆ CFDB

pshop.CFDB = CFDataBase.CFDataBase("PShop")

Definition at line 11 of file pshop.py.

◆ CoinType

pshop.CoinType = CoinTypes.get(Message[i].upper())

Definition at line 137 of file pshop.py.

◆ Ctrl

int pshop.Ctrl = 1

Definition at line 425 of file pshop.py.

◆ Date

pshop.Date = VariableList[1].split(": ")[1]

Definition at line 253 of file pshop.py.

◆ Day

pshop.Day

Definition at line 258 of file pshop.py.

◆ Days

int pshop.Days = int(VariableList[2].split(": ")[1])

Definition at line 254 of file pshop.py.

◆ DaysPast

tuple pshop.DaysPast = (Today-LastDate).days

Definition at line 262 of file pshop.py.

◆ Dict

pshop.Dict = CFDB.get(pshop, {})

Definition at line 229 of file pshop.py.

◆ DT120

int pshop.DT120 = 120-Days

Definition at line 298 of file pshop.py.

◆ DT150

int pshop.DT150 = 150-Days

Definition at line 307 of file pshop.py.

◆ DT180

int pshop.DT180 = 180-Days

Definition at line 316 of file pshop.py.

◆ DT210

int pshop.DT210 = 210-Days

Definition at line 325 of file pshop.py.

◆ DT240

int pshop.DT240 = 240-Days

Definition at line 334 of file pshop.py.

◆ DT270

int pshop.DT270 = 270-Days

Definition at line 343 of file pshop.py.

◆ DT30

int pshop.DT30 = 30-Days

Definition at line 267 of file pshop.py.

◆ DT300

int pshop.DT300 = 300-Days

Definition at line 352 of file pshop.py.

◆ DT330

int pshop.DT330 = 330-Days

Definition at line 362 of file pshop.py.

◆ DT366

int pshop.DT366 = 366-Days

Definition at line 371 of file pshop.py.

◆ DT60

int pshop.DT60 = 60-Days

Definition at line 279 of file pshop.py.

◆ DT90

int pshop.DT90 = 90-Days

Definition at line 289 of file pshop.py.

◆ Face

pshop.Face

Definition at line 142 of file pshop.py.

◆ GlassReplica

pshop.GlassReplica = whoami.CreateObject("icecube")

Definition at line 167 of file pshop.py.

◆ Inv

pshop.Inv = activator.Inventory

Definition at line 480 of file pshop.py.

◆ InvCount

def pshop.InvCount = GetInvCount(whoami)

Definition at line 128 of file pshop.py.

◆ Inventory

pshop.Inventory = whoami.Inventory

Definition at line 238 of file pshop.py.

◆ Item

def pshop.Item = whoami.Inventory

Definition at line 146 of file pshop.py.

◆ Items

list pshop.Items = []

Definition at line 481 of file pshop.py.

◆ LastDate

pshop.LastDate = datetime.datetime(int(Year),int(Month),int(Day))

Definition at line 259 of file pshop.py.

◆ MaxDays

pshop.MaxDays = int(Params)

Definition at line 264 of file pshop.py.

◆ Message

string pshop.Message = Crossfire.WhatIsMessage()

Definition at line 133 of file pshop.py.

◆ MissingItems

list pshop.MissingItems = []

Definition at line 483 of file pshop.py.

◆ Month

pshop.Month

Definition at line 258 of file pshop.py.

◆ Name

string pshop.Name = ''

Definition at line 149 of file pshop.py.

◆ NamePl

pshop.NamePl

Definition at line 194 of file pshop.py.

◆ Owner

pshop.Owner = VariableList[0].split(": ")[1]

Definition at line 252 of file pshop.py.

◆ Package

pshop.Package = whoami.CreateObject("dust_generic")

Definition at line 141 of file pshop.py.

◆ PicDB

pshop.PicDB = CFDataBase.CFDataBase("PicDB")

Definition at line 12 of file pshop.py.

◆ PicDict

pshop.PicDict = PicDB.get("Dict")

Definition at line 13 of file pshop.py.

◆ Price

int pshop.Price = 0

Definition at line 484 of file pshop.py.

◆ pshop

pshop.pshop = whoami.Map.Path.replace("/","_")

Definition at line 15 of file pshop.py.

◆ Quantity

int pshop.Quantity = int(Message[i-1])

Definition at line 139 of file pshop.py.

◆ RealItems

list pshop.RealItems = []

Definition at line 482 of file pshop.py.

◆ Slaying

pshop.Slaying

Definition at line 155 of file pshop.py.

◆ Speed

pshop.Speed

Definition at line 150 of file pshop.py.

◆ Str

pshop.Str = Dict.get(str(i))

Definition at line 427 of file pshop.py.

◆ t

pshop.t = GlassReplica.CreateObject("event_drop")

Definition at line 171 of file pshop.py.

◆ Title

string pshop.Title = ''

Definition at line 154 of file pshop.py.

◆ tmp

pshop.tmp = whoami.CreateObject("silvercoin")

Definition at line 378 of file pshop.py.

◆ Today

pshop.Today = datetime.date(1,2,3).today()

Definition at line 260 of file pshop.py.

◆ Trash

pshop.Trash = whoami.Map.ObjectAt(37,0)

Definition at line 654 of file pshop.py.

◆ Trash1

pshop.Trash1 = Trash.Above

Definition at line 656 of file pshop.py.

◆ Value

int pshop.Value = 0

Definition at line 135 of file pshop.py.

◆ VariableList

pshop.VariableList = Variables.Message.split('\n')

Definition at line 251 of file pshop.py.

◆ Variables

def pshop.Variables = whoami.Map.ObjectAt(49,0)

Definition at line 249 of file pshop.py.

◆ Weight

pshop.Weight

Definition at line 169 of file pshop.py.

◆ WeightLimit

pshop.WeightLimit

Definition at line 151 of file pshop.py.

◆ whoami

pshop.whoami = Crossfire.WhoAmI()

Definition at line 4 of file pshop.py.

◆ Year

pshop.Year

Definition at line 258 of file pshop.py.

◆ z

pshop.z = Package.CreateObject("event_pickup")

Definition at line 152 of file pshop.py.