ID:267640
 
So, since it feels newbieish, I thought I should put it here instead of the coding problem section where the big dogs hang out.

I'm trying to use this code so that when they login, they start off at a certain spot, so I figured I'd use this:

mob/Login()
src.loc = locate(/turf/myturf)

But, I'm not exactly sure what to do with it... Can I get some help, please? Thanks.
Just put the location of where you want them to start, look on the map for all the locations, mine starts at 69,80,1 so it would be like

mob/Login()
src.loc = locate(69,80,1)
In response to Nappa6003
But if there's more than one map, how does it know which one to start out in?

I'm editing this. I put in the code, and set the x y and z for 21,31,1, but I still start in the corner of the map.
There are a number of ways to do this.

The most basic way is to set the coordinates when they log in:

<code>loc = locate(1, 2, 3)</code>

Or you can place an area type on the map and have them warp to that. For example, define /area/start and have new players warp to the start area, after you place some /area/start on the map:

<code>loc = locate(/area/start)</code>

Or you can modify a specific turf on the map by setting its "tag" variable to "start" for example. Then:

<code>loc = locate("start")</code>

Note that instead of "loc = locate()", you can also use "Move(locate())":

<code>Move(locate(1, 2, 3))</code>
<code>Move(locate(/area/start))</code>
<code>Move(locate("start"))</code>

The difference between loc = locate() and Move(locate()) is that Move() will test to see if the object is able to enter the location before moving it. So if you try to Move() something dense onto a dense turf, it won't go. But you can loc = locate() things to anywhere, regardless of density or whatnot.
You put

mob/Login()
usr.loc=locate(x,y,z)