Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
How to make a race live in the capital
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 18, 2019, 05:31:41 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: How to make a race live in the capital  (Read 3085 times)
0 Members and 1 Guest are viewing this topic.
eph
Guest
« on: November 03, 2005, 08:21:24 AM »

Yes, I know, it shouldn't be done, but I would love to make the capital the home city of some races. Modifying cities.php to allow the necessary shops, training etc is easy, but how can the capital be defined as home city in a race file?
Once again I'm too dense to find an answer myself.  Tongue
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: November 03, 2005, 08:57:06 AM »

Somewhere in the dohook-setrace-part do:
Code:
set_module_pref("homecity",getsetting("villagename", LOCATION_FIELDS),"cities");

and in the "village" hook you just have to block/unblock the necessary navs... Wink
Logged

Running for more than three years now:
eph
Guest
« Reply #2 on: November 03, 2005, 09:30:40 AM »

Of course it was as easy as expected. Must be the dreaded newbie-blindness, hopefully it gets away soon.

You're an angel! Thanks a ton!  Kiss
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
70 Guests, 1 User
HunterD
Home Forums News Downloads Login Register Advanced Search