fodim 7 Postado Janeiro 4, 2011 Share Postado Janeiro 4, 2011 nao consigo configurar nicaw aac xml Olha a Config <? /* Copyright (C) 2006 Nicaw This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. http://www.gnu.org/copyleft/gpl.html */ error_reporting(E_ALL ^ E_NOTICE); //---------------------------- Data Dir ---------------------------------------- /*Set location of data directory IMPORTANT! Use / to separate folders, put / in the end */ $cfg['dirdata'] = 'C:\NowOTTZ\data\'; //----------------------------- Website Configuration -------------------------- //look in skins folder to see available skins $cfg['skin'] = 'dark'; //name displayed in window title $cfg['server_name'] = 'NSO'; /*Encrypt passwords. (true / false) Works together with md5passwords = "yes" in server config.lua Strongly recomended, but off by default. After changing this, existing accounts will become inaccessible!*/ $cfg['md5passwords'] = False; /*(true / false) Using captcha will prevent automated sripts from flooding server with accounts. Note that GD library must be enabled in php.ini for this to work. extension_loaded('gd') means "auto"*/ $cfg['use_captha'] = extension_loaded('gd'); /*(advanced users only) Asks user's email when registering and attempts to send greeting. SMTP can be configured function mailex() in functions.php. Email content can be found in new.php. You must have DNS MX record if sending from local SMTP. Correct reverse DNS is also recomended.*/ $cfg['ask_email'] = false; /* Session security. Set medium if you get kicked out after loging in account. 0 - low (no fancy stuff) 1 - medium (users are loged out after being idle for specified time interval) 2 - high (IPs are checked to prevent session hijacking)*/ $cfg['session_security'] = 2; //seconds in which user is loged out. default is 10 minutes: 10*60 $cfg['session_timeout'] = 10*60; //allowed characters per account $cfg['maxchars'] = 3; /* enable unban feature. some servers ban permanetly for pking. if this enabled players will be unbaned when generating highscores (true / false)*/ $cfg['unban_allow'] = false; /* time in seconds after which player can be unbaned (2 days) d*hh*mm*ss; kapish? */ $cfg['unban_after'] = 2*24*60*60; //Delete old characters? $cfg['delete_allow'] = false; //delete players older than (seconds) $cfg['delete_player'] = 2*30*24*60*60; //(2 months) //only delete players with level lower than $cfg['delete_level'] = 20; /* Predefined account number. 0 - none (leave blank field), 1 - offer (put account number, but user can change it), 2 - force (dont allow user to select his own account number)*/ $cfg['account_number'] = 0; //Vocation names $cfg['voc_normal'] = array('None','Uzumaki Naruto','Uchiha Sasuke','Haruno Sakura','Neji hyuuga','shino','Lee','Kiba Inzuka','Gaara','Hinata','Itachi'); //Promoted names $cfg['voc_promoted'] = array('None','Master Sorcerer','Elder Druid','Royal Paladin','Elite Knight'); //Access level names $cfg['positions'] = array("Player", "Player", "Tutor", "Counselor", "GM"); //Access level to use admin panel $cfg['admin_access'] = 6; //Admin Panel - attributes to load from player file (root tag only) $cfg['admin_attrs'] = array('name', 'account', 'sex', 'exp', 'voc', 'level', 'access', 'cap', 'maglevel', 'lastlogin', 'premticks', 'promoted', 'banned'); //generate CVS players.xml file (true/false) This is mostly needed for 7.7 servers. $cfg['CVSplayers'] = False; //For online status. Do not change, unless you running on diferent port. $cfg['server_ip'] = "localhost"; $cfg['server_port'] = 7171; //----------------------------- Highscore Configuration ------------------------ //seconds in which highscores will be reloaded. default is 3 hours: 3*60*60 $cfg['rank_refresh'] = 1*60; // this access level and above not included in ranks $cfg['gm_access'] = 4; //number of ranks to cache $cfg['highscoreshow'] = 200; //how many displayer per page $cfg['number_per_page'] = 30; //----------------------------- All vocations ---------------------------------- $cfg['lvl'] = 1; // initial level (can be float like: 8.3 or 14.7) //whether to allow users to choose vocations. Set to false if you have Rook system $cfg['vocation_choose'] = True; //Players Temple(s) $cfg['temple']['Rook']['x'] = 137; $cfg['temple']['Rook']['y'] = 194; $cfg['temple']['Rook']['z'] = 7; // you might want to add GM chars here $cfg['vip_file'] = '<?xml version="1.0"?> <vips><vip id="1" name="Administrator"/></vips>'; //Depending on server, you might need to change depot configuration $cfg['depots'] = ' <depots> <depot depotid="1"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="2"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="3"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="4"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="5"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="6"><item id="2590"><inside><item id="2594"/></inside></item></depot> <depot depotid="7"><item id="2590"><inside><item id="2594"/></inside></item></depot> </depots> '; // Leave this stuff as it is if (!defined('MALE')) define('MALE', 1); if (!defined('FEMALE')) define('FEMALE', 0); if (!defined('UZUMAKI')) define('UZUMAKI', 1); if (!defined('Uchiha')) define('Uchiha', 2); if (!defined('Haruno')) define('Haruno', 3); if (!defined('Hyuuga')) define('Hyuuga', 4); if (!defined('Haku')) define('Haku', 5); if (!defined('Lee')) define('Lee', 6); if (!defined('Inzuka')) define('Inzuka', 7); if (!defined('TenTen')) define('TenTen', 8); if (!defined('Gaara')) define('Gaara', 9); if (!defined('HyuugaHinata')) define('HyuugaHinata', 10); if (!defined('Itachi')) define('Itachi', 11); if (!defined('Shino')) define('Shino', 12); //-------------------------------- naruto ------------------------------------ // Looks $cfg['look'][uZUMAKI][MALE] = '70'; $cfg['look'][uZUMAKI][FEMALE] = '70'; // HP, mana, magic level $cfg['health'][uZUMAKI] = '195'; $cfg['mana'][uZUMAKI] = '95'; $cfg['mlvl'][uZUMAKI] = '0'; $cfg['cap'][uZUMAKI] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][uZUMAKI] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][uZUMAKI] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][uZUMAKI] = '<item id="0" count="0"/><item id="0" count="0"/>'; //--------------------------------- sakura -------------------------------------- // Looks $cfg['look'][Haruno][MALE] = '71'; $cfg['look'][Haruno][FEMALE] = '71'; // HP, mana, magic level $cfg['health'][Haruno] = '195'; $cfg['mana'][Haruno] = '95'; $cfg['mlvl'][Haruno] = '0'; $cfg['cap'][Haruno] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][Haruno] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][Haruno] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][Haruno] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- neji ------------------------------------- // Looks $cfg['look'][Hyuuga][MALE] = '69'; $cfg['look'][Hyuuga][FEMALE] = '69'; // HP, mana, magic level $cfg['health'][Hyuuga] = '195'; $cfg['mana'][Hyuuga] = '95'; $cfg['mlvl'][Hyuuga] = '0'; $cfg['cap'][Hyuuga] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][Hyuuga] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][Hyuuga] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][Hyuuga] = '<item id="0" count="0"/><item id="0" count="0"/>'; //--------------------------------- lee ------------------------------------- // Looks $cfg['look'][Lee][MALE] = '59'; $cfg['look'][Lee][FEMALE] = '59'; // HP, mana, magic level $cfg['health'][Lee] = '195'; $cfg['mana'][Lee] = '95'; $cfg['mlvl'][Lee] = '0'; $cfg['cap'][Lee] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][Lee] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][Lee] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][Lee] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- Uchiha --------------------------------- // Looks $cfg['look'][uchiha][MALE] = '66'; $cfg['look'][uchiha][FEMALE] = '66'; // HP, mana, magic level $cfg['health'][uchiha] = '195'; $cfg['mana'][uchiha] = '95'; $cfg['mlvl'][uchiha] = '0'; $cfg['cap'][uchiha] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][uchiha] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][uchiha] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][uchiha] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- kiba --------------------------------- // Looks $cfg['look'][inzuka][MALE] = '25'; $cfg['look'][inzuka][FEMALE] = '25'; // HP, mana, magic level $cfg['health'][inzuka] = '195'; $cfg['mana'][inzuka] = '95'; $cfg['mlvl'][inzuka] = '0'; $cfg['cap'][inzuka] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][inzuka] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][inzuka] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][inzuka] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- gaara --------------------------------- // Looks $cfg['look'][Gaara][MALE] = '5'; $cfg['look'][Gaara][FEMALE] = '5'; // HP, mana, magic level $cfg['health'][Gaara] = '195'; $cfg['mana'][Gaara] = '95'; $cfg['mlvl'][Gaara] = '0'; $cfg['cap'][Gaara] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][Gaara] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][Gaara] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][Gaara] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- hinata --------------------------------- // Looks $cfg['look'][HyuugaHinata][MALE] = '58'; $cfg['look'][HyuugaHinata][FEMALE] = '58'; // HP, mana, magic level $cfg['health'][HyuugaHinata] = '195'; $cfg['mana'][HyuugaHinata] = '95'; $cfg['mlvl'][HyuugaHinata] = '0'; $cfg['cap'][HyuugaHinata] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][HyuugaHinata] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][HyuugaHinata] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][HyuugaHinata] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- itachi --------------------------------- // Looks $cfg['look'][itachi][MALE] = '64'; $cfg['look'][itachi][FEMALE] = '64'; // HP, mana, magic level $cfg['health'][itachi] = '195'; $cfg['mana'][uItachi] = '95'; $cfg['mlvl'][itachi] = '0'; $cfg['cap'][itachi] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][itachi] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][itachi] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][itachi] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------------- shino --------------------------------- // Looks $cfg['look'][shino][MALE] = '73'; $cfg['look'][shino][FEMALE] = '73'; // HP, mana, magic level $cfg['health'][shino] = '195'; $cfg['mana'][shino] = '95'; $cfg['mlvl'][shino] = '0'; $cfg['cap'][shino] = '470'; // Skills: fist, club, sword, axe, dist, shld, fish $cfg['skill'][shino] = array(10, 10, 10, 10, 10, 15, 10); // Eq: helm, amul, bp, armor, rght, left, legs, boot, ring, ammo $cfg['equip'][shino] = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0); // Backpack: $cfg['bp'][shino] = '<item id="0" count="0"/><item id="0" count="0"/>'; //-------------------------- NOOB SENSATIVE ----------------------------------- //relative paths hidden here from newbs. If you are one: DO NOT EDIT $cfg['diraccount'] = $cfg['dirdata'].'accounts/'; $cfg['dirplayer'] = $cfg['dirdata'].'players/'; $cfg['dirmonster'] = $cfg['dirdata'].'monster/'; $cfg['dirvip'] = $cfg['dirdata'].'vip/'; $cfg['dirhouse'] = $cfg['dirdata'].'houses/'; $cfg['dirdeleted'] = $cfg['dirdata'].'deleted/'; //-------------------------- END OF CONFIGURATION ----------------------------- //checking if directories defined previously really exist if (!(is_dir($cfg['dirplayer']) && is_dir($cfg['diraccount']))){ $error = "Warning!<br/>\n Please set correct data directory in config.php"; } //checking if IP not banned if (file_exists('banned.txt')){ $banned_ips = file ('banned.txt'); foreach ($banned_ips as $ip){ if ($ip == $_SERVER['REMOTE_ADDR']){ die("Sorry, your IP is banned from the website."); //ha ha ha. die die die. I love this function you're dead bye } } } //Calculating correct exp for level $cfg['exp'] = round(50*($cfg['lvl']-1)*($cfg['lvl']*$cfg['lvl']-5*$cfg['lvl']+12)/3); $cfg['lvl'] = floor($cfg['lvl']); //disable magic_quotes_gpc. ty wrzasq if( get_magic_quotes_gpc() ) { $_POST = array_map('stripslashes', $_POST); $_GET = array_map('stripslashes', $_GET); $_COOKIE = array_map('stripslashes', $_COOKIE); $_REQUEST = array_map('stripslashes', $_REQUEST); } //Check for correct PHP version if (!version_compare(phpversion(), "5.1.4", ">=") ) $error = "You need PHP 5.1.4 or later to run this AAC. Try the latest XAMPP."; //Check if extensions loaded if (!extension_loaded('simplexml')) $error = "SimpleXML is not enabled in php.ini"; ?> Pasta do ot:C:\Nowzin Ip Fixo: deidaraoot.no-ip.biz para ver o erro deidaraoot.no-ip.biz Link para o comentário https://xtibia.com/forum/topic/148803-n%C3%A3o-consigo-configurar-nicaw-xml/ Compartilhar em outros sites More sharing options...
Bondx 70 Postado Janeiro 4, 2011 Share Postado Janeiro 4, 2011 Não deu pra ver o erro, poste um print screen. Assim ninguém vai conseguir ajudar Abraços. Bondx. Link para o comentário https://xtibia.com/forum/topic/148803-n%C3%A3o-consigo-configurar-nicaw-xml/#findComment-984643 Compartilhar em outros sites More sharing options...
Posts Recomendados