Ir para conteúdo

El Rusher

Cavaleiro
  • Total de itens

    185
  • Registro em

  • Última visita

  • Dias Ganhos

    24

Tudo que El Rusher postou

  1. O erro que você está vendo acontece porque o sistema não está encontrando um combate (ou seja, a variável combat) quando a função doCombat() é chamada dentro do evento temporizado. Isso ocorre porque o evento temporizado é executado após o término do efeito da guarda, e nesse momento, o combate associado à habilidade pode ter sido encerrado. Para corrigir isso, você pode verificar se o jogador ainda está sob o efeito da habilidade antes de executar o combate dentro do evento temporizado. Aqui está como você pode fazer isso: function onCastSpell(cid, var) local waittime = 20 -- Tempo de exhaustion local storage = 696002 if exhaustion.check(cid, storage) then local remainingTime = exhaustion.get(cid, storage) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) -- Efeito visual quando o jogador está cansado doPlayerSendTextMessage(cid, 20, "Voce esta cansado. Tempo restante: " .. remainingTime .. " segundos.") return false end exhaustion.set(cid, storage, waittime) local condition = createConditionObject(CONDITION_MANASHIELD) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) doAddCondition(cid, condition) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE) -- Efeito visual quando a guarda está alta doPlayerSendTextMessage(cid, 20, "Guarda alta!") addEvent(function() if isCreature(cid) then if getCreatureCondition(cid, CONDITION_MANASHIELD) then -- Verifica se a condição ainda está ativa local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, 12) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) doCombat(cid, combat, var) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) -- Efeito visual quando a guarda está aberta doPlayerSendTextMessage(cid, 20, "Sua guarda esta aberta") end end end, 10000) -- Este valor deve ser igual ao valor definido em setConditionParam para a duração do efeito return true end Com esta modificação, a função doCombat() só será chamada se o jogador ainda estiver sob o efeito da habilidade. Isso deve resolver o erro que você está enfrentando.
  2. El Rusher

    Jump Spell

    O seu script está no caminho certo, mas alguns ajustes são necessários para alcançar o comportamento desejado. Vou ajudá-lo a modificar o código para atingir o objetivo: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true) function onGetFormulaValues(cid, level, skill, attack, factor) local skillTotal, levelTotal = skill + attack, level / 5 return -(skillTotal / 3 + levelTotal), -(skillTotal + levelTotal) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function attackCreature(cid, target, var) if not isCreature(cid) or not isCreature(target) then return false end local playerPos = getCreaturePosition(cid) local targetPos = getCreaturePosition(target) if doCombat(cid, combat, var) == LUA_NO_ERROR then doTeleportThing(cid, targetPos) doSendMagicEffect(targetPos, 61) end return true end function onCastSpell(cid, var) local playerPos = getCreaturePosition(cid) local creatures = getSpectators(playerPos, 3, 3, false) if not creatures or #creatures == 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Nenhum alvo válido encontrado.") return false end for _, target in ipairs(creatures) do if isCreature(target) and (isPlayer(target) or isMonster(target)) then addEvent(attackCreature, 100, cid, target, var) end end addEvent(doTeleportThing, 100 * #creatures, cid, playerPos) return true end Renomeei a função attack para attackCreature para refletir melhor sua função. Removi a variável validTargets, pois agora estamos atacando um alvo por vez e não armazenando múltiplos alvos. Adicionei um evento para teleportar o jogador de volta para a posição inicial após atacar todos os alvos. Corrigi o loop for em onCastSpell para chamar attackCreature para cada alvo, em vez de chamar attack diretamente. Adicionei uma verificação para garantir que apenas alvos válidos (jogadores ou monstros) sejam atacados. Adicionei uma verificação para garantir que pelo menos um alvo válido seja encontrado antes de prosseguir com a magia.
  3. Você pode implementar essa funcionalidade com o auxílio de armazenamento de valores de jogadores em Lua, usando a função os.time() para registrar o momento em que o comando foi usado e verificar se o período de "exaustão" passou. Aqui está um exemplo de como você pode fazer isso: function onSay(cid, words, param) if param == "!mudarpvp" then local timeLastChanged = getPlayerStorageValue(cid, 99999) or 0 -- Verifica quando foi a última mudança local currentTime = os.time() -- Obtém o tempo atual em segundos if currentTime - timeLastChanged < 86400 then -- Verifica se não passou 1 dia desde a última mudança doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ainda está em modo no-PvP. Aguarde mais um tempo para mudar novamente.") return true end if getPlayerStorageValue(cid, 100000) == 1 then -- Verifica se o jogador está atualmente em modo no-PvP doPlayerSetStorageValue(cid, 100000, 0) -- Modo PvP ativado doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você agora está em modo PvP. Outros jogadores podem atacá-lo.") else doPlayerSetStorageValue(cid, 100000, 1) -- Modo no-PvP ativado doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você agora está em modo no-PvP. Você está livre de ataques de outros jogadores.") end setPlayerStorageValue(cid, 99999, currentTime) -- Registra o momento da última mudança end return true end Neste exemplo: O jogador digita "!mudarpvp". O sistema verifica quanto tempo passou desde a última mudança de estado usando a diferença entre o tempo atual (os.time()) e o tempo registrado na última mudança. Se não passou 1 dia desde a última mudança, o jogador recebe uma mensagem indicando que ele deve esperar mais um tempo. Se passou 1 dia, o sistema muda o estado do jogador de PvP para no-PvP ou vice-versa, dependendo do estado atual. O sistema registra o tempo da última mudança para garantir que o jogador não possa mudar novamente até que tenha passado um dia desde a última mudança.
  4. function onUse(cid, item, fromPosition, itemEx, toPosition) local manaToRestore = 150 + (getPlayerMagLevel(cid) * 2) -- Calcula a quantidade de mana a ser restaurada doCreatureAddMana(cid, manaToRestore) -- Restaura a mana do jogador doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE) -- Efeito visual para indicar a restauração de mana doRemoveItem(item.uid, 1) -- Remove a mana rune do inventário do jogador return true end e nao menos importante: newItem = { itemid = 1234, -- ID da mana rune manaToRestore = 150, -- Quantidade fixa de mana a ser restaurada script = "rune_mana.lua" -- Nome do script que você criou }
  5. function onCreatureSay(cid, type, msg) if not isPlayer(cid) then return true end local npcPos = {x = 100, y = 50, z = 7} -- Altere para a posição do NPC if msg:lower() == "hi" then doCreatureSay(cid, "O que você quer aqui? 'permission' or 'items for permission'", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 1) -- Marca que o jogador iniciou a interação com o NPC elseif getPlayerStorageValue(cid, 99999) == 1 then if msg:lower() == "permission" then doCreatureSay(cid, "Para te dar a permissão de entrar no castelo do Rei, preciso de alguns items. Se conseguir pegar para mim, te darei minha permissão de entrar no castelo do Rei. 'yes' or 'no'", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 2) -- Marca que o jogador escolheu "permission" elseif msg:lower() == "items for permission" then doCreatureSay(cid, "Eu preciso dos seguintes itens para te dar permissão: [Item 1] (quantidade), [Item 2] (quantidade)", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 3) -- Marca que o jogador escolheu "items for permission" end elseif getPlayerStorageValue(cid, 99999) == 2 then -- Se jogador escolheu "permission" if msg:lower() == "yes" then if getPlayerItemCount(cid, item1) >= quantidade1 and getPlayerItemCount(cid, item2) >= quantidade2 then -- Verifica se o jogador tem os itens necessários doPlayerRemoveItem(cid, item1, quantidade1) -- Remove os itens do jogador doPlayerRemoveItem(cid, item2, quantidade2) setPlayerStorageValue(cid, 13544, 1) -- Dá a storage de missão doCreatureSay(cid, "Boa sorte!", TALKTYPE_SAY) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você recebeu a permissão para entrar no castelo do Rei.") setPlayerStorageValue(cid, 99999, 0) -- Reinicia a conversa else doCreatureSay(cid, "Você não possui todos os itens necessários. Continue sua busca.", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 2) -- Permite ao jogador tentar novamente end elseif msg:lower() == "no" then doCreatureSay(cid, "Continue sua busca.", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 2) -- Permite ao jogador tentar novamente end elseif getPlayerStorageValue(cid, 99999) == 3 then -- Se jogador escolheu "items for permission" -- Insira aqui a lógica para informar ao jogador os itens e quantidades necessárias -- Exemplo: doCreatureSay(cid, "Você precisa de 10 itens X e 5 itens Y.", TALKTYPE_SAY) setPlayerStorageValue(cid, 99999, 0) -- Reinicia a conversa end end Este script assume que você tem uma variável item1, quantidade1, item2 e quantidade2 definidas anteriormente no script com os IDs dos itens necessários e suas quantidades. Certifique-se de substituir [Item 1], [Item 2], quantidade1 e quantidade2 pelos nomes dos itens e quantidades reais que você deseja. Lembre-se de substituir {x = 100, y = 50, z = 7} pela posição real do NPC em seu mapa. Além disso, adapte o código para o seu servidor, conforme necessário.
  6. Para fazer a sprite do seu personagem sumir ao teleportar em cima do alvo para atacar, você pode usar a função doCreatureSetOutfit para definir a aparência do seu personagem como "invisible" (invisível). Aqui está como você pode modificar sua função spell.start para implementar isso: spell = { start = function (cid, target, markpos, hits) if not isCreature(cid) then return true end if not isCreature(target) or hits < 1 then doTeleportThing(cid, markpos) doSendMagicEffect(getThingPos(cid), config.efeitoTele) -- Definir aparência do jogador como normal após o teleport doCreatureSetOutfit(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and 128 or 136, -1) return true end posAv = validPos(getThingPos(target)) rand = #posAv == 1 and 1 or #posAv - 1 doSendMagicEffect(getThingPos(cid), config.efeitoTele) doTeleportThing(cid, posAv[math.random(1, rand)]) -- Definir aparência do jogador como invisível após o teleport doCreatureSetOutfit(cid, 0, 0) doAreaCombatHealth(cid, config.damage, getThingPos(target), 0, -config.min, -config.max, config.efeitoDamage) addEvent(spell.start, config.delay, cid, target, markpos, hits - 1) end } Aqui está o que foi adicionado: 1.Após o teleport, antes de retornar, usamos doCreatureSetOutfit para definir a aparência do jogador como normal novamente. Isso garante que, depois de teleportar, o jogador reaparecerá normalmente. 2.Dentro do bloco else (quando o alvo existe e há hits restantes), logo após o teleport, definimos a aparência do jogador como invisível com doCreatureSetOutfit(cid, 0, 0). Isso fará com que a sprite do jogador desapareça.
  7. Pelo que vejo, o código tem uma seção que lida com a configuração do Mercado Pago, mas não há uma lógica para processar os pagamentos recebidos e atualizar as contas dos jogadores.
  8. El Rusher

    problema site nto

    ta faltando a tabela nto.guilds_ggn, criar ela é facil, agora saber a estrutura que era pra ela ter nem tanto ex: CREATE TABLE nto.guilds_ggn ( id INT AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(255), descricao TEXT, data_criacao TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
  9. resolvido por conta propria
  10. XML <globalevent name="UpdateOfert" time="18:54" event="script" value="atualizaShop.lua"/> LUA function onTimer() db.executeQuery('DELETE FROM shop_offer WHERE id = 1') db.executeQuery('INSERT INTO shop_offer (`id`, `points`, `category`, `type`, `item`, `count`, `description`, `name`) VALUES (1, 299, 2, 8, 19244, 1, "Ao abrir o Addon Box, voce encontrara um Addon eleatorio", "Addon Box"') return true end db.executeQuery("INSERT INTO shop_offer (`id`, `points`, `category`, `type`, `item`, `count`, `description`, `name`) VALUES (1, 299, 2, 8, 19244, 1, 'Ao abrir o Addon Box, voce encontrara um Addon eleatorio', 'Addon Box'") db.executeQuery("UPDATE `shop_offer` SET `id` = 1, `points` = 399, `category` = 2, `type` = 8, `item` = 12345, `count` = 1, `description` = 'teste', `name` = 'teste'") Tentei de varias maneiras, mas nada..
  11. Boa tarde, experimente fazer dowload de uma versao mais antiga do Xampp, ex: https://sourceforge.net/projects/xampp/files/XAMPP Windows/1.7.3/
  12. Boa tarde @HUNT1 varia muito de site pra site, se ja tem um sistema de compra/pagamento instalado, ai seria o caso de somente fazer uma edição, acaso não tenha, teria que fazer a instalação de um do zero, pra isso era interessante vc ter em mente que tipo de metodos de pagamento vc aceitaria, vai de vc estudar juros x serviços oferecidos por exemplo pelo Mercado Pago, PagSeguro, PIX, etc quanto a questao de mecher no shop, geralmente nos scripts da maioria das bases pra colocar mais itens vc precisa de acesso ADM, pra isso basta vc fazer login na sua conta com poder administrativo ( a mesma que vc usa no game), acaso nao tenha, procura sua conta na DataBase (localizada na aba 'accounts' edite ela, e procure por 'Page_Acess' (ou algo do tipo) e poe em 7 ou 15, ao entrar novamente no shop, tera a opçao de ediçoes
  13. $Sortear = rand(0, 1); $TabelaShop = array (0 => $SQL->query('INSERT INTO shop_offer (`id`, `points`, `category`, `type`, `item`, `count`, `description`, `name`) VALUES (103, 1000, 2, 8, 18840, 1, "Teste1", "Teste1")'), 1 => $SQL->query('INSERT INTO shop_offer (`id`, `points`, `category`, `type`, `item`, `count`, `description`, `name`) VALUES (104, 1000, 2, 8, 18840, 1, "Teste2", "Teste2")') ); if ($Sortear == 0) { $TabelaShop[0]; } else if($Sortear == 1){ $TabelaShop[1]; } Aonde estou errando? sempre que seto isso, ele joga tanto duas informaçoes pra Database, como se a variavel 'Sortear', fosse 0 e 1, ou acusando o if em positivo e o else if em positivo tbm.. algo do tipo
  14. Pra quem teve erro, só copia o .lua do dowload e cola esse codigo no .otui NextOutfitButton < NextButton PrevOutfitButton < PreviousButton NextMountButton < NextButton PrevMountButton < PreviousButton botaobolado < UIButton MainWindow size: 437 428 image-source: /images/game/Module/outfit/window @onEnter: modules.game_outfit.accept() @onEscape: modules.game_outfit.destroy() // Creature Boxes Creature image-source: /images/game/Module/outfit/box id: outfitCreatureBox anchors.top: parent.top anchors.left: parent.left margin-top: 50 margin-left: 150 padding: 4 4 4 4 fixed-creature-size: true Label id: outfitName !text: tr('No Outfit') width: 115 anchors.bottom: prev.top anchors.left: prev.left margin-bottom: -5000 NextOutfitButton id: outfitNextButton anchors.left: outfitCreatureBox.right anchors.verticalCenter: outfitCreatureBox.verticalCenter margin-left: 5 enabled: true @onClick: modules.game_outfit.nextOutfitType() PrevOutfitButton id: outfitPrevButton anchors.right: outfitCreatureBox.left anchors.verticalCenter: outfitCreatureBox.verticalCenter margin-right: -5 enabled: true @onClick: modules.game_outfit.previousOutfitType() Creature id: mountCreatureBox anchors.top: parent.top anchors.right: parent.right margin-top: 50 margin-right: 35 padding: 4 4 4 4 fixed-creature-size: true Label id: mountName !text: tr('No Mount') width: 115 anchors.bottom: prev.top anchors.left: prev.left margin-bottom: 2 NextMountButton id: mountNextButton anchors.left: mountCreatureBox.right anchors.verticalCenter: mountCreatureBox.verticalCenter margin-left: 3 enabled: true @onClick: modules.game_outfit.nextMountType() PrevMountButton id: mountPrevButton anchors.right: mountCreatureBox.left anchors.verticalCenter: mountCreatureBox.verticalCenter margin-right: 3 enabled: true @onClick: modules.game_outfit.previousMountType() // Body Selection Buttons ButtonBox id: head !text: tr('Head') color: #ffffff anchors.top: outfitCreatureBox.bottom anchors.left: parent.left margin-top: 21 margin-left: 58 checked: true width: 76 ButtonBox id: primary color: #ffffff !text: tr('Primary') anchors.top: prev.top anchors.left: prev.right width: 76 ButtonBox id: secondary color: #ffffff !text: tr('Secondary') anchors.top: prev.top anchors.left: prev.right width: 76 ButtonBox id: detail color: #ffffff !text: tr('Detail') anchors.top: prev.top anchors.left: prev.right width: 76 // Color Panel Panel id: colorBoxPanel anchors.top: head.bottom anchors.left: head.left margin-top: 15 margin-left: 1 width: 302 height: 119 layout: type: grid cell-size: 14 14 cell-spacing: 2 num-columns: 19 num-lines: 7 // Action Button Section botaobolado id: randomizeButton image-source: /images/game/Module/outfit/embaralhar size: 112 38 anchors.top: parent.top anchors.left: parent.left image-clip: 0 0 112 38 margin-top: 334 margin-left: 15 @onClick: modules.game_outfit.randomize() $hover: image-clip: 0 38 112 38 $pressed: image-clip: 0 76 112 38 botaobolado id: outfitOkButton image-source: /images/game/Module/outfit/escolher size: 112 38 anchors.top: parent.top anchors.left: parent.left image-clip: 0 0 112 38 margin-top: 334 margin-left: 280 @onClick: modules.game_outfit.accept() $hover: image-clip: 0 38 112 38 $pressed: image-clip: 0 76 112 38 botaobolado id: outfitCancelButton image-source: /images/game/Module/outfit/fechar size: 34 34 anchors.top: parent.top anchors.left: parent.left image-clip: 0 0 34 34 margin-top: -7 margin-left: 368 @onClick: modules.game_outfit.destroy() $hover: image-clip: 0 34 34 34 $pressed: image-clip: 0 68 34 34
  15. if isNpc(target) == true then return doCreatureSay(cid, "hi", 10) and doCreatureSay(cid, "trade", 10) end
  16. Olá, fiz uma quest que o player ganha um key (acompanhada de uma storage) e queria que essa storage sumisse depois de certo tempo, e consequentemente a Key que estava com o player junto Obter a key: Linhas para deletar item quando não tiver a storage:
  17. Eu não entendi muito bem pq, mas no outro dia quando liguei o pc ele tava normal, funcionando normalmente sendo que não mechi em nada, mas agradeço pela resposta dos slots em branco ❤️
  18. Resolvido por conta propria, podem fechar o tópico, aos interessados só usei um plugin de timer <div class="123" id="123"></div><script src="seuplugin.com"></script>
  19. Ao Criar o item ele fica invisivel ao tentar spawnar ele no jogo ( nao aparece a imagem) OBS: Eu peguei uma imagem que ja estava invisivel e substitui pela minha imagem ( que era pra ser da outfit do terno) sera que pode ter afetado? Pergunta 2: Se eu deletar esses itens que estao todos transparentes, pra liberar mais limite de sprite, vai afetar algo no jogo?
  20. Na real a posiçao iniciau do player eu joguei em uma sala de tutorial, no caso a do (config.php) porém não creio que afeta o spaw do player né? até testei colocar as coordenadas de saffron mesmo, mas continuou na mesma
  21. sim, ja tentei lá, ontem a noite eu tinha resolvido, mas acabou acarretando em uns problemas no site devido ao tanto de arquivo que eu mechi kk, ai usei meu backupp do htdocs e resultado: o bug do jogo voltou e o bug do site nao saiu uheuheue, triste mano
  22. Explicando melhor, dentro do website tem o facebook: e eu não queria tirar, somente tirar essa url pra trocar por outro link, porém não consigo achar o arquivo que ta transmitindo essa url pro site, procurei em tudo quer puta canto ;-; ai inspencionei o site, e realmente tem esse bendito arquivo, eu que deixei passar batido.. Alguém usa esse mesmo script no seu website e sabe onde ele fica, ou sabe alguma maneira de por exemplo encontrar um trecho de texto dentro de varias pastas que contem arquivos, no caso procuraria em todos arquivos dentro dessas pastas especificas
  23. Primeiramente galera eu sei que é um problema bem comum e que tem meio mundo de tópicos com esse titulo, porém todos se dedicam ao mesmo problema que seria quando cria acc pelo site o da esse erro, porém pra mim ele acontece só quando o player morre.. até achei um cara que tinha o mesmo problema em um tópico ai, mas ele usava gesior e eu uso modern aac Alguém tem a solução? OBS:Ja mechi nas linhas do : /*Positions to start when creating character*/ até ai tudo bem, mudou tudo ok aonde o char nascia ai eu to achando que o problema pode ser em /*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/ porém ta tudo configurado certo, não esta? OBS: Saffron é realmente ID: 1 no rme Ou o spaw do player tem a ver com outro arquivo? vou deixar o config.php , mas creio que nao tenha a ver sla kk.. config.php <?php /*These configs are neccessary in order to make Modern AAC work.*/ /*URL of website including http:// and without slash at the end! */ $config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\'); /*Database information*/ $config['database']['host'] = "127.0.0.1"; $config['database']['login'] = "root"; $config['database']['password'] = ""; $config['database']['database'] = "poketibia"; /*Name of server*/ $config['server_name'] = "Pokemon Alliance"; /*End of most important configs*/ /*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/ $config['cities'] = array(1=>'Saffron'); /*List of vocation available to choose when creating new character*/ $config['vocations'] = array(1=>"Pokemon Trainer"); /*List of vocation that exists on server*/ $config['server_vocations'] = array(1=>"Pokemon Trainer"); /*List of promotions, the key is vocation without promotion*/ $config['promotions'] = array(1=>"Pokemon Trainer"); /*Resitricted names*/ $config['restricted_names'] = array("god", "gamemaster", "admin", "account manager"); /*Names with any of this value cannot be created*/ $config['invalidNameTags'] = array("god", "gm", "cm", "gamemaster", "hoster", "admin"); /*ID and names of worlds*/ $config['worlds'][0] = "Ruby"; // Enable multiworld by uncommenting this //$config['worlds'][1] = "Second World"; /* Addresses of each server */ $config['servers'][0] = array('address'=>'127.0.0.1', 'port'=>7171, 'vapusid'=>'<br /> <b>Notice</b>: Undefined variable: vapusID in <b>C:\xampp\htdocs\install\index.php</b> on line <b>143</b><br /> '); // Enable multiworld by uncommenting this //$config['servers'][1] = array('address'=>'127.0.0.1', 'port'=>7173, 'vapusid' => 'XXX'); /*Groups that exists on server*/ $config['groups'] = array(0=>"Player", 1=>"Player", 2=>"Tutor", 3=>"Senior Tutor", 4=>"Gamemaster", 5=>"Community Manager", 6=>"God"); /*Names of vocations as in database as samples. First key is world id and second vocation id.*/ $config['newchar_vocations'][0][1] = "Pokemon Trainer Sample"; /*Don't show chaarcters with group id higher than*/ $config['players_group_id_block'] = 3; /*Min. level to create guild*/ $config['levelToCreateGuild'] = 50; /*Limit of latest deaths*/ $config['latestdeathlimit'] = 20; /*Limit news per page*/ $config['newsLimit'] = 10; /*Limit comments per page*/ $config['commentLimit'] = 10; /*Template that should be used on website*/ $config['layout'] = "new"; // Pagseguro Automático by Absolute on Luminera // Seu email cadastrado no PagSeguro $config['pagseguro']['email'] = 'SEU E-MAIL DO PAGSEGURO'; // Nome do produto $config['pagseguro']['produtoNome'] = 'Premium Points'; // Valor de cada ponto // Exemplo de valores: // 100 = R$ 1,00 // 250 = R$ 2,50 $config['pagseguro']['produtoValor'] = '100'; /*Title of a website*/ $config['title'] = "Poke Alliance"; /*Premdays given when creating new account.*/ $config['premDays'] = 0; /*Positions to start when creating character*/ $startPos['x'] = 1044; $startPos['y'] = 1904; $startPos['z'] = 6; /*Trigger password for scaffolding system.*/ $config['scaffolding_trigger'] = "password"; /*Minimum page access for admin priviliges*/ $config['adminAccess'] = 5; /*Max threads per page*/ $config['threadsLimit'] = 10; /*Max posts per page in a thread*/ $config['postsLimit'] = 10; /*Time between posts*/ $config['timeBetweenPosts'] = 30; /*Limit of submissions per page in bug tracker*/ $config['bugtrackerPageLimit'] = 10; /*Limit of houses on listing page*/ $config['housesLimit'] = 10; /*Level to buy house*/ $config['houseLevel'] = 50; /*Lenght of housing auction in seconds*/ $config['houseAuctionTime'] = 604800; /*Default timezone*/ $config['timezone'] = "Europe/London"; /*Allowed IPs to use command prompt in admin panel*/ $config['allowedToUseCMD'] = array("127.0.0.1", "localhost"); /* Path to your UI theme */ $config['UItheme'] = "smoothness/jquery-ui-1.7.2.custom.css"; /*Destination to guilds logos folder, must be writable.*/ $config['uploads'] = "/public/guild_logos/"; /* Status timeout (recheck if server is online) */ $config['statusTimeout'] = 1 + (5 * 60); // Default to 5min /* Wrap words longer than */ $config['wrap_words'] = 80; /*Limit comments per page in videos view*/ $config['videoCommentsLimit'] = 10; /*Limit of videos to show while searching*/ $config['videoSearchLimit'] = 10; /*Maximum amount of characters per account*/ $config['maxCharacters'] = 10; /*Limit of inbox/outbox messages per page*/ $config['messagesLimit'] = 10; /*Amount of names to be saved when looking for characters*/ $config['characterSearchLimit'] = 10; /*Switch on Admin Window*/ $config['adminWindow'] = true; /*Integrate facebook to AAC? (TRUE/FALSE)*/ $config['facebook'] = true; /*Max amount of saved actions*/ $config['actionsCount'] = 15; /*Player per page in hishscore */ $config['highscore']['per_page'] = 20; /*Total players to show in highscores*/ $config['highscore']['total'] = 300; /* Guild board creation */ $config['guildboardTitle'] = "Fórum da Guilda %NAME%"; $config['guildboardDescription'] = "Este fórum só pode ser acessado por membros da %NAME% !"; /* VAPus Settings */ $config['VAPusGraphStep'] = 1; // step * update time = time steps on graph, etc 6 with an update time of 10min = one hour //Enable delay between creating characters $config['characterDelay'] = true; //Time between creating characters in seconds $config['characterDelayTime'] = 240; //Enable delay between creating accounts $config['accountDelay'] = true; //Time between creating accounts in seconds $config['accountDelayTime'] = 240; //Account restrictions $config['restrictedAccounts'] = array('1'); ############EVENTS############ # Event fired just after main framework to gain access to all features $config['onLoad'] = array(); # Event fired after all finished loading no headers should be sent $config['onReady'] = array(); ############################# /* ###################################################################################################################### * Do not touch any of the configs below if you are not 100% sure what you are doing! * These are config to the engine, usually the default ones works well so no change needed for unexperienced users. ###################################################################################################################### */ // Tiny hack to figure if we use Windows or not. if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') @define('USING_WINDOWS', 1); else @define('USING_WINDOWS', 0); if(USING_WINDOWS) $config['engine']['PHPversion'] = "5.3.0"; else $config['engine']['PHPversion'] = "5.3.0"; $config['engine']['indexPage'] = "index.php"; $config['engine']['uri_protocol'] = "AUTO"; $config['engine']['charSET'] = "UTF-8"; $config['engine']['enable_hooks'] = FALSE; $config['engine']['permitted_uri_chars'] = "a-z 0-9~%.:_\-'+"; $config['engine']['enable_query_strings'] = FALSE; $config['engine']['global_xss_filtering'] = TRUE; $config['engine']['compress_output'] = FALSE; $config['engine']['proxy_ip'] = ""; $config['engine']['autoload_libraries'] = array(); $config['engine']['autoload_helper'] = array(); $config['engine']['autoload_plugin'] = array(); $config['engine']['autoload_config'] = array(); $config['engine']['autoload_model'] = array(); $config['engine']['default_controller'] = "home"; $config['engine']['platforms'] = array('windows nt 6.0' => 'Windows Longhorn', 'windows nt 5.2' => 'Windows 2003', 'windows nt 5.0' => 'Windows 2000', 'windows nt 5.1' => 'Windows XP', 'windows nt 4.0' => 'Windows NT 4.0', 'winnt4.0' => 'Windows NT 4.0', 'winnt 4.0' => 'Windows NT', 'winnt' => 'Windows NT', 'windows 98' => 'Windows 98', 'win98' => 'Windows 98', 'windows 95' => 'Windows 95', 'win95' => 'Windows 95', 'windows' => 'Unknown Windows OS', 'os x' => 'Mac OS X', 'ppc mac' => 'Power PC Mac', 'freebsd' => 'FreeBSD', 'ppc' => 'Macintosh', 'linux' => 'Linux', 'debian' => 'Debian', 'sunos' => 'Sun Solaris', 'beos' => 'BeOS', 'apachebench' => 'ApacheBench', 'aix' => 'AIX', 'irix' => 'Irix', 'osf' => 'DEC OSF', 'hp-ux' => 'HP-UX', 'netbsd' => 'NetBSD', 'bsdi' => 'BSDi', 'openbsd' => 'OpenBSD', 'gnu' => 'GNU/Linux', 'unix' => 'Unknown Unix OS' ); $config['engine']['mobiles'] = array('mobileexplorer' => 'Mobile Explorer', 'palmsource' => 'Palm', 'palmscape' => 'Palmscape', 'motorola' => "Motorola", 'nokia' => "Nokia", 'palm' => "Palm", 'iphone' => "Apple iPhone", 'ipod' => "Apple iPod Touch", 'sony' => "Sony Ericsson", 'ericsson' => "Sony Ericsson", 'blackberry' => "BlackBerry", 'cocoon' => "O2 Cocoon", 'blazer' => "Treo", 'lg' => "LG", 'amoi' => "Amoi", 'xda' => "XDA", 'mda' => "MDA", 'vario' => "Vario", 'htc' => "HTC", 'samsung' => "Samsung", 'sharp' => "Sharp", 'sie-' => "Siemens", 'alcatel' => "Alcatel", 'benq' => "BenQ", 'ipaq' => "HP iPaq", 'mot-' => "Motorola", 'playstation portable' => "PlayStation Portable", 'hiptop' => "Danger Hiptop", 'nec-' => "NEC", 'panasonic' => "Panasonic", 'philips' => "Philips", 'sagem' => "Sagem", 'sanyo' => "Sanyo", 'spv' => "SPV", 'zte' => "ZTE", 'sendo' => "Sendo", 'symbian' => "Symbian", 'SymbianOS' => "SymbianOS", 'elaine' => "Palm", 'palm' => "Palm", 'series60' => "Symbian S60", 'windows ce' => "Windows CE", 'obigo' => "Obigo", 'netfront' => "Netfront Browser", 'openwave' => "Openwave Browser", 'mobilexplorer' => "Mobile Explorer", 'operamini' => "Opera Mini", 'opera mini' => "Opera Mini", 'digital paths' => "Digital Paths", 'avantgo' => "AvantGo", 'xiino' => "Xiino", 'novarra' => "Novarra Transcoder", 'vodafone' => "Vodafone", 'docomo' => "NTT DoCoMo", 'o2' => "O2", 'mobile' => "Generic Mobile", 'wireless' => "Generic Mobile", 'j2me' => "Generic Mobile", 'midp' => "Generic Mobile", 'cldc' => "Generic Mobile", 'up.link' => "Generic Mobile", 'up.browser' => "Generic Mobile", 'smartphone' => "Generic Mobile", 'cellphone' => "Generic Mobile" ); $config['engine']['robots'] = array('googlebot' => 'Googlebot', 'msnbot' => 'MSNBot', 'slurp' => 'Inktomi Slurp', 'yahoo' => 'Yahoo', 'askjeeves' => 'AskJeeves', 'fastcrawler' => 'FastCrawler', 'infoseek' => 'InfoSeek Robot 1.0', 'lycos' => 'Lycos' ); $config['engine']['browsers'] = array('Opera' => 'Opera', 'MSIE' => 'Internet Explorer', 'Internet Explorer' => 'Internet Explorer', 'Shiira' => 'Shiira', 'Firefox' => 'Firefox', 'Chimera' => 'Chimera', 'Phoenix' => 'Phoenix', 'Firebird' => 'Firebird', 'Camino' => 'Camino', 'Netscape' => 'Netscape', 'OmniWeb' => 'OmniWeb', 'Safari' => 'Safari', 'Mozilla' => 'Mozilla', 'Konqueror' => 'Konqueror', 'icab' => 'iCab', 'Lynx' => 'Lynx', 'Links' => 'Links', 'hotjava' => 'HotJava', 'amaya' => 'Amaya', 'IBrowse' => 'IBrowse' ); $config['engine']['mimes'] = array('hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'csv' => array ('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel' ), 'bin' => 'application/macbinary', 'dms' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'lzh' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'class' => 'application/octet-stream', 'psd' => 'application/x-photoshop', 'so' => 'application/octet-stream', 'sea' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'oda' => 'application/oda', 'pdf' => array ('application/pdf', 'application/x-download' ), 'ai' => 'application/postscript', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'smi' => 'application/smil', 'smil' => 'application/smil', 'mif' => 'application/vnd.mif', 'xls' => array ('application/excel', 'application/vnd.ms-excel', 'application/msexcel' ), 'ppt' => array ('application/powerpoint', 'application/vnd.ms-powerpoint' ), 'wbxml' => 'application/wbxml', 'wmlc' => 'application/wmlc', 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dxr' => 'application/x-director', 'dvi' => 'application/x-dvi', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'php' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', 'js' => 'application/x-javascript', 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', 'tgz' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', 'zip' => array ('application/x-zip', 'application/zip', 'application/x-zip-compressed' ), 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', 'mp3' => array ('audio/mpeg', 'audio/mpg' ), 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'rv' => 'video/vnd.rn-realvideo', 'wav' => 'audio/x-wav', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'jpeg' => array ('image/jpeg', 'image/pjpeg' ), 'jpg' => array ('image/jpeg', 'image/pjpeg' ), 'jpe' => array ('image/jpeg', 'image/pjpeg' ), 'png' => array ('image/png', 'image/x-png' ), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => array ('text/plain', 'text/x-log' ), 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'xml' => 'text/xml', 'xsl' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'word' => array ('application/msword', 'application/octet-stream' ), 'xl' => 'application/excel', 'eml' => 'message/rfc822' ); $config['engine']['doctypes'] = array('xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', 'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', 'html5' => '<!DOCTYPE html>', 'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', 'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', 'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' ); $config['engine']['url_suffix'] = ".ide"; $config['engine']['sess_cookie_name'] = 'ci_session'; $config['engine']['sess_expiration'] = 7200; $config['engine']['sess_encrypt_cookie'] = FALSE; $config['engine']['sess_use_database'] = FALSE; $config['engine']['sess_table_name'] = 'ci_sessions'; $config['engine']['sess_match_ip'] = FALSE; $config['engine']['sess_match_useragent'] = TRUE; $config['engine']['sess_time_to_update'] = 300; $config['engine']['rewrite_short_tags'] = false; if(USING_WINDOWS == 1) { //Load management is not available on Windows. $config['engine']['loadManagement'] = false; } else { //Load management is a maximum ammount of processes website is using. If the website is flooded it will drop connection with users outside this amount. $config['engine']['loadManagement'] = false; $config['engine']['maxLoad'] = 60; } /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | If you have enabled error logging, you can set an error threshold to | determine what gets logged. Threshold options are: | You can enable error logging by setting a threshold over zero. The | threshold determines what gets logged. Threshold options are: | | 0 = Disables logging, Error logging TURNED OFF | 1 = Error Messages (including PHP errors) | 2 = Debug Messages | 3 = Informational Messages | 4 = All Messages | | For a live site you'll usually only enable Errors (1) to be logged otherwise | your log files will fill up very fast. | */ $config['engine']['log_threshold'] = 0; #DON'T TOUCH! DECLARING CONSTANS! @DEFINE('LEVELTOCREATEGUILD', $config['levelToCreateGuild']); @DEFINE('PREMDAYS', $config['premDays']); @DEFINE('HOSTNAME', $config['database']['host']); @DEFINE('USERNAME', $config['database']['login']); @DEFINE('PASSWORD', $config['database']['password']); @DEFINE('DATABASE', $config['database']['database']); @DEFINE('WEBSITE', $config['website']); ?> Podem Encerrar o tópico, resolvido por conta própria Resposta:tinha algumas linhas incorretas no htdocs\system\application\controllers\accounts e nao havia algumas tabemas no database
  24. É um script de botao que uso como loja de traje dentro do meu poketibia Alguem pls pode tentar criar uma subpasta no script, por exemplo, colocar 3 tipos de outfilt diferente dentro de uma subpasta dentro do market, ai teria varias subpastas para separar as outfilts pois todas as vezes que eu tentei por algum motivo crashava e somia todos itens da loja haha, krl eu sou um merda mermao arquivos: 1: shop.lua 2: type:otui print:
  25. Pse, tinha muito comentario positivo, até pq nao tem nem oq errar na instalaçao, sla oq q rolou, pra mim simplesmente nao funciona :v
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...