Vitamin Carrot

Setting Starting Money 0.9.8

10 posts in this topic

I am assuming that as of 0.9.8 in order to set the starting amount of pop tabs I will need to edit the 'money' column under the 'player' table?

I say this as the money column appears to no longer be under the accounts table

Share this post


Link to post
Share on other sites

You could edit the 'locker' column. That's what I've done. Players spawn and when they get to trader the poptabs are in the lockers.

Share this post


Link to post
Share on other sites
Advertisement

On our server, I set starting money in the account table, locker column. That way when a noob doesn't pull the rip cord on his first spawn, he can still find his tabs in the locker once he makes his way there.

Edited by ynpMOOSE
Spelling

Share this post


Link to post
Share on other sites
21 minutes ago, Vitamin Carrot said:

Cheers guys, do you automate this amendment to the DB at all? if yes then how do?

-- Dumping structure for table exile.account
CREATE TABLE IF NOT EXISTS `account` (
  `uid` varchar(32) NOT NULL,
  `clan_id` int(11) unsigned DEFAULT NULL,
  `name` varchar(64) NOT NULL,
  `score` int(11) NOT NULL DEFAULT '0',
  `kills` int(11) unsigned NOT NULL DEFAULT '0',
  `deaths` int(11) unsigned NOT NULL DEFAULT '0',
  `locker` int(11) NOT NULL DEFAULT '20000',
  `first_connect_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `last_connect_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `last_disconnect_at` datetime DEFAULT NULL,
  `total_connections` int(11) unsigned NOT NULL DEFAULT '1',
  PRIMARY KEY (`uid`),
  KEY `clan_id` (`clan_id`),
  CONSTRAINT `account_ibfk_1` FOREIGN KEY (`clan_id`) REFERENCES `clan` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

This is among the first few lines of exile.sql that's given to you. You would just copy the locker line like I have it set and that will add 20k to every new account.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.