How to assign players location

General Chat, Comments
Post Reply
KaL
Posts: 344
Joined: Mon Jan 13, 2014 5:44 am

How to assign players location

Post by KaL »

I was looking into the game default location but i was unable to assign players location. I want to assign player location from the start that they signup for the game. So this way i will have multiple location, which represent countries, that will distribute the population evenly. Can you tell me where to go or how to?
User avatar
a_bertrand
Posts: 1536
Joined: Mon Feb 25, 2013 1:46 pm

Re: How to assign players location

Post by a_bertrand »

The player location is stored using a user variable. Also there is a config "defaultLocation" which can be accessed via admin panel and can define the default location players start with. If you want to have different locations for each players then you will need to create a new module for that and use for example the function SetPlayerLocation defined in modules/locations/lib.php
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
KyleMassacre
Posts: 573
Joined: Wed Nov 27, 2013 12:42 pm

Re: How to assign players location

Post by KyleMassacre »

I would create a new module and use during register and after register I believe the after register will override what's the default locationbut I could be wrongand in the during register you can add a select box for a smart selection where user can choose where they want to be
Post Reply

Return to “General”