ID:146306
 
I have had a looked and i was wondering with this one

obj
GuildDoor1
guild = "Guild Name"
verb
Open()
set src in view(1)
if(usr.guild == src.guild)
src.density = 0
src.icon_state = ""
sleep(20)
src.density = 1
src.icon_state = "originaliconstate"
return
else
usr << "You need to be in [src.guild] to enter this house!"


If the usr is in the guild where should i place the
M.loc=locate(1,5,1)


Any ideas? on where?
obj
GuildDoor1
guild = "Guild Name"
verb
Open()
set src in view(1)
if(usr.guild == src.guild)
src.density = 0
src.icon_state = ""
sleep(20)
src.density = 1
src.icon_state = "originaliconstate"
M.loc=locate(1,5,1)
else
usr << "You need to be in [src.guild] to enter this house!"

Tired.. x.x
You place it after it says you can enter.

Why dont you look up your other posts on guild houses? There has to be aleast 10 of them by you.
In response to RaditzX
Govegtos, where you rip that one from?
In response to Cheetoz
Somebody posted it on the forum, and he copied & pasted it. It's either that, or he uses indents with two spaces, which I highly doubt.
Do you even vaguely understand that piece of coding? If you did you wouldn't be "wondering".
First off... You never defined M, you would need to change that to "usr", second it would go in-between the door opening and the door closing.
In response to DeathAwaitsU
Dude, leave him alone. He doesnt have time to learn, because he has to work twice a week.

Well, So he tells me.
In response to Smoko
Nope, he has been asking for guild help for a over 18 months! all he does is post code, that he found on the forum, and asks us to fix it. So the answer is No.

edit: proof http://developer.byond.com/forum/ index.cgi?action=message_list&query=author%3Agovegtos

memorize

<nobr>
In response to Xx Dark Wizard xX
And the constant asking me simple questions on AIM/MSN.

You can tell him the answer with or without code and it doesnt make a difference. But, if you think its funny cause your 8 year old brother wants GM and give it to them then I dont see how you can learn to program.
In response to Smoko
wait, i thought he was 8 years old?
In response to Xx Dark Wizard xX
Maybe they are twins?
In response to Smoko
Smoko wrote:
Dude, leave him alone. He doesnt have time to learn, because he has to work twice a week.

Well, So he tells me.

And yes that is true
In response to Govegtos
It's no excuse. Dont you think the developers of BYOND have jobs? And alot of other people here that can program do to?

You have to put your time into learning. Not changing certain parts and so forth
In response to Govegtos
U work twice a week? gee that leaves u 5 days per week to learn
In response to Ol' Yeller
why do you want a door with open/close anyways? nobody can see it unless the spectator is outside, and since nobody plays zeta rips...
In response to Xeronage
how many ppl do u say that plays zeta rips count them.
In response to Govegtos
[link] (that for you govegtos)