how can i make players began with vip 3 and 100 k pp and level 50
Edit your account table design to set the default value for 'vip' to three.Quote:
how can i make players began with vip 3
First way I can think of would be to create a noobie gift that awards 100k pp and levels up any player between 1-49 to level 50. You of course would want to make this newbie gift untradeable/undropable.Quote:
and 100 k pp and level 50
`id` int(4) unsigned zerofill NOT NULL AUTO_INCREMENT, `name` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `password` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `type` int(4) unsigned NOT NULL DEFAULT '0', `point` int(4) DEFAULT '0', `pointtime` int(4) unsigned zerofill NOT NULL DEFAULT '20020318', `online` int(4) unsigned zerofill NOT NULL DEFAULT '0000', `reg_date` datetime DEFAULT NULL, `licence` int(4) unsigned DEFAULT '0', `reg_flag` bigint(12) unsigned DEFAULT '3', `netbar_ip` varchar(15) DEFAULT '127.0.0.1', `ip_mask` varchar(15) DEFAULT '255.255.255.255', `add_type` smallint(1) unsigned zerofill NOT NULL DEFAULT '0', `VIP` int(4) unsigned NOT NULL DEFAULT '4', `offline` int(4) DEFAULT NULL, `pwd` varchar(32) DEFAULT NULL, `idnum` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_name_pass` (`name`,`password`), UNIQUE KEY `index_username` (`name`), KEY `index_type` (`type`), KEY `index_regtype` (`reg_flag`), KEY `index_isp` (`type`,`netbar_ip`), KEY `typereg` (`type`,`reg_date`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
#Highlighted.Quote:
king arthur..can u show..this is mine:
Code:`id` int(4) unsigned zerofill NOT NULL AUTO_INCREMENT, `name` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `password` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `type` int(4) unsigned NOT NULL DEFAULT '0', `point` int(4) DEFAULT '0', `pointtime` int(4) unsigned zerofill NOT NULL DEFAULT '20020318', `online` int(4) unsigned zerofill NOT NULL DEFAULT '0000', `reg_date` datetime DEFAULT NULL, `licence` int(4) unsigned DEFAULT '0', `reg_flag` bigint(12) unsigned DEFAULT '3', `netbar_ip` varchar(15) DEFAULT '127.0.0.1', `ip_mask` varchar(15) DEFAULT '255.255.255.255', `add_type` smallint(1) unsigned zerofill NOT NULL DEFAULT '0', `[COLOR="Red"][B]VIP[/B][/COLOR]` int(4) unsigned NOT NULL DEFAULT '[COLOR="Red"][B]4[/B][/COLOR]', `offline` int(4) DEFAULT NULL, `pwd` varchar(32) DEFAULT NULL, `idnum` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_name_pass` (`name`,`password`), UNIQUE KEY `index_username` (`name`), KEY `index_type` (`type`), KEY `index_regtype` (`reg_flag`), KEY `index_isp` (`type`,`netbar_ip`), KEY `typereg` (`type`,`reg_date`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
I said that to make sure that people run the query in the database where their account information is stored. If you have a separate account db, then run it there. If you don't have a separate account db, then run it in either the my db or the my2 db, whichever one you have.Quote:
run it account/my/my2?didnt understand