Enter(mob/PC/M)
if(M.in_guild)
if(M.Guild_Name == "??")//this is where the new guild house owner should be
M.loc = locate(154,240,5)
M.density = 1
M.it_blocked = 1
M.it_lock = 1
else
M << "You aren't in the Guild "
else
M << "You must be in a Guild to enter the Guild Hall"
The verb should be able to edit the "??" to a guild in world (World_Guilds). I should also mension this is a turf. If there is any other way to do this then please tell me. Big thanks
in the turf, do this
then, simply do
if(M.Guild_Name == src.owner)
then, when you want to change the guild owner with a GM command, do this:
2 things about that though, hopefully guilds wont have more than 2 guild houses (Which should probably be so), and the other thing is that's probably not the most efficient way to do the last part, but I'm alittle sloppy for checking for that stuff. If you use that anyway, you might want to do a "Do you want to change the owner of [housenanme]?" so that you can choose if they can have more than 1.