Ir para conteúdo

Hadggar

Membro
  • Registro em

  • Última visita

Tudo que Hadggar postou

  1. não sei falar essa lingua tua, malz não itendi nada. @UP @UP @UP
  2. Opa galera, Sr.samuel, passou um site e funfo blz, certinho, so que tem um problema, quando o player vai criar conta é talz aparece esse erro : To use reCAPTCHA you must get an API key from http://recaptcha.net/api/getkey Alguem Ajuda?
  3. CAAAAAAAAAAAAARCA VLWWWWWWWWWWWWWWWWWWW sr.samuel rep+ VLLLLW
  4. pode me passar alguum que funcione ? 8.54?
  5. Não funcionou , malz pela demora, ja deletei a databse e criei outra, no phpmyadmin, ta no mesmo. @UP
  6. vou testar se funfar te aviso.
  7. ok pera ai o dedicado trava mt accountManager = false namelockManager = true newPlayerChooseVoc = true newPlayerSpawnPosX = 1027 newPlayerSpawnPosY = 912 newPlayerSpawnPosZ = 5 newPlayerTownId = 1 newPlayerLevel = 1 newPlayerMagicLevel = 1 generateAccountNumber = false redSkullLength = 30 * 24 * 60 * 60 blackSkullLength = 45 * 24 * 60 * 60 dailyFragsToRedSkull = 6 weeklyFragsToRedSkull = 30 monthlyFragsToRedSkull = 60 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = false notationsToBan = 10 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 7 * 24 * 60 * 60 killsBanLength = 7 * 24 * 60 * 60 finalBanLength = 30 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = true maxViolationCommentSize = 200 violationNameReportActionType = 2 autoBanishUnknownBytes = false worldType = "pvp" protectionLevel = 100 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 60 * 1000 huntingDuration = 60 * 1000 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = false removeWeaponAmmunition = true removeWeaponCharges = false removeRuneCharges = true whiteSkullTime = 15 * 60 * 1000 noDamageToSameLookfeet = false showHealingDamage = true showHealingDamageForMonsters = false fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = true oldConditionAccuracy = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 5 stairhopDelay = 2 * 1000 pushCreatureDelay = 1 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true worldId = 0 ip = "198.50.232.82" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 125 motd = "Bem Vindo ao NToGenerations!" displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = false allowClones = false serverName = "NtoGenerations" loginMessage = "Bem Vindo ao Naruto Online Generations." statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "******" <--- tirei a senha. sqlDatabase = "server123" sqlFile = "server123.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 ingameGuildManagement = true levelToFormGuild = 100 premiumDaysToFormGuild = 0 guildNameMinLength = 3 guildNameMaxLength = 20 highscoreDisplayPlayers = 15 updateHighscoresAfterMinutes = 60 buyableAndSellableHouses = true houseNeedPremium = false bedsRequirePremium = false levelToBuyHouse = 100 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 5000 houseRentPeriod = "week" houseCleanOld = 0 guildHalls = false timeBetweenActions = 200 timeBetweenExActions = 1000 hotkeyAimbotEnabled = true mapName = "nowo" mapAuthor = "Scremmo" randomizeTiles = true storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false formulaLevel = 5.0 formulaMagic = 1.0 bufferMutedOnSpellFailure = false spellNameInsteadOfWords = true emoteSpells = true allowChangeOutfit = false allowChangeColors = false allowChangeAddons = false disableOutfitsForPrivilegedPlayers = true addonsOnlyPremium = true dataDirectory = "data/" bankSystem = true displaySkillLevelOnAdvance = true promptExceptionTracerErrorBox = true separateViplistPerCharacter = false maximumDoorLevel = 500 maxMessageBuffer = 20 saveGlobalStorage = true useHouseDataStorage = false storePlayerDirection = false checkCorpseOwner = true monsterLootMessage = 3 monsterLootMessageType = 25 ghostModeInvisibleEffect = false ghostModeSpellEffects = true idleWarningTime = 14 * 60 * 1000 idleKickTime = 30 * 60 * 1000 expireReportsAfterReads = 1 playerQueryDeepness = 2 maxItemsPerPZTile = 0 maxItemsPerHouseTile = 0 freePremium = false premiumForPromotion = false blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecreament = 3 eachBlessReduction = 8 experienceStages = true rateExperience = 50.0 rateExperienceFromPlayers = 0 rateSkill = 3.0 rateMagic = 0.1 rateLoot = 7.0 rateSpawn = 7 rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 rateStaminaLoss = 5 rateStaminaGain = 4 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 2 * 60 staminaRatingLimitBottom = 1 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 experienceShareActivity = 2 * 60 * 1000 globalSaveEnabled = false globalSaveHour = 8 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false deSpawnRange = 2 deSpawnRadius = 50 maxPlayerSummons = 4 teleportAllSummons = true teleportPlayerSummons = true ownerName = "NtoGenerations" ownerEmail = "[email protected]" url = "naotemos.com" location = "Brazil" displayGamemastersWithOnlineCommand = false adminLogsEnabled = false displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = false
  8. Galera criei , um site é talz mais ai player se registra , no site normalmente é talz, ai quando vai logar pelo client, com a conta criada, no site, fala Invalid Password, mais a password ta certa, alguem ajuda pf?
  9. Opa galera, queria saber como faço para tirar essa foto, aki a print @UP
  10. achei aki mais como configuro? <?php ################################################## # CONFIGURATION # ################################################## # Congratulations on finding configuration file. # # This is very simililar to config.lua as it # # follows same basic principles. Text in between # # /* */ or starting with # is ignored. Text # # values must be 'qouted'. Logical values are # # true/false. All statements end with ; # ################################################## # Set data directory of your OT server $cfg['dirdata'] = '/home/bido/otserv/'; $cfg['house_file'] = 'world/house.xml'; # MySQL server settings $server = 'localhost'; $user = 'root'; $password = 'natan141'; $database = 'server123'; # Must correspond to your OTServ configuration # Options: plain, md5, sha1 $cfg['password_type'] = 'plain'; # Not currently supported by OTServ, leave empty $cfg['password_salt'] = ''; /* * Look skins/ to find out which skins you have * Available skins: * default - First skin ever created, white * swamp - Green skin with swamp theme * swamp-mini - Same as swamp.css, but with compact menu * dark - Dark version of default.css * conquest - Customized skin, renaissance theme * essense - Clean skin with green/blue motives * inferno - Darker skin with menu on the right * silica - Green skin, technology theme * Need more? Look http://otfans.net/ and * http://sourceforge.net/projects/nicaw-acc/files/ */ $cfg['skin'] = 'silica'; # In case you want to upload skins somewhere else $cfg['skin_url'] = 'skins/'; /* * Captcha is used to prevent automated software from * flooding server with accounts * GD2 PHP extension is required */ $cfg['use_captcha'] = true; # Secure session will disable 'remember me' box $cfg['secure_session'] = true; # Seconds until session expires $cfg['timeout_session'] = 10 * 60; # Maximum number of characters on account $cfg['maxchars'] = 10; # Players per highscore page $cfg['ranks_per_page'] = 50; # This access and above will not be in highscores $cfg['ranks_access'] = 2; # Home page $cfg['start_page'] = 'news.php'; # Name shown in window title $cfg['server_name'] = 'Nicaw SQL'; # Server ip and port for getting status. # In most cases localhost should be used $cfg['server_ip'] = '127.0.0.1'; $cfg['server_port'] = 7171; # Allow teleportation to temple? $cfg['char_repair'] = false; # Force users to validate their emails when registering? # For email functions to work, SMTP server must be configured correctly $cfg['Email_Validate'] = false; # Allow email based account recovery? $cfg['Email_Recovery'] = false; # SMTP server configuration, use this to send emails $cfg['SMTP_Host'] = '127.0.0.1'; $cfg['SMTP_Port'] = 25; $cfg['SMTP_Auth'] = false; $cfg['SMTP_User'] = '[email protected]'; $cfg['SMTP_Password'] = 'user'; $cfg['SMTP_From'] = '[email protected]'; /* # Example configuration for gmail # Don't forget to enable extension=php_openssl.dll in php.ini $cfg['SMTP_Host'] = 'ssl://smtp.gmail.com'; $cfg['SMTP_Port'] = 465; $cfg['SMTP_Auth'] = true; $cfg['SMTP_User'] = '[email protected]'; $cfg['SMTP_Password'] = 'user'; $cfg['SMTP_From'] = '[email protected]'; */ # Whether to show skills in character search $cfg['show_skills'] = true; # Whether to show deathlist in character search $cfg['show_deathlist'] = true; $cfg['skill_names'] = array('fist', 'club', 'sword', 'axe', 'distance', 'shielding', 'fishing'); # Banned names $cfg['invalid_names'] = array('^gm','^god','admin','fuck','gamemaster', 'owner'); # Accounts that are allowed to access admin panel # Example: array('account1', 'account2'); $cfg['admin_accounts'] = array(); # Listed IPs always allowed to access admin panel, no matter if it has account or not $cfg['admin_ip'] = array('127.0.0.1'); # Player can only delete himself after specified inactivitiy time (seconds) $cfg['player_delete_interval'] = 24*3600; # Minimum level to create own guild. Cannot be lower than $cfg['guild_level'] $cfg['guild_leader_level'] = 20; # Please disable guild manager if your server features guild editing $cfg['guild_manager_enabled'] = true; # Online status update interval (seconds). Should match statustimeout in your otserv configuration $cfg['status_update_interval'] = 5*60; # Shows more informatin when exception occurs. WARNING! Can reveal sensitive information. $cfg['debug_backtrace'] = true; # Schema control override. Disables/enables compatibility check for OTServ schema version. $cfg['schema_check'] = false; /* * This will affect date displaying * Look http://www.google.com/search?q=php+timezones for supported timezones. */ $cfg['timezone'] = 'UTC'; ################################################## # Town Config # ################################################## /* NOTICE Town IDs must be correct and match those in your map */ # Town names $cfg['temple'][1]['name'] = 'Devland'; $cfg['temple'][2]['name'] = 'Forgotten'; $cfg['temple'][3]['name'] = 'Evolutions'; $cfg['temple'][4]['name'] = 'Thais'; $cfg['temple'][5]['name'] = 'Ab\'Dendriel'; $cfg['temple'][6]['name'] = 'Kazordoon'; $cfg['temple'][7]['name'] = 'Something else?'; $cfg['temple'][8]['name'] = 'Darashia'; $cfg['temple'][9]['name'] = 'Port Hope'; $cfg['temple'][10]['name'] = 'Liberty Bay'; # Now set which town(s) you want to use in character making $cfg['temple'][1]['x'] = 410; $cfg['temple'][1]['y'] = 573; $cfg['temple'][1]['z'] = 7; $cfg['temple'][1]['enabled'] = true; $cfg['temple'][2]['x'] = 50; $cfg['temple'][2]['y'] = 50; $cfg['temple'][2]['z'] = 7; $cfg['temple'][2]['enabled'] = false; $cfg['temple'][3]['x'] = 1000; $cfg['temple'][3]['y'] = 1000; $cfg['temple'][3]['z'] = 7; $cfg['temple'][3]['enabled'] = true; ################################################## # Vocation Config # ################################################## /* Notice: It's only one item per slot. You need to script special onLogin event in OTServ to add more items to new players. Look http://otfans.net/ for more information. */ ################# No Vocation #################### $id = 0; $cfg['vocations'][$id]['name'] = 'No Vocation'; $cfg['vocations'][$id]['level'] = 1; $cfg['vocations'][$id]['group'] = 1; $cfg['vocations'][$id]['maglevel'] = 0; $cfg['vocations'][$id]['health'] = 150; $cfg['vocations'][$id]['mana'] = 0; $cfg['vocations'][$id]['cap'] = 400; $cfg['vocations'][$id]['enabled'] = false; $cfg['vocations'][$id]['look'][0] = 138; $cfg['vocations'][$id]['look'][1] = 130; $cfg['vocations'][$id]['skills'][0] = 1; $cfg['vocations'][$id]['skills'][1] = 1; $cfg['vocations'][$id]['skills'][2] = 1; $cfg['vocations'][$id]['skills'][3] = 1; $cfg['vocations'][$id]['skills'][4] = 1; $cfg['vocations'][$id]['skills'][5] = 1; $cfg['vocations'][$id]['skills'][6] = 1; $cfg['vocations'][$id]['equipment'][3] = 3939; $cfg['vocations'][$id]['equipment'][4] = 2650; $cfg['vocations'][$id]['equipment'][5] = 2382; $cfg['vocations'][$id]['equipment'][10] = 2050; ################# Sorcerer ####################### $id = 1; $cfg['vocations'][$id]['name'] = 'Sorcerer'; $cfg['vocations'][$id]['level'] = 8; $cfg['vocations'][$id]['group'] = 1; $cfg['vocations'][$id]['maglevel'] = 0; $cfg['vocations'][$id]['health'] = 185; $cfg['vocations'][$id]['mana'] = 35; $cfg['vocations'][$id]['cap'] = 470; $cfg['vocations'][$id]['enabled'] = true; $cfg['vocations'][$id]['look'][0] = 138; $cfg['vocations'][$id]['look'][1] = 130; $cfg['vocations'][$id]['skills'][0] = 10; $cfg['vocations'][$id]['skills'][1] = 10; $cfg['vocations'][$id]['skills'][2] = 10; $cfg['vocations'][$id]['skills'][3] = 10; $cfg['vocations'][$id]['skills'][4] = 10; $cfg['vocations'][$id]['skills'][5] = 10; $cfg['vocations'][$id]['skills'][6] = 10; $cfg['vocations'][$id]['equipment'][1] = 2480; $cfg['vocations'][$id]['equipment'][2] = 2172; $cfg['vocations'][$id]['equipment'][3] = 2000; $cfg['vocations'][$id]['equipment'][4] = 2464; $cfg['vocations'][$id]['equipment'][6] = 2530; $cfg['vocations'][$id]['equipment'][7] = 2468; $cfg['vocations'][$id]['equipment'][8] = 2643; ################# Druid ########################## $id = 2; $cfg['vocations'][$id]['name'] = 'Druid'; $cfg['vocations'][$id]['level'] = 8; $cfg['vocations'][$id]['group'] = 1; $cfg['vocations'][$id]['maglevel'] = 0; $cfg['vocations'][$id]['health'] = 185; $cfg['vocations'][$id]['mana'] = 35; $cfg['vocations'][$id]['cap'] = 470; $cfg['vocations'][$id]['enabled'] = true; $cfg['vocations'][$id]['look'][0] = 138; $cfg['vocations'][$id]['look'][1] = 130; $cfg['vocations'][$id]['skills'][0] = 10; $cfg['vocations'][$id]['skills'][1] = 10; $cfg['vocations'][$id]['skills'][2] = 10; $cfg['vocations'][$id]['skills'][3] = 10; $cfg['vocations'][$id]['skills'][4] = 10; $cfg['vocations'][$id]['skills'][5] = 10; $cfg['vocations'][$id]['skills'][6] = 10; $cfg['vocations'][$id]['equipment'][1] = 2480; $cfg['vocations'][$id]['equipment'][2] = 2172; $cfg['vocations'][$id]['equipment'][3] = 2000; $cfg['vocations'][$id]['equipment'][4] = 2464; $cfg['vocations'][$id]['equipment'][6] = 2530; $cfg['vocations'][$id]['equipment'][7] = 2468; $cfg['vocations'][$id]['equipment'][8] = 2643; ################# Paladin ####################### $id = 3; $cfg['vocations'][$id]['name'] = 'Paladin'; $cfg['vocations'][$id]['level'] = 8; $cfg['vocations'][$id]['group'] = 1; $cfg['vocations'][$id]['maglevel'] = 0; $cfg['vocations'][$id]['health'] = 185; $cfg['vocations'][$id]['mana'] = 35; $cfg['vocations'][$id]['cap'] = 470; $cfg['vocations'][$id]['enabled'] = true; $cfg['vocations'][$id]['look'][0] = 137; $cfg['vocations'][$id]['look'][1] = 129; $cfg['vocations'][$id]['skills'][0] = 10; $cfg['vocations'][$id]['skills'][1] = 10; $cfg['vocations'][$id]['skills'][2] = 10; $cfg['vocations'][$id]['skills'][3] = 10; $cfg['vocations'][$id]['skills'][4] = 10; $cfg['vocations'][$id]['skills'][5] = 10; $cfg['vocations'][$id]['skills'][6] = 10; $cfg['vocations'][$id]['equipment'][1] = 2480; $cfg['vocations'][$id]['equipment'][2] = 2172; $cfg['vocations'][$id]['equipment'][3] = 2000; $cfg['vocations'][$id]['equipment'][4] = 2464; $cfg['vocations'][$id]['equipment'][6] = 2530; $cfg['vocations'][$id]['equipment'][7] = 2468; $cfg['vocations'][$id]['equipment'][8] = 2643; ################# Knight ######################### $id = 4; $cfg['vocations'][$id]['name'] = 'Knight'; $cfg['vocations'][$id]['level'] = 8; $cfg['vocations'][$id]['group'] = 1; $cfg['vocations'][$id]['maglevel'] = 0; $cfg['vocations'][$id]['health'] = 185; $cfg['vocations'][$id]['mana'] = 35; $cfg['vocations'][$id]['cap'] = 470; $cfg['vocations'][$id]['enabled'] = true; $cfg['vocations'][$id]['look'][0] = 139; $cfg['vocations'][$id]['look'][1] = 131; $cfg['vocations'][$id]['skills'][0] = 10; $cfg['vocations'][$id]['skills'][1] = 10; $cfg['vocations'][$id]['skills'][2] = 10; $cfg['vocations'][$id]['skills'][3] = 10; $cfg['vocations'][$id]['skills'][4] = 10; $cfg['vocations'][$id]['skills'][5] = 10; $cfg['vocations'][$id]['skills'][6] = 10; $cfg['vocations'][$id]['equipment'][1] = 2480; $cfg['vocations'][$id]['equipment'][2] = 2172; $cfg['vocations'][$id]['equipment'][3] = 2000; $cfg['vocations'][$id]['equipment'][4] = 2464; $cfg['vocations'][$id]['equipment'][6] = 2530; $cfg['vocations'][$id]['equipment'][7] = 2468; $cfg['vocations'][$id]['equipment'][8] = 2643; ################# Other IDs ###################### $cfg['vocations'][5]['name'] = 'Master Sorcerer'; $cfg['vocations'][6]['name'] = 'Elder Druid'; $cfg['vocations'][7]['name'] = 'Royal Paladin'; $cfg['vocations'][8]['name'] = 'Elite Knight'; ?>
  11. não achei nada com esse nome. ajuda pf? uso dedicado, o navegador é firefox
  12. fica no phpmyadmin? ou na pasta hdocs
  13. Opa galera, olhem to com site, de Tibia, so que o server é Nto, eu queria saber como eu tirar as vocações, sorcerer druid paladin é kinight, e por naruto,sasuke,sakura é talz? Print: @UP
  14. VLW FUNFO ! RETIREI A LINHA E FOI
  15. é pra mim remover? conifgura pra mim? é que n itendo mt pf? aki a script : <?php /* Copyright (C) 2007 - 2009 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ class Account { private $attrs, $sql, $guilds, $players; public function __construct() { $this->sql = AAC::$SQL; } public function find($name) { if (empty($name)) throw new AccountNotFoundException(); $acc = $this->sql->myRetrieve('accounts', array('name' => $name)); if ($acc === false) throw new AccountNotFoundException(); $this->load($acc['id']); return true; } public function load_guilds() { if(empty($this->attrs['accno'])) throw new AccountNotLoadedException(); $this->sql->myQuery('SELECT guilds.id, guilds.name FROM guilds, accounts, players WHERE players.id = guilds.owner_id AND players.account_id = accounts.id AND accounts.id = '.$this->sql->quote($this->attrs['accno'])); while ($a = $this->sql->fetch_array()) { $this->guilds[] = array('id' => $a['id'], 'name' => $a['name']); } return true; } public function load_players() { if(empty($this->attrs['accno'])) throw new AccountNotLoadedException(); $this->sql->myQuery('SELECT players.id, players.name FROM players WHERE (`account_id`='.$this->sql->quote($this->attrs['accno']).')'); while ($a = $this->sql->fetch_array()) { $this->players[] = array('name' => $a['name'], 'id' => $a['id']); } return true; } public function load($id) { if (!is_numeric($id)) throw new AccountNotFoundException(); //load attributes from database $acc = $this->sql->myRetrieve('accounts', array('id' => $id)); $nicaw_acc = $this->sql->myRetrieve('nicaw_accounts', array('account_id' => $id)); if ($acc === false) throw new AccountNotFoundException(); //arranging attributes, ones on the left will be used all over the aac $this->attrs['accno'] = (int) $acc['id']; $this->attrs['blocked'] = (bool) $acc['blocked']; $this->attrs['name'] = (string) $acc['name']; $this->attrs['password'] = (string) $acc['password']; $this->attrs['email'] = (string) $acc['email']; $this->attrs['rlname'] = $nicaw_acc['rlname']; $this->attrs['location'] = $nicaw_acc['location']; $this->attrs['comment'] = $nicaw_acc['comment']; $this->attrs['recovery_key'] = $nicaw_acc['recovery_key']; $this->attrs['reveal_characters'] = (bool) $nicaw_acc['reveal_characters']; if (isset($acc['premdays']) && $acc['premdays'] > 0) $this->attrs['premend'] = $acc['premdays']*24*3600 + time(); elseif (isset($acc['premend']) && $acc['premend'] > 0) $this->attrs['premend'] = $acc['premend']; return true; } public function save() { $acc['id'] = $this->attrs['accno']; $acc['name'] = $this->attrs['name']; $acc['password'] = $this->attrs['password']; $acc['email'] = $this->attrs['email']; $this->sql->myUpdate('accounts',$acc, array('id' => $this->attrs['accno'])); $nicaw_acc['account_id'] = $this->attrs['accno']; $nicaw_acc['rlname'] = $this->attrs['rlname']; $nicaw_acc['location'] = $this->attrs['location']; $nicaw_acc['comment'] = $this->attrs['comment']; $nicaw_acc['recovery_key'] = $this->attrs['recovery_key']; $nicaw_acc['reveal_characters'] = $this->attrs['reveal_characters']; $this->sql->myReplace('nicaw_accounts',$nicaw_acc); return true; } public function hasPlayer($pid) { $players = $this->__get('players'); foreach($players as $p) { if ($p['id'] == $pid) { return true; } } return false; } static public function Create($name, $password, $email, $rlname = '', $location = '') { $SQL = AAC::$SQL; unset($d); $d['name'] = $name; $d['password'] = Account::encodePassword($password); $d['email'] = $email; $SQL->myInsert('accounts',$d); $aid = $SQL->insert_id(); unset($d); $d['account_id'] = $aid; $d['rlname'] = $rlname; $d['location'] = $location; $SQL->myInsert('nicaw_accounts',$d); $account = new Account(); $account->load($aid); return $account; } public function __get($attr) { if(empty($this->attrs['accno'])) throw new ClassException('Attempt to get attribute of account that is not loaded.'); if($attr == 'attrs') { return $this->attrs; }elseif($attr == 'guilds') { if(empty($this->guilds)) $this->load_guilds(); return $this->guilds; }elseif($attr == 'players') { if(empty($this->players)) $this->load_players(); return $this->players; }else { throw new ClassException('Undefined property: '.$attr); } } public function setAttr($attr,$value) { $this->attrs[$attr] = $value; } public function setPassword($pass) { if(empty($pass)) return false; $this->attrs['password'] = Account::encodePassword($pass); return true; } static private function encodePassword($pass) {global $cfg; $pass = $pass.$cfg['password_salt']; if ($cfg['password_type'] == 'md5') $pass = md5($pass); elseif ($cfg['password_type'] == 'sha1') $pass = sha1($pass); return $pass; } public function checkPassword($pass) {global $cfg; $pass = $pass.$cfg['password_salt']; if ($cfg['password_type'] == 'md5') { $pass = md5($pass); }elseif ($cfg['password_type'] == 'sha1') { $pass = sha1($pass); }elseif ($cfg['password_type'] == 'plain') { }else throw new ClassException('Unknow password encoding $cfg[\'password_type\'].'); return $this->attrs['password'] == (string)$pass && !empty($pass); } static public function existsName($name) { try { AAC::$SQL->myQuery('SELECT * FROM `accounts` WHERE `name` = '.AAC::$SQL->quote($name)); } catch(DatabaseQueryException $e) { throw new DatabaseException('Account::existsName() failed. If your server doesn\'t support account names pelase use AAC release v3.20'); } if (AAC::$SQL->num_rows() > 0) return true; return false; } public function logAction($action) { $this->sql->myQuery('INSERT INTO `nicaw_account_logs` (id, ip, account_id, date, action) VALUES(NULL, INET_ATON('.$this->sql->quote($_SERVER['REMOTE_ADDR']).'), '.$this->sql->quote($this->attrs['accno']).', UNIX_TIMESTAMP(NOW()), '.$this->sql->quote($action).')'); } public function removeRecoveryKey() { $this->attrs['recovery_key'] = NULL; } public function addRecoveryKey() { $this->attrs['recovery_key'] = substr(str_shuffle(md5(mt_rand()).md5(time())), 0, 32); $this->logAction('Recovery key added'); return $this->attrs['recovery_key']; } public function checkRecoveryKey($key) { return $this->attrs['recovery_key'] === $key && !empty($key); } public function vote($option) { $this->sql->myQuery('INSERT INTO `nicaw_poll_votes` (option_id, ip, account_id) VALUES('.$this->sql->quote($option).', INET_ATON('.$this->sql->quote($_SERVER['REMOTE_ADDR']).'), '.$this->sql->quote($this->attrs['accno']).')'); } public function getMaxLevel() { $this->sql->myQuery('SELECT MAX(level) AS maxlevel FROM `players` WHERE `account_id` = '.$this->sql->quote($this->attrs['accno'])); $row = $this->sql->fetch_array(); return (int) $row['maxlevel']; } public function canVote($option) { $query = 'SELECT nicaw_polls.id FROM nicaw_polls, nicaw_poll_options WHERE nicaw_polls.id = nicaw_poll_options.poll_id AND nicaw_poll_options.id = '.$this->sql->quote($option).' AND '.$this->sql->quote($this->getMaxLevel()).' > minlevel AND nicaw_polls.startdate < UNIX_TIMESTAMP(NOW()) AND nicaw_polls.enddate > UNIX_TIMESTAMP(NOW())'; $this->sql->myQuery($query); if ($this->sql->num_rows() == 0) return false; if ($this->sql->num_rows() > 1) throw new DatabaseException('Unexpected SQL answer.'); $a = $this->sql->fetch_array(); $poll_id = $a['id']; $query = 'SELECT * FROM nicaw_poll_votes, nicaw_poll_options WHERE nicaw_poll_options.poll_id = '.$this->sql->quote($poll_id).' AND nicaw_poll_options.id = nicaw_poll_votes.option_id AND (account_id = '.$this->sql->quote($this->attrs['accno']).' OR ip = INET_ATON('.$this->sql->quote($_SERVER['REMOTE_ADDR']).') )'; $this->sql->myQuery($query); if ($this->sql->num_rows() == 0) return true; elseif ($this->sql->num_rows() == 1) return false; else throw new DatabaseException('Unexpected SQL answer.'); } } ?>
  16. Hadggar postou uma resposta no tópico em Websites
    Alguem pode me ajudar como criar site de narutibia? ja tenho tudo pronto, so falta a pasta htdocs, com os arquivos certo, tipo ta tudo pronto so falta uma gesior, sl que funciona tipo o player click em criar acc é la aparece as vocações naruto,sasuke talz. alguem ajuda pf rep+
  17. infelizmente so esse que funfo, testei todos, sempre dava um erro diferente, se você achar um que e compativel com o NARUTO ROBINHOOD 8.54 PODE DESPONIBILIZAR @UP @UP @UP
  18. OPa galera blz? abri um server a poco tempo, preucurei ,preucure nem um site funcionava, ai fui é achei esse http://www.tibiaking.com/forum/topic/7642-nicaw-acc-0707/ so que quando o player cria conta normal aparece, esse erro: Fatal error: Uncaught exception 'DatabaseQueryException' Message: Error #1054:Unknown column 'guilds.owner_id' in 'where clause' SQL query: SELECT guilds.id, guilds.name FROM guilds, accounts, players WHERE players.id = guilds.owner_id AND players.account_id = accounts.id AND accounts.id = 2 File: sql.php on line: 94 Script was terminated because something unexpected happened. You can report this, if you think it's a bug. Debug Backtrace: Array ( [0] => Array ( [function] => ExceptionHandler [class] => AAC [type] => :: [args] => Array ( [0] => DatabaseQueryException Object ( [query_str:DatabaseQueryException:private] => SELECT guilds.id, guilds.name FROM guilds, accounts, players WHERE players.id = guilds.owner_id AND players.account_id = accounts.id AND accounts.id = 2 [help_id:aacException:private] => [message:protected] => Error #1054:Unknown column 'guilds.owner_id' in 'where clause' [string:Exception:private] => [code:protected] => 0 [file:protected] => C:\xammp\xampp\htdocs\class\sql.php [line:protected] => 94 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\xammp\xampp\htdocs\class\account.php [line] => 36 [function] => myQuery [class] => SQL [type] => -> [args] => Array ( [0] => SELECT guilds.id, guilds.name FROM guilds, accounts, players WHERE players.id = guilds.owner_id AND players.account_id = accounts.id AND accounts.id = 2 ) ) [1] => Array ( [file] => C:\xammp\xampp\htdocs\class\account.php [line] => 133 [function] => load_guilds [class] => Account [type] => -> [args] => Array ( ) ) [2] => Array ( [file] => C:\xammp\xampp\htdocs\account.php [line] => 61 [function] => __get [class] => Account [type] => -> [args] => Array ( [0] => guilds ) ) ) [previous:Exception:private] => ) ) ) ) Ajuda pf? rep+ @UP @UP @UP
  19. Ta ai -Servidor 1.8 : http://www.mediafire...sf8yrlmxo4qxak7 -Client Descompilado : http://www.mediafire...tddq5l6cvg5dd1a -Sources [by: Fireelement][Editado por Christian letti para funfar em ubuntu 12.0] + Site ModernAcc : http://www.4shared.c...ce_NTO_Sh.html?
  20. meu server é 8.54, se esse gesior sl tiver errado alguem me passa um certo? eo Gesior de 2012, tf 1.0, é tibia 8.54 @UP @UP @UP
  21. mas no phpmyadmin ta assim, forgottenserver o nome da databse
  22. Estou usano xamp 1.7.3 aki é como configuro o ,lua corretamente? Como assim , a minha versao do server é 1.0 eo Narutibia RobinHood, não itendi, eu peguei o gesior tfs 1.0, como tava mandanod, é ta dando erro, me ajuda pf?
  23. na tag. ta guarda.lua tmb neh?

Informação Importante

Confirmação de Termo