No, I mean your server wont work with Znote acc
Then how could I create accounts at the beginning then? This is very confusing...
No, I mean your server wont work with Znote acc
- Admin panel will now display which Znote AAC version thats running.
- You can now disable IP validation if your having problems with it in config.php
- You can now disable salt in config.php if your TFS 0.3 noobserv dosn't support it. Thanks to ranyo13/rany
- Added firstitems.lua sample to give starting items to characters. (TFS 0.3)
- Fixed a bug in shop which could potentially let people buy items for no points. Thanks to averatec.
- Fixed so you no longer can invite characters to your guild if they already are invited or a part of it. Thanks to averatec.
Your lucky, I just fixed that issue.Then how could I create accounts at the beginning then? This is very confusing...
Aand ye, make sure you are running latest version (Znote AAC 1.2), then look into the LUA --> Creaturescript firstitems folder, you will find scripts for firstitems.I have another question; how do you change startitems for new characters?
just a thing.. if you put a link, like in register that you redirects to wikipedia for see what is cheating or bot.. put in the <a href> another parameter called TARGET="_new", for make it more comfortable and don't lose the ot website, opening the link in another page
sorry errors I can't edit the post
Hey Znote, I am using your aac cms and its really nice.
However I am using the first version, and i've been doing a lot of changes to many of the files, so I want to ask you; when you update the aac version, is it possible for you to include what files that have been edited in the changelog?
Would make things a lot easier for me when updating!
Thanks for a sweet system, fellow norwegian.
Best regards
// WARNING! Account names written here will have admin access to web page!
$config['page_admin_access'] = array(
'otland',
'otland1',
);
$defaultAdmin = array(
'otland',
'otland1',
);
$isNoob = in_array(strtolower($_POST['username']), $defaultAdmin) ? true : false;
$isNoob = in_array(strtolower($_POST['username']), $config['page_admin_access']) ? true : false;
function user_character_list($account_id) {
//$count = user_character_list_count($account_id);
$account_id = sanitize($account_id);
$query = mysql_query("SELECT `name`, `level`, `vocation`, `town_id`, `lastlogin`, `online` FROM `players` WHERE `account_id`='$account_id' ORDER BY `level` DESC LIMIT 0, 30");
$count = mysql_num_rows($query);
for ($i = 0; $i < $count; $i++) {
$row = mysql_fetch_row($query);
$array[] = $row;
$array[$i][2] = vocation_id_to_name($array[$i][2]); // Change vocation id to vocation name
$array[$i][3] = town_id_to_name($array[$i][3]); // Change town id to town name
// Make lastlogin human read-able.
if ($array[$i][4] != 0) {
$array[$i][4] = date(config('date'),$array[$i][4]);
} else {
$array[$i][4] = 'Never.';
}
$array[$i][5] = online_id_to_name($array[$i][5]); // 0 to "offline", 1 to "ONLINE".
// deprecated, znote_players now has hide_char
//$array[$i][6] = hide_char_to_name($array[$i][6]); // 0 to "visible", 1 to "hidden".
}
if (isset($array)) {return $array; } else {return false;}
}
function user_character_list($account_id) {
//$count = user_character_list_count($account_id);
$account_id = sanitize($account_id);
$query = mysql_query("SELECT `name`, `level`, `vocation`, `town_id`, `lastlogin`, `online` FROM `players` WHERE `account_id`='$account_id' ORDER BY `level` DESC LIMIT 0, 30");
if ($query) {
$count = mysql_num_rows($query);
for ($i = 0; $i < $count; $i++) {
$row = mysql_fetch_row($query);
$array[] = $row;
$array[$i][2] = vocation_id_to_name($array[$i][2]); // Change vocation id to vocation name
$array[$i][3] = town_id_to_name($array[$i][3]); // Change town id to town name
// Make lastlogin human read-able.
if ($array[$i][4] != 0) {
$array[$i][4] = date(config('date'),$array[$i][4]);
} else {
$array[$i][4] = 'Never.';
}
$array[$i][5] = online_id_to_name($array[$i][5]); // 0 to "offline", 1 to "ONLINE".
// deprecated, znote_players now has hide_char
//$array[$i][6] = hide_char_to_name($array[$i][6]); // 0 to "visible", 1 to "hidden".
}
} else
return false;
}
Im going through a lot of users.php now. hope you dont mind me posting bugs(?). Any chance you can still include a list of changed files when you push out updates? Unlike Hauni I cant get access to the SVN.
This prevents a warning message when there are no characters on the account.
CREATE TABLE `znote` ( `id` int(10) NOT NULL AUTO_INCREMENT,
`version` varchar(30) NOT NULL COMMENT 'Znote AAC version',
`installed` int(10) NOT NULL,
`cached` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
INSERT INTO `znote` (`version`, `installed`) VALUES
('$version', '$time');
CREATE TABLE `znote_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`ip` int(10) NOT NULL,
`created` int(10) NOT NULL,
`points` int(10) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
INSERT INTO `znote_accounts` (`account_id`, `ip`, `created`) VALUES
('1', '0', '$time');
CREATE TABLE `znote_paypal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`txn_id` varchar(30) NOT NULL,
`email` varchar(255) NOT NULL,
`accid` int(11) NOT NULL,
`price` int(11) NOT NULL,
`points` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE `znote_players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` int(11) NOT NULL,
`created` int(11) NOT NULL,
`hide_char` tinyint(4) NOT NULL,
`comment` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
INSERT INTO `znote_players` (`player_id`, `created`, `hide_char`, `comment`) VALUES
('1', '$time', '0', '. . .');
CREATE TABLE `znote_shop` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL,
`itemid` int(11) DEFAULT NULL,
`count` int(11) NOT NULL DEFAULT '1',
`describtion` varchar(255) NOT NULL,
`points` int(11) NOT NULL DEFAULT '10',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE `znote_shop_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`player_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`itemid` int(11) NOT NULL,
`count` int(11) NOT NULL,
`points` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE `znote_shop_orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`itemid` int(11) NOT NULL,
`count` int(11) NOT NULL,
`time` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE `znote_visitors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` int(11) NOT NULL,
`value` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
CREATE TABLE `znote_visitors_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` int(11) NOT NULL,
`time` int(11) NOT NULL,
`type` tinyint(4) NOT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Table 'ironserver.znote_visitors_details' doesn't exist
Hey, is there a option to change font? Just to simple arial or whatever cause default Znote AAC font seems to not have Polish diacritics (or any other?) and second question is: can i by any chance translate interface? I mean, everything is in files, i have to find it, translate and it's done, right?
@font-face {
font-family: 'StMarieThin';
src: url('../fonts/StMarie-Thin.otf') format('otf');
}
#logo h1, #logo h2 {
font: normal 420% 'stmarie-thin', arial, sans-serif;
border-bottom: 0;
text-transform: none;
margin: 0;
}
Why are passwords saved as 839e8320dad6f8f9b2f2a22b00081421hh123h12 I want them to be normal!