diff --git a/characterprofile.php b/characterprofile.php
index 7ad5676..b57cdab 100644
--- a/characterprofile.php
+++ b/characterprofile.php
@@ -1,22 +1,40 @@
- 0) {
+
+ if (get_character_guild_rank($user_id) > 0)
+ {
$guild_exist = true;
$guild = get_player_guild_data($user_id);
$guild_name = get_guild_name($guild['guild_id']);
@@ -25,348 +43,511 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) {
?>
-
Profile:
+
+
+ Profile:
-
- Sex:
- Level:
- Vocation:
+
+ Country: '; ?>
+
+
+
+ Sex:
+
+
+
+
+
+
+ Level:
+
+
+
+
+
+ Vocation:
+
+
+
- of
+
+
+ of
+
+
- Last Login:
+
+ Last Login:
+
+ ?>
+
+
0) //if player doesn't have any achievement points it won't echo the line below.
- echo 'Achievement Points: ' .$achievement. ' ';
+ if ($config['Ach'])
+ {
+ foreach ($achievementPoints as $achievement)
+ {
+ //if player doesn't have any achievement points it won't echo the line below.
+ if ($achievement > 0)
+ {
+ echo 'Achievement Points: ' . $achievement . ' ';
+ }
}
}
?>
+
0)
+ {
$playerlist[] = $h['owner'];
+ }
- if ($profile_data['id'] = $h['owner']) {
- ?>
+ if ($profile_data['id'] = $h['owner'])
+ {
+ ?>
House: , $value) {
- if ($key == $h['town_id']) {
+ foreach ($config['towns'] as $key => $value)
+ {
+ if ($key == $h['town_id'])
+ {
echo $value;
}
}
- ?>
+ ?>
-
+
+
Status: ONLINE ';
- } else {
+ }
+ else
+ {
echo 'OFFLINE ';
}
- } else {
- if ($profile_data['online'] == 1) {
+ }
+ else
+ {
+ if ($profile_data['online'])
+ {
echo 'ONLINE ';
- } else {
+ }
+ else
+ {
echo 'OFFLINE ';
}
}
?>
+
+
+
Created:
- Comment:
-
-
-
-
-
Show/hide player achievements
-
-
-
-
- $achiv) {
- $uery = mysql_select_single("SELECT `player_id`, `value`, `key` FROM `player_storage` WHERE `player_id`='$user_id' AND `key`='$key' LIMIT 1;");
- if (!empty($uery) || $uery !== false) {
- foreach ($uery as $luery) {
- if ($luery == $key) {
- if (!array_key_exists($key, $achiv)) {
- echo '' .$achiv[0]. ' ' .$achiv[1]. ' ';
- if (!isset($achiv['secret'])) {
- echo ' ';
+
+
+
+
+ Comment:
+
+
+
+
+
+
+
+
+
Show/hide player achievements
+
+
+
+
+ $achiv)
+ {
+ $uery = mysql_select_single("SELECT `player_id`, `value`, `key` FROM `player_storage` WHERE `player_id`='$user_id' AND `key`='$key' LIMIT 1;");
+ if (!empty($uery) || $uery !== false)
+ {
+ foreach ($uery as $luery)
+ {
+ if ($luery == $key)
+ {
+ if (!array_key_exists($key, $achiv))
+ {
+ echo '' .$achiv[0]. ' ' .$achiv[1]. ' ';
+
+ if (!isset($achiv['secret']))
+ {
+ echo ' ';
+ }
+
+ echo ''. $achiv['points'] .' ';
+ echo '';
+ }
+ }
}
- echo ''. $achiv['points'] .' ';
- echo ' ';
}
}
- }
- }
- }
- ?>
-
-
-
-
-
-
-
-
+ ?>
+
+
+
+
+
+
+
+
Death List:
+ if ($array)
+ {
+ ?>
+
+
';
- // $value[0]
- $value['time'] = getClock($value['time'], true);
- if ($value['is_player'] == 1) {
- $value['killed_by'] = 'player: '. $value['killed_by'] .' ';
- } else {
- $value['killed_by'] = 'monster: '. $value['killed_by'] .'.';
- }
-
- echo '['. $value['time'] .'] Killed at level '. $value['level'] .' by '. $value['killed_by'];
- echo ' ';
+ $value['time'] = getClock($value['time'], true);
+
+ if ($value['is_player'] == 1)
+ {
+ $value['killed_by'] = 'player: '. $value['killed_by'] .' ';
+ }
+ else
+ {
+ $value['killed_by'] = 'monster: '. $value['killed_by'] .'.';
}
+
+ echo '['. $value['time'] .'] Killed at level '. $value['level'] .' by '. $value['killed_by']; ?>
+
+
This player has never died. ';
- }
- //Done.
- } else if ($config['TFSVersion'] == 'TFS_10') {
- $deaths = mysql_select_multi("SELECT
- `player_id`, `time`, `level`, `killed_by`, `is_player`,
- `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`
- FROM `player_deaths`
- WHERE `player_id`=$user_id ORDER BY `time` DESC LIMIT 10;");
+ }
+ else
+ {
+ echo 'This player has never died. ';
+ }
+ }
+ else if ($config['TFSVersion'] == 'TFS_10')
+ {
+ $deaths = mysql_select_multi("SELECT
+ `player_id`, `time`, `level`, `killed_by`, `is_player`,
+ `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`
+ FROM `player_deaths`
+ WHERE `player_id`=$user_id ORDER BY `time` DESC LIMIT 10;");
- if (!$deaths) echo 'This player has never died. ';
- else {
- foreach ($deaths as $d) {
+ if ($deaths)
+ {
+ foreach ($deaths as $d)
+ {
+ ?>
+
+ ".getClock($d['time'], true, true)."";
+ $lasthit = ($d['is_player']) ? "".$d['killed_by']." " : $d['killed_by'];
+ echo ": Killed at level ".$d['level']." by $lasthit";
+ if ($d['unjustified'])
+ {echo " (unjustified) ";}
+
+ $mostdmg = ($d['mostdamage_by'] !== $d['killed_by']) ? true : false;
+
+ if ($mostdmg)
+ {
+ $mostdmg = ($d['mostdamage_is_player']) ? "".$d['mostdamage_by']." " : $d['mostdamage_by'];
+ echo " and by $mostdmg.";
+
+ if ($d['mostdamage_unjustified'])
+ { echo " (unjustified) "; }
+ }
+ else
+ { echo " (soloed) "; }
?>
-
- ".getClock($d['time'], true, true)."";
- $lasthit = ($d['is_player']) ? "".$d['killed_by']." " : $d['killed_by'];
- echo ": Killed at level ".$d['level']." by $lasthit";
- if ($d['unjustified']) echo " (unjustified) ";
- $mostdmg = ($d['mostdamage_by'] !== $d['killed_by']) ? true : false;
- if ($mostdmg) {
- $mostdmg = ($d['mostdamage_is_player']) ? "".$d['mostdamage_by']." " : $d['mostdamage_by'];
- echo " and by $mostdmg.";
- if ($d['mostdamage_unjustified']) echo " (unjustified) ";
- } else echo " (soloed) ";
- ?>
-
-
+
+ }
+ else
+ {
+ echo 'This player has never died. ';
+ }
+ }
+ else if ($config['TFSVersion'] == 'TFS_03')
+ {
+ //mysql_select_single("SELECT * FROM players WHERE name='TEST DEBUG';");
+ $array = user_fetch_deathlist03($user_id);
+
+ if ($array)
+ {?>
';
+ foreach ($array as $value)
+ { ?>
+
+ = 1) {
+
+ if ($value[3] !== false && $value[3] >= 1)
+ {
$namedata = user_character_data((int)$value[3], 'name');
- if ($namedata !== false) {
+
+ if ($namedata !== false)
+ {
$value[3] = $namedata['name'];
$value[3] = 'player: '. $value[3] .' ';
- } else {
+ }
+ else
+ {
$value[3] = 'deleted player.';
}
- } else {
+ }
+ else
+ {
$value[3] = user_get_killer_m_name(user_get_kid($value['id']));
- if ($value[3] === false) $value[3] = 'deleted player.';
+
+ if ($value[3] === false)
+ { $value[3] = 'deleted player.'; }
}
+
echo '['. getClock($value['date'], true) .'] Killed at level '. $value['level'] .' by '. $value[3];
echo ' ';
}
- ?>
+ ?>
This player has never died. ';
+ }
+ else { echo 'This player has never died. '; }
+ }
+ ?>
+
+
+
+
+
-
-
-
-
-
-
- Quest progression
-
-
- Quest:
- progression:
-
-
+
+ Quest progression
+
+
+ Quest:
+ progression:
+
+
+
+
+
+ %
+
+
+
+
-
-
-
- %
-
-
-
+
+ if ($firstrun == 0)
+ { ?>
+
';
-}
-?>
-
+ }
+ ?>
+
+
1) {
+ if (user_character_hide($profile_data['name']) != 1 && user_character_list_count(user_character_account_id($name)) > 1)
+ {
?>
Other visible characters on this account:
1) {
+ if ($characters && count($characters) > 0)
+ {
?>
-
- Name:
-
-
- Level:
-
-
- Vocation:
-
-
- Last login:
-
-
- Status:
-
+ Name:
+ Level:
+ Vocation:
+ Last login:
+ Status:
+
';
- echo ''. $char['name'] .' ';
- echo ''. $char['level'] .' ';
- echo ''. $char['vocation'] .' ';
- echo ''. $char['lastlogin'] .' ';
- echo ''. $char['online'] .' ';
- echo '';
+ foreach ($characters as $char)
+ {
+ if ($char['name'] != $profile_data['name'])
+ {
+ if (hide_char_to_name(user_character_hide($char['name'])) != 'hidden')
+ { ?>
+
+
+
+
+
+
+
+
This player has never died. ';
- }
- //Done.
- ?>
+ }
+ else
+ {
+ echo 'This player has never died. ';
+ }
+ ?>
- Address: ">
+
+
+ Address:
+ ">
+
+
Points"; ?>
-
+ '; ?>
". $scores[$type][$i]['experience'] .""; ?>
diff --git a/register.php b/register.php
index 0a9a12d..f7aca66 100644
--- a/register.php
+++ b/register.php
@@ -1,7 +1,7 @@
$_POST['username'],
+ 'name' => $_POST['username'],
'password' => $_POST['password'],
'email' => $_POST['email'],
- 'ip' => ip2long(getIP()),
- 'created' => time()
+ 'created' => time(),
+ 'ip' => ip2long(getIP()),
+ 'flag' => $_POST['flag']
);
user_create_account($register_data, $config['mailserver']);
@@ -146,6 +148,22 @@ if (isset($_GET['success']) && empty($_GET['success'])) {
Email:
+
+ Country:
+
+ (Please choose) Afghanistan Albania Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Argentina
+ Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia Bosnia and Herzegowina Botswana Bouvet Island Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi
+ Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos Islands Colombia Comoros Congo Congo Cook Islands Costa Rica Cote DIvoire Croatia Cuba Cyprus Czech Republic Denmark Djibouti Dominica
+ Dominican Republic East Timor Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece
+ Greenland Grenada Guadeloupe Guam Guatemala Guinea Guinea-Bissau Guyana Haiti Heard and Mc Donald Islands Honduras Hong Kong Hungary Iceland India Indonesia Iran Iraq Ireland Israel Italy Jamaica Japan Jordan Kazakhstan Kenya
+ Kiribati Korea Korea Kuwait Kyrgyzstan Lao Peoples Democratic Republic Latvia Lebanon Lesotho Liberia Libyan Arab Jamahiriya Liechtenstein Lithuania Luxembourg Macau Macedonia Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique
+ Mauritania Mauritius Mayotte Mexico Micronesia Moldova Monaco Mongolia Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands Netherlands Antilles New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island Northern Mariana Islands
+ Norway Oman Pakistan Palau Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Reunion Romania Russian Federation Rwanda Saint Kitts and Nevis Saint Lucia Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal
+ Seychelles Sierra Leone Singapore Slovakia Slovenia Solomon Islands Somalia South Africa Spain Sri Lanka St. Helena St. Pierre and Miquelon Sudan Suriname Svalbard and Jan Mayen Islands Swaziland Sweden Switzerland Syrian Arab Republic Taiwan Tajikistan Tanzania
+ Thailand Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu Uganda Ukraine United Arab Emirates United Kingdom United States Uruguay Uzbekistan Vanuatu Vatican Venezuela Viet Nam Virgin Islands (British) Virgin Islands (US)
+ Wallis and Futuna Islands Western Sahara Yemen Yugoslavia Zambia Zimbabwe
+
+