1 import Crossfire,datetime,CFDataBase
4 while object.WeightLimit!=WeightLimit:
10 while object.Name!=Name:
17 while (object.Type != 1) :
23 Object=Map.ObjectAt(X,Y)
33 Inventory=mymap.ObjectAt(43,2)
34 MailMap=Crossfire.ReadyMap(
"/planes/IPO_storage")
35 while Inventory!=
None:
36 if Inventory.Name!=
"Vault":
37 package=whoami.CreateObject(
"package")
38 package.Name=
"IPO-package F: Your-Private-Shop T: "+Owner
39 Inventory.InsertInto(package)
40 package.Teleport(MailMap,2,2)
42 Inventory=Inventory.Above
43 Inventory=mymap.ObjectAt(43,2)
44 while Inventory!=
None:
45 if Inventory.Name!=
"Vault":
46 package=whoami.CreateObject(
"package")
47 package.Name=
"IPO-package F: Your-Private-Shop T: "+Owner
48 Inventory.InsertInto(package)
49 package.Teleport(MailMap,2,2)
51 Inventory=Inventory.Below
53 Dict=CFDB.get(
"pshop")
59 if This[1]!=
"PickedUp":
60 That=mymap.ObjectAt(This[1][0],This[1][1])
66 That.Teleport(whoami.Map,37,0)
68 CFDB.store(
'pshop',{})
70 Chest=mymap.ObjectAt(30,8)
73 Chest.Teleport(mymap, 15,10)
81 GetObjectAt(whoami.Map,30,5,
"Brazier material").Remove()
82 GetObjectAt(whoami.Map,30,6,
"Firepot material").Remove()
83 GetObjectAt(whoami.Map,30,7,
"Bright Firepot Material").Remove()
84 GetObjectAt(whoami.Map,29,8,
"Red CWall material").Remove()
85 whoami.Map.ObjectAt(49,5).Teleport(whoami.Map,30,5)
86 whoami.Map.ObjectAt(49,4).Teleport(whoami.Map,30,6)
87 whoami.Map.ObjectAt(49,6).Teleport(whoami.Map,30,7)
88 whoami.Map.ObjectAt(49,7).Teleport(whoami.Map,29,8)
89 whoami=Crossfire.WhoAmI()
93 activator=Crossfire.WhoIsActivator()
94 activatorname=activator.Name
100 VariableList= Variables.Message.split(
'\n')
101 Owner=VariableList[0]
105 Owner=Owner.split(
": ")[1]
106 Date=Date.split(
": ")[1]
108 Days=
int(Days.split(
": ")[1])
110 Year, Month, Day=Date.split(
"-")
111 LastDate=datetime.datetime(
int(Year),
int(Month),
int(Day))
112 Today=datetime.date(1,2,3).today()
113 Today=datetime.datetime(Today.year, Today.month, Today.day)
114 DaysPast=(Today-LastDate).days
123 Variables.Message=
"Owner: "+Owner+
"\nDate: "+
str(Today.year)+
"-"+
str(Today.month)+
"-"+
str(Today.day)+
"\nDays: "+
str(Days)
126 if activatorname==Owner:
127 message=Crossfire.WhatIsMessage()
128 if (message.upper().find(
"ENTER")>-1)
or (message.upper().find(
"YES")>-1):
131 activator.Teleport(mymap, 37,3)
132 activator.Teleport(mymap, X, Y)
133 whoami.Say(
"Greetings sire, you have "+
str(Days)+
" days left.")
135 whoami.Say(
"Greetings sire, would you like entry?")
139 whoami.Say(
"You are not alowed beyond this point. The rent will by up in "+
str(Days)+
" and you may rent it yourself then. If the current owner doesn't pay, that is.")
141 whoami.Say(
"You are currently not alowed beyond this point. The rent is past due. If you wish to proceed, place a platinum coin in the deposit box.")