obj
var
saveX = 0
saveY = 0
saveZ = 0
turf
var
saveX = 0
saveY = 0
saveZ = 0
list
owner = list()
doorway
Entered(mob/M)
if(src.owner.len == 0)
switch(alert(M,"Do you wish to buy this house for $500?","Buying House","Yes","No"))
if("Yes")
if(usr.money>=500)
usr.money-=500
M<<"Welcome to your new house"
src.owner.Add(M.key)
return 1
else
usr<<"Not Enough Money"
return 0
if("No")
return 0
else
if(M.key in src.owner)
return 1
else
M<<"This isn't your house!!!"
return 0
var/list/HouseStuff = list()
world
New()
if(fexists("World Save Files/House.sav"))
var/savefile/F = new("World Save Files/House.sav")
F >> HouseStuff
for(var/obj/O in HouseStuff)
if(istype(O,/obj))
O.loc = locate(O.saveX,O.saveY,O.saveZ)
for(var/turf/T in HouseStuff)
if(istype(T,/turf/doorway))
for(var/turf/S in world)
if(istype(S,/turf/doorway))
if(S.loc == locate(T.saveX,T.saveY,T.saveZ))
S.owner = T.owner
HouseStuff.Remove(T)
Del()
var/savefile/F
F = new("World Save Files/House.sav")
for(var/turf/T in world)
if(istype(T,/turf/doorway))
T.saveX = T.x
T.saveY = T.y
T.saveZ = T.z
HouseStuff.Add(T)
if(istype(T,/turf/floor))
for(var/obj/O in T)
O.saveX = O.x
O.saveY = O.y
O.saveZ = O.z
HouseStuff.Add(O)
F << HouseStuff
mob/verb/Invite_Person(var/mob/M in world)
var/check = 0
if(M.client)
for(var/turf/T in world)
if(istype(T,/turf/doorway))
if(src.key in T.owner)
check = 1
T.owner.Add(M.key)
M<<"[src] invited you to his house!"
src<<"You invited [M] to your house!"
if(check == 0)
src<<"You don't own a house!"
Problem description: when i compile it works no problem, i can even add stuff on the map. but when i run it, it freezes Dream Seeker and never runs. And if i run it from Dream Deamon and enter does same thing. whats going on?
BYOND ERROR - maximum number of lists exceeded! (65535)
how do i fix?