Ir para conteúdo

iesuesukobaru

Membro
  • Registro em

  • Última visita

Tudo que iesuesukobaru postou

  1. ¿Cuál es la razón de este tema? Error de IP en Gesior install.txt ¿Tienes el código disponible? Si lo has publicado aquí: ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí. install.php install.txt
  2. no me muestra la tienda para su modificacion
  3. Que servidor UAL o sitio web utiliza como una base? es personal modificado por mi mismo pero es base Pokemon HuatsonOT (DXP) ¿Cuál es la razón de este tema? problemas al querer eliminar los cuadros vacios en el programa Object Builder ¿Está surgiendo un error? Si es así ponlo aquí. ¿Tienes el código disponible? Si lo has publicado aquí: ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí.
  4. descargó esta plantilla de ModernAAC OtPokemon creada por Brunds " [Modern ACC] Template OtPokemon By: Brunds By Brunds " agrega todo lo normal, debe agregar algunas modificaciones para que ejecute algunas cosas pero encuentro un error en la creación de caracteres. Se encontró un error de PHP Gravedad: aviso Mensaje: Índice indefinido: 1 Nombre de archivo: controllers / character.php Número de línea: 133 Un error fue encontrado ¡No se pudo encontrar el carácter de muestra! el archivo modificado es este. <div class='errors'> <?php echo error(validation_errors()); ?> </div> <?php include("public/js/keyboard.php"); global $config; ?> <script> function createCharacter() { $('.loader').show(); var form = $('#createCharacter').serialize(); $.ajax({ url: '<?php echo WEBSITE; ?>/index.php/character/create_character/1', type: 'post', data: form, success: function(data) { $('.errors').html(data); $('.loader').hide(); } }); } </script> <link rel="stylesheet" type="text/css" href="<?php echo WEBSITE; ?>/public/css/keyboard.css"> <div class='message'> <div class='title'>Conta</div> <div class='content'> <?php echo form_open('character/create_character', array('id'=>'createCharacter')); ?> <fieldset> <legend>Personagem</legend> <div class="table"> <ul style="width:30%"> <li class="even"> <label for="character_name">Nome</label> </li> <li class="odd"> <label for="sex">Sexo</label> </li> <li class="even"> <label for="vocation">Vocation</label> </li> <li class="odd"> <label for="city">Cidade</label> </li> <li class="even"> <label for="world">Serivor</label> </li> </ul> <ul style="width:70%"> <li class="even"> <input type='text' value="<?php echo set_value('name'); ?>" name='name'> </li> <li class="odd"> <input name="sex" type="radio" id="sex" value="1" checked="checked" /> male &nbsp; <input type="radio" id="sex" name="sex" value="0" /> female </li> <li class="even"> <select name="vocation" class="keyboardInput" id="vocation"> <option value="1">Treinador</option> <option disabled="disabled">Treinador de Elite</option> </select> </li> <li class="odd"> <select name="city" id="city"> <?php foreach($config['cities'] as $city => $name) echo '<option value="'.$city.'">'.$name.'</option>'; ?> </select> </li> <li class="even"> <?php if(sizeof($config['worlds']) > 1) { ?> <select name="world" id="world"> <?php foreach($config['worlds'] as $world => $name) echo '<option value="'.$world.'">'.$name.'</option>'; ?> </select> <?php }else{ ?> <input type="hidden" name="world" value="0" /> <?php echo $config['worlds'][0]; ?> <?php } ?> </li> </ul> </div> </fieldset> <br/> <label>&nbsp;</label> <input class='sub' type="submit" value="Registrar"/> <?php echo loader(); ?> </form> </div> </div>
  5. .data / talkactions / talkaction.xml 'y pegue este texto en el código XML: < palabras de talkaction = "! bank" separator = "" script = "bank.lua" /> Cree el archivo "bank.lua" en "data / talkactions / scripts" y pegue este código en este archivo function Player.deposit(self, amount) if not self:removeMoney(amount) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You dont have money with you.") return false end self:setBankBalance(self:getBankBalance() + amount) return true end function Player.withdraw(self, amount) local balance = self:getBankBalance() if amount > balance or not self:addMoney(amount) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You dont have money in your bank account.") return false end self:setBankBalance(balance - amount) return true end function Player.depositMoney(self, amount) if not self:removeMoney(amount) then return false end self:setBankBalance(self:getBankBalance() + amount) return true end function onSay(player, words, param) local split = param:split(",") local balance = player:getBankBalance() if split[1] == nil then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: the commands are:\n !bank balance.\n !bank deposit, XXXX.\n!bank depositall.\n!bank transfer, amount, toPlayer.") return end --------------------------- Balance --------------------------- if split[1] == 'balance' then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: Your account balance is " .. balance .. ".") --------------------------- Deposit --------------------------- elseif split[1] == 'deposit' then local amount = tonumber(split[2]) if not amount then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You need to put the amount of money to add.") return false end local amount = math.abs(amount) if amount > 0 and amount <= player:getMoney() then player:deposit(amount) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You added " .. amount .. " to your account, You can withdraw your money anytime you want to.\nYour account balance is " .. player:getBankBalance() .. ".") else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You do not have enough money to deposit.") end --------------------------- Depositall --------------------------- elseif split[1] == 'depositall' then local amount = player:getMoney() local amount = math.abs(amount) if amount > 0 and amount == player:getMoney() then player:deposit(amount) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You added " .. amount .. " to your account, You can withdraw your money anytime you want to.\nYour account balance is " .. player:getBankBalance() .. ".") else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You do not have enough money to deposit.") end --------------------------- Withdraw --------------------------- elseif split[1] == 'withdraw' then local amount = tonumber(split[2]) if not amount then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You need to put the amount of money to withdraw.") return false end local amount = math.abs(amount) if amount > 0 and amount <= player:getBankBalance() then player:withdraw(amount) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: Here you are " .. amount .. " of your account, You can deposit your money anytime you want.\nYour account balance is " .. player:getBankBalance() .. ".") else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You do not have enough money on your bank account.") end --------------------------- Withdrawall --------------------------- elseif split[1] == 'withdrawall' then local amount = player:getBankBalance() local amount = math.abs(amount) if amount > 0 and amount <= player:getBankBalance() then player:withdraw(amount) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: Here you are all your money on your account, You can deposit your money anytime you want.\nYour account balance is " .. player:getBankBalance() .. ".") else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You do not have enough money on your bank account.") end --------------------------- Transfer --------------------------- elseif split[1] == 'transfer' then local data = param local s = data:split(", ") if s[2] == nil then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You need to put the amount of money") return false else if not tonumber(s[2]) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You need to put the amount in numbers only.") return end end if s[3] == nil then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You need to put the player name") return false end local a = tonumber(s[2]) local amount = math.abs(a) local getPlayer = Player(s[3]) if getPlayer then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You seccesfully transferred " .. s[2] .. "\n to " .. s[3] .. " bank account.") player:transferMoneyTo(s[3], amount) else if not playerExists(s[3]) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: A player with name: " .. s[3] .. " does not exists.") return false end if playerExists(s[3]) and player:transferMoneyTo(s[3], amount) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: You seccesfully transferred " .. s[2] .. "\n to " .. s[3] .. " bank account.") end end else player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "[BankSystem]: Invalid param.") end return false end Al correr el archivo en un servidor de pokemon produce un error: [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/bank.lua:3: function arguments expected near 'ï' [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/bank.lua) data/talkactions/scripts/bank.lua:3: function arguments expected near 'ï' Agradeceria saber cual es el error es para tener sistema de bank en un servidor de pokemon
  6. Resuelto se habia borrado una de las carpte de data. que se encuentra vacia pero el servidor no puede correr sin ella se llama carpeta weapons. (Solucionado)
  7. ¿ Que servidor utiliza como Unabase? Pokémon HuatsonOT (DXP) ¿Cuál es la razón de este tema? servidor si carga y toma de tierra. ¿Se acerca un error? Si eso es donde está. ¿Tienes el código disponible? Si ha sido publicado aquí: ¿Tienes alguna idea de que puedes ayudar con el problema? Si es así, ponlo aquí.
  8. . Q servidor UAL o sitio web utiliza como una base? Servidor Pokemon HuatsonOT (DXP) ¿Cuál es la razón de este tema? Error no aparece lo que especifica el lua y quiero agregar cambio de nombre y agregar mas dias para la venta ¿Está surgiendo un error? Si es así ponlo aquí. ¿Tienes el código disponible? Si lo has publicado aquí: local market = { [0] = {emeralds = 25}, [1] = {emeralds = 10, vipdays = 30}, [2] = {emeralds = 28, vipdays = 90}, [3] = {emeralds = 45, vipdays = 180}, [3] = {emeralds = 100, vipdays = 360}, [4] = {emeralds = 15, pokemon = "Ditto"}, [4] = {emeralds = 350, pokemon = "ShinyDitto"}, [5] = {emeralds = 2, blessings = 2}, [6] = {emeralds = 5, blessings = 5}, [7] = {emeralds = 5}, } local OPCODE_EMERALD_SHOP = opcodes.OPCODE_EMERALD_SHOP function onExtendedOpcode(cid, opcode, buffer) local t = string.explode(buffer, "|") if opcode == OPCODE_EMERALD_SHOP then if t[1] == "Market" then if tonumber(t[2]) >= 1 and tonumber(t[2]) <= 3 then doPlayerAddPremiumDays(cid, market[tonumber(t[2])].vipdays) elseif tonumber(t[2]) == 4 then doPlayerAddPoke(cid, market[tonumber(t[2])].pokemon, "poke") elseif tonumber(t[2]) >= 5 and tonumber(t[2]) <= 6 then for blessings = 1, market[tonumber(t[2])].blessings do if getPlayerBlessing(cid, market[tonumber(t[2])].blessings) then return doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "You already have the blessing.") end doPlayerAddBlessing(cid, blessings) end elseif tonumber(t[2]) == 7 then doPlayerSetSex(cid, (getPlayerSex(cid) == 0 and 1 or 0)) end end return doPlayerRemoveItem(cid, 2145, market[tonumber(t[2])].emeralds) and doSendPlayerExtendedOpcode(cid, OPCODE_EMERALD_SHOP, "True") end end ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí.
  9. Error:Unknown CityUnknown Vocation
  10. gracias perdone no sabia donde iva
  11. Solucionado. puertos estaban cerrados cambiando las opciones en xampp y modificando las ips. Como Solucionar Problema de Puertos Bloqueados en XAMPP
  12. no salen los ataques, tampoco se ve el colwdown cuando se usa solo atacan con el basico los pokemones. pokemon moves.lua
  13. Solucion al archivo de goback.lua (Solucionado por mi mismo) goback.lua
  14. . Q servidor UAL o sitio web utiliza como una base? Servidor Pokemon HuatsonOT (DXP) ¿Cuál es la razón de este tema? Problemas con el cliente no entrar mas pcs a mi servidor ¿Está surgiendo un error? Si es así ponlo aquí. ¿Tienes el código disponible? Si lo has publicado aquí: ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí.
  15. . Q servidor UAL o sitio web utiliza como una base? Pokemon HuatsonOT (DXP) ¿Cuál es la razón de este tema? Error en archivo goback.lua ¿Está surgiendo un error? Si es así ponlo aquí. ¿Tienes el código disponible? Si lo has publicado aquí: local EFFECTS = { --[OutfitID] = {Effect} ["Magmar"] = 35, ["Shiny Magmar"] = 35, ["Shiny Magmortar"] = 35, ["Shiny Electivire"] = 48, ["Magmortar"] = 35, ["Electivire"] = 48, ["Jynx"] = 17, --alterado v1.5 ["Shiny Jynx"] = 17, ["Piloswine"] = 205, --alterado v1.8 ["Swinub"] = 205, } function onUse(cid, item, frompos, item2, topos) if exhaustion.get(cid, 6666) and exhaustion.get(cid, 6666) > 0 then return true end if isRiderOrFlyOrSurf(cid) then return true end if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 then --alterado v1.9 << doPlayerSendCancel(cid, "You cant use ur poke while riding") return true end local ballName = getItemAttribute(item.uid, "poke") local btype = getPokeballType(item.itemid) local usando = pokeballs[btype].use local effect = pokeballs[btype].effect if not effect then effect = 21 end unLock(item.uid) --alterado v1.8 if item.itemid == usando and #getCreatureSummons(cid) > 0 then local summon = getCreatureSummons(cid)[1] if getPlayerStorageValue(summon, 9658783) == 1 and isInArray({"Aggron", "Sudowoodo", "Mega Aggron"}, getCreatureName(summon)) then doKillWildPoke(getCreatureSummons(cid)[1], getCreatureSummons(cid)[1]) doPlayerSendCancel(cid, "This pokemon is fainted.") if isInDuel(cid) then doRemoveCountPokemon(cid) end return true end if getPlayerStorageValue(cid, 990) == 1 then -- GYM doPlayerSendCancel(cid, "You can't return your pokemon during gym battles.") return true end if #getCreatureSummons(cid) > 1 and getPlayerStorageValue(cid, 212124) <= 0 then --alterado v1.6 if getPlayerStorageValue(cid, 637501) == -2 or getPlayerStorageValue(cid, 637501) >= 1 then BackTeam(cid) end end if #getCreatureSummons(cid) == 2 and getPlayerStorageValue(cid, 212124) >= 1 then doPlayerSendCancel(cid, "You can't do that while is controling a mind") return true --alterado v1.5 end if #getCreatureSummons(cid) <= 0 then if isInArray(pokeballs[btype].all, item.itemid) then doTransformItem(item.uid, pokeballs[btype].off) doItemSetAttribute(item.uid, "hp", 0) doPlayerSendCancel(cid, "This pokemon is fainted.") return true end end local cd = getCD(item.uid, "blink", 30) if cd > 0 then setCD(item.uid, "blink", 0) end local z = getCreatureSummons(cid)[1] if getCreatureCondition(z, CONDITION_INVISIBLE) and not isGhostPokemon(z) then return true end if isInDuel(cid) then doRemoveCountPokemon(cid) end checkGiveUp(cid) doReturnPokemon(cid, z, item, effect) doPlayerSendCancel(cid, '12//,hide') --alterado v1.7 doSendPlayerExtendedOpcode(cid, opcodes.OPCODE_DITTO_MEMORY, "sair") -- ditto memory system elseif item.itemid == pokeballs[btype].on then if #getCreatureSummons(cid) >= 1 then doPlayerSendCancel(cid, "You can't do that.") BackTeam(cid) return true --alterado v1.5 end if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "You must put your pokeball in the correct place!") return TRUE end -- rever a seguranca do pokemon ser sumanado com 0 de hp local pokemon = getItemAttribute(item.uid, "poke") if not pokes[pokemon] then return true end ----------------------- Sistema de nao poder carregar mais que 3 pokes lvl baixo e + q 1 poke de lvl medio/alto --------------------------------- if not isInArray({5, 6}, getPlayerGroupId(cid)) then local balls = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid) local low = {} local lowPokes = {"Rattata", "Caterpie", "Weedle", "Oddish", "Pidgey", "Paras", "Poliwag", "Bellsprout", "Magikarp", "Hoppip", "Sunkern"} if #balls >= 1 then for _, uid in ipairs(balls) do local nome = getItemAttribute(uid, "poke") if not isInArray(lowPokes, pokemon) and nome == pokemon and not isGod(cid) then return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry two pokemons equals!") else if nome == pokemon then table.insert(low, nome) end end end end if #low >= 3 then return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry more than three pokemons equals of low level!") end end --------------------------------------------------------------------------------------------------------------------------------------------------- local x = pokes[pokemon] local boost = getItemAttribute(item.uid, "boost") or 0 local levelpoke = getItemAttribute(item.uid, "level")*2 if getPlayerLevel(cid) < 220 and (levelpoke >=160 and levelpoke <=178) then doPlayerSendCancel(cid, "You need level (220) to use this pokemon.") return true end if getPlayerLevel(cid) < 250 and (levelpoke >=180) then doPlayerSendCancel(cid, "You need level (250) to use this pokemon.") return true end if getPlayerLevel(cid) < levelpoke then doPlayerSendCancel(cid, "You need level ("..levelpoke..") to use this pokemon.") return true end if getPlayerLevel(cid) < (x.level+boost) and getPlayerLevel(cid) < levelpoke * 2 then doPlayerSendCancel(cid, "You need higher level to use this pokemon.") return true end ---------------------------- Sistema pokes de clan -------------------------------------- local shinysClan = { ["Shiny Fearow"] = {4, "Wingeon"}, ["Shiny Flareon"] = {1, "Volcanic"}, ["Shiny Vaporeon"] = {2, "Seavel"}, ["Shiny Jolteon"] = {9, "Raibolt"}, ["Shiny Hypno"] = {7, "Psycraft"}, ["Shiny Golem"] = {3, "Orebound"}, ["Shiny Vileplume"] = {8, "Naturia"}, ["Shiny Nidoking"] = {5, "Malefic"}, ["Shiny Hitmontop"] = {6, "Gardestrike"}, --alterado v1.4 } if shinysClan[pokemon] and getPlayerGroupId(cid) < 4 then --alterado v1.9 \/ if getPlayerClanNum(cid) ~= shinysClan[pokemon][1] then doPlayerSendCancel(cid, "You need be a member of the clan "..shinysClan[pokemon][2].." to use this pokemon!") return true elseif getPlayerClanRank(cid) < 3 then doPlayerSendCancel(cid, "You need be atleast rank 3 to use this pokemon!") return true end end -------------------------------------------------------------------------------------- local isNicked, nick, pokemonRealName = false, pokemon, pokemon local pokeSourceCode = "sim" if getItemAttribute(item.uid, "copyName") then -- ditto system pokemon = getItemAttribute(item.uid, "copyName") pokemonRealName = getItemAttribute(item.uid, "poke") end if getItemAttribute(item.uid, "level") then -- level system levelin = getItemAttribute(item.uid, "level") end if getItemAttribute(item.uid, "nick") and getItemAttribute(item.uid, "nick") ~= "" then isNicked = true nick = getItemAttribute(item.uid, "nick") pokeSourceCode = doCreateMonsterNick(cid, pokemon, ""..getItemAttribute(item.uid, "nick").."["..levelin.."]", getThingPos(cid), true) else pokeSourceCode = doCreateMonsterNick(cid, pokemon, ""..retireShinyName(pokemonRealName).."["..levelin.."]", getThingPos(cid), true) -- chama o pokemon com nome verdadeiro, mas se for shiny ja tera seu nome alterado end if pokeSourceCode == "Nao" then doSendMsg(cid, "Não há espaço para seu pokemon.") return true end local pk = getCreatureSummons(cid)[1] setMoveSummon(cid, true) if not isCreature(pk) then return true end ------------------------passiva hitmonchan------------------------------ if isSummon(pk) then --alterado v1.8 \/ if pokemon == "Shiny Hitmonchan" or pokemon == "Hitmonchan" then if not getItemAttribute(item.uid, "hands") then doSetItemAttribute(item.uid, "hands", 0) end local hands = getItemAttribute(item.uid, "hands") doSetCreatureOutfit(pk, {lookType = hitmonchans[pokemon][hands].out}, -1) end end ------------------------------------------------------------------------- ---------movement magmar, jynx------------- if EFFECTS[getCreatureName(pk)] then markPosEff(pk, getThingPos(pk)) sendMovementEffect(pk, EFFECTS[getCreatureName(pk)], getThingPos(pk)) end -------------------------------------------------------------------------- doCreatureSetLookDir(pk, 2) adjustStatus(pk, item.uid, true, true, true) doRegenerateWithY(getCreatureMaster(pk), pk) doCureWithY(getCreatureMaster(pk), pk) doTransformItem(item.uid, pokeballs[btype].use) local mgo = gobackmsgs[math.random(1, #gobackmsgs)].go:gsub("doka", (isNicked and nick or retireShinyName(pokemon))) doCreatureSay(cid, mgo, TALKTYPE_ORANGE_1) doSendMagicEffect(getCreaturePosition(pk), effect) doSendParticleAura(pk, 81) doPlayerSendCancel(cid, '12//,show') doSendPlayerExtendedOpcode(cid, opcodes.OPCODE_BATTLE_POKEMON, tostring(pk)) setPokemonGhost(pk) else doPlayerSendCancel(cid, "This pokemon is fainted.") end -- otclient life doSendLifePokeToOTC(cid) doUpdateMoves(cid) -- otclient life return true end ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí.
  16. Parse error: syntax error, unexpected '?', expecting ')' in D:\Xampp\htdocs\PokeVzla\system\application\models\account_model.php on line 12
  17. Tengo problemas deseo quitar el levels system, quiero agregar system bank de tibia y cuando ando caminando no me permite sacar al pokemon los tengo encima pero no salen de la pokeball?
  18. . Q servidor UAL o sitio web utiliza como una base? Trabajando con base del cliente y servidor Pokemon HuatsonOT. ¿Cuál es la razón de este tema? no logro poder crear ni cerrar la creacion de cuentas, me manda a la pagina index ademas cualquier bottom me manda a la index de xampp ¿Está surgiendo un error? Si es así, ponlo aquí. ¿Tienes el código disponible? Si lo has publicado aquí: <?php class Account_model extends Model { function __construct() { parent::__construct(); $this->load->database(); } function check_login() { require("config.php"); $this->db->select('id, page_access, nickname'); $sql = $this->db->get_where('accounts', array('name' => $_POST['name'], 'password' => sha1($_POST['pass']))); $row = $sql->row_array(); if(!empty($row)) { $_SESSION['account_id'] = $row['id']; $_SESSION['access'] = $row['page_access']; $_SESSION['nickname'] = $row['nickname']; if($row['page_access'] >= $config['adminAccess']) $_SESSION['admin'] = 1; else $_SESSION['admin'] = 0; } return $sql->num_rows ? true : false; } function getRecoveryKey($name) { $this->db->select('key'); $sql = $this->db->get_where('accounts', array('name' => $name))->row_array(); return $sql['key']; } function generateKey($name) { $key = rand(1000,9999).'-'.rand(1000,9999).'-'.rand(1000,9999).'-'.rand(1000,9999); $save = sha1(str_replace("-", "", $key)); $this->db->update('accounts', array('key' => $save), array('name' => $name)); return $key; } public function getAccountID() { $this->db->select('id'); $sql = $this->db->get_where('accounts', array('name' => $_SESSION['name']))->row_array(); return (int)$sql['id']; } public function getCharacters() { $this->db->select('id, name, level'); return $this->db->get_where('players', array('account_id' => $_SESSION['account_id']), array('deleted' => 0))->result(); } public function checkPassword($pass) { $this->db->select('id'); return ($this->db->get_where('accounts', array('name' => $_SESSION['name'], 'password' => sha1($pass)))->num_rows) ? true : false; } public function changePassword($pass, $name) { $this->db->update('accounts', array('password' => sha1($pass)), array('name' => $name)); } public function isUserPlayer($id) { $this->db->select('id'); return ($this->db->get_where('players', array('account_id' => $_SESSION['account_id'], 'id' => $id))->num_rows) ? true : false; } public function getPlayerComment($id) { $this->db->select('comment, hide_char'); return $this->db->get_where('players', array('id' => $id))->result_array(); } public function changeComment($id, $comment, $hide = false) { $hide = $hide ? 1 : 0; $this->db->update('players', array('comment' => $comment, 'hide_char' => $hide), array('id' => $id)); } public function deletePlayer($id) { $this->db->update('players', array('deleted' => 1), array('id' => $id)); } public function nicknameExists($name) { $this->db->select('id'); return ($this->db->get_where('accounts', array('nickname' => $name))->num_rows) ? true : false; } public function emailExists($email) { $this->db->select('id'); return ($this->db->get_where('accounts', array('email' => $email))->num_rows) ? true : false; } public function setNickname($id, $nick) { $this->db->update('accounts', array('nickname' => $nick), array('id' => $id)); } public function checkKey($key, $email) { return ($this->db->get_where('accounts', array('key' => sha1($key), 'email' => $email))->num_rows) ? true : false; } public function recoveryAccount($key, $email, $password) { $this->db->update('accounts', array('password' => sha1($password)), array('key' => sha1($key), 'email' => $email)); } public function load($id) { $this->db->select('id, rlname, location, about_me, nickname'); return $this->db->get_where('accounts', array('id' => $id))->result_array(); } public function checkMessages() { $this->db->select('id'); return $this->db->get_where('messages', array('to' => $_SESSION['account_id'], 'unread' => 1, 'delete_to' => 0))->num_rows; } } ?> ¿Tienes alguna imagen que pueda ayudar con el problema? Si es así, ponlo aquí.
  19. A PHP Error was encountered Severity: Notice Message: Undefined index: key Filename: models/account_model.php Line Number: 29
  20. iesuesukobaru postou uma resposta no tópico em Websites
    Error occured! Error ID: #C-2More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: /home/otserv/config.luaFile: D:\Xampp\htdocs\PokeStorm TFS 0.4\classes/configlua.php Line: 24File: D:\Xampp\htdocs\PokeStorm TFS 0.4\classes/configlua.php Line: 12File: D:\Xampp\htdocs\PokeStorm TFS 0.4\system/load.init.php Line: 42File: D:\Xampp\htdocs\PokeStorm TFS 0.4/index.php Line: 18

Informação Importante

Confirmação de Termo