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
ID:172412
![]() May 15 2004, 4:19 pm
|
|
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. That's really a lame way to do roofs, I do believe Shadowdarke has a library on something using areas. Go check it out. |
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 ..() |
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. Did you even look up Shadowdarke? He has a MUCH better thing than what you have. http://developer.byond.com/hub/Shadowdarke/RoofLib |
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. |
src.see_invisible = 1
to the load & login code this might fix it.