ID:262146
 
    doormatt
Enter(mob/M)
if(src.owner.len == 0)
switch(alert(M,"Do you wish to buy this house?","Buying House","Yes","No"))
if("Yes")
M<<"Welcome to your new house"
src.owner.Add(M.key)
return 1
if("No") //
return 0
else
if(M.key in src.owner)
return 1
else
M<<"This isn't your house!!!"
return 0


ok i dont know wut i should do here if the house is urs i want it to teleport you to the cords but if it isnt then it dosent but where would i put the locate code in this with out screwing it up?

src.loc = locate(1,1,1)
>   doormatt
> Enter(mob/M)
> if(src.owner.len == 0)
> switch(alert(M,"Do you wish to buy this house?","Buying House","Yes","No"))
> if("Yes")
> M<<"Welcome to your new house"
> src.owner.Add(M.key)
src.loc = locate(1,1,1)
> return 1
> if("No") //
> return 0
> else
> if(M.key in src.owner)
src.loc = locate(1,1,1)
> return 1
> else
> M<<"This isn't your house!!!"
> return 0
>
>


Yeah,just fix the indentation.

--Goz
In response to Goz
thanks alot there thats fianly 2 things off my list