ID:172412
 
Well the roof code works but theres a bug since in the code you must exit to have to see Roofs again but if your in the house and relog(My login code sends you back to the start everytime) you can see the inside of the house even if your not inside yet.This is my code.

mob/characters/MainMale
icon = 'MainMale.dmi'
icon_state = "normal"
see_invisible = 1

mob/characters/MainFemale
icon = 'MainFemale.dmi'
icon_state = "normal"
see_invisible = 1
obj
Roof
icon = 'Turfs.dmi'
icon_state = "Roof"
invisibility = 1
layer = 10
area
house
Entered(mob/M)
if(ismob(M))
M.see_invisible = 0
Exited(mob/M)
if(ismob(M))
M.see_invisible = 1
add
src.see_invisible = 1

to the load & login code this might fix it.
Turles9000 wrote:
Well the roof code works but theres a bug since in the code you must exit to have to see Roofs again but if your in the house and relog(My login code sends you back to the start everytime) you can see the inside of the house even if your not inside yet.This is my code.

mob/characters/MainMale
icon = 'MainMale.dmi'
icon_state = "normal"
see_invisible = 1

mob/characters/MainFemale
icon = 'MainFemale.dmi'
icon_state = "normal"
see_invisible = 1
obj
Roof
icon = 'Turfs.dmi'
icon_state = "Roof"
invisibility = 1
layer = 10
area
house
Entered(mob/M)
if(ismob(M))
M.see_invisible = 0
Exited(mob/M)
if(ismob(M))
M.see_invisible = 1


That's really a lame way to do roofs, I do believe Shadowdarke has a library on something using areas. Go check it out.
In response to Goku72
I did use area's.Mainly because i couldnt find any libs or demos that dont use area.Yea i tried that Madpeter but it doesnt work for some reason, this is how i did the Login code.By the way host dbeo Goku =p.

mob
Login()
src.see_invisible = 1
if((src.key in Testers))
..()
else
src << "AutoBoot-Testers Only Sorry"
del(src)
if((src.key in Admin))
..()
else
if(src.client.address in world)
src << "AutoBoot-You are already Logged in On same computer"
del(src)
src.loc = locate(1,1,2)
SetName(name)
if((src.key in Admin))
src.verbs+=typesof(/mob/Admin/verb)
admin = 1
else
admin = 0
..()
In response to Turles9000
Turles9000 wrote:
I did use area's.Mainly because i couldnt find any libs or demos that dont use area.Yea i tried that Madpeter but it doesnt work for some reason, this is how i did the Login code.By the way host dbeo Goku =p.

mob
Login()
src.see_invisible = 1
if((src.key in Testers))
..()
else
src << "AutoBoot-Testers Only Sorry"
del(src)
if((src.key in Admin))
..()
else
if(usr.client.address in world)
src << "AutoBoot-You are already Logged in On same computer"
del(src)
src.loc = locate(1,1,2)
SetName(name)
if((src.key in Admin))
src.verbs+=typesof(/mob/Admin/verb)
admin = 1
else
admin = 0
..()

Did you even look up Shadowdarke? He has a MUCH better thing than what you have.

http://developer.byond.com/hub/Shadowdarke/RoofLib
In response to Goku72
I dont have ByondScape Subcription though.
In response to Madpeter
Bump, So can anyone help with this please?
In response to Turles9000
MadPeter told you how to fix it, though I'd take it a step further and test the mob's area in Login() to see if see_invisible should be set or not.

And trust me, it is well worth a dollar to get all the libraries in BYONDscape, including my RoofLib. ;) If it's difficult to get a dollar online, submit content! A simpleBWS report will get you access.
In response to Shadowdarke
yea i tried setting the See invisible at login and even though it should work it doesnt. Guess ill just check the guys area when they login.Also by submitting a BWS Stringer i get a byond scape subcription?When i submit a stringer all i have to do is Judge and give a good decription of a game?
Logout()
src.see_invisible=0
..()

not sure if this is EXACTLY what you need, but looks like it would work for what you want...

[Edit] OOPs! is see_invisable=1 mean you cant see invisable, if so, change 0 to 1. heh