Click()
if(!game)
usr <<"There's no game going on."
return
if(!usr.ingame)
usr<<"You aren't even playing.."
return
else
if(usr.loc==src.loc)
if(src.owned)
usr << "[src.owner] owns this property"
return
else
switch(input("Would you like to buy the property?", text) in list("Yes","Nevermind"))
if("Yes")
if(usr.money<<src.cost)
usr << "You don't have enough money!"
else
usr.money -= src.cost
src.owned=1
src.owner=usr.name
usr << "You bought [src] for $[src.cost]!"
(returnPlayers()-usr) << "[usr] bought [src] for $[src.cost]"
if("Nevermind")
return
if(src.owner==usr.name)
switch(input("You own this property, what do you want to do with it?",text) in list("Buy a house","Buy a hotel","Nothing"))
if("Buy a house")
if(!src.hotel)
if(src.houses>=4)
usr<<"You have to buy a hotel now, you can't buy anymore houses."
return
else
usr<<"Ok then."
src.houses++
usr.money-=src.housecost
(returnPlayers()-usr) << "[usr] bought a house for [src.name] and now house [src.houses]!"
return
if(src.hotel)
usr << "You can't buy a house, since you have a hotel on the property already."
return
if("Buy a hotel")
if(!src.houses)
if(hotel)
usr << "You already have a hotel on this property!"
return
else
usr << "You need four houses before you can buy a hotel."
return
if(src.houses==4)
usr << "You buy the hotel."
usr.money-=src.housecost
src.houses=0
(returnPlayers()-usr) << "[usr] now has a hotel on [src.name]"
return
else
if(src.owned)
if(src.houses >> 0)
usr << "[src.owner] owns this property, and it has [src.houses]"
return
if(src.hotel)
usr << "[src.owner] owns this property, and has a hotel on it."
return
else
usr << "[src.owner] owns this property, which is [src]."
return
if(!src.owned)
usr << "No one owns this property yet."
Problem description: Uhh, I think that it has something to do with what I did with their locations... No matter if I'm on it or not, it tells me "No one owns this property yet" (Which is at the bottom of the proc)