area
House1
Enter()
if(owned==1)
if(usr.owner=="House1")
usr<<"Welcome"
usr<<"[housename]"
return 1
else
if(usr.canenter=="House1")
usr<<"[housename]"
return 1
else
usr<<"This is not your house,[housename]"
return 0
else
switch(alert("This house is for sale, do you want to buy it for 50000 gold?",,"Yes","No"))
if("Yes")
if(usr.gold>=50000) //How ever much you want the tempary house to sell for.
usr.gold-=50000 //How ever much you want the tempary house to sell for.
usr.owner="House1"
owned=1
statpanel("House")
usr.verbs+=/mob/proc/invite
usr.verbs+=/mob/proc/un_invite
usr.verbs+=/mob/proc/name_house
else
usr<<"You dont have enough gold!"
if("No")
return 0
Problem description:
ok thats how i have it to buy a house for a set price and when u buy it it keeps ur key untill.... the server is closed... i want it so it saves ur key to that house. Also how would i make it so the items u drop in that house are saved?
Please put your code inside the <dm> tags, not outside. That's what they're there for.
No put usr in proc. Ungh.
Lummox JR