Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 11/22/12 em todas áreas

  1. SkyLigh

    Introdução A Lua

    Ola galera do ekz muitos como eu tem um problema na logica da programação lua como eu mais andei lendo uns texto da programação e estou entendendo melhor então vou explica-los +- o resumo dela O que é Lua? Quais as origens de Lua? Como contribuir para a comunidade Lua? Por que escolher Lua? Lua é rápida Lua é portátil Lua é embutível Lua é poderosa (e simples) Lua é pequena Incluir Lua numa aplicação não aumenta quase nada o seu tamanho. O pacote de Lua 5.2.1, contendo o código fonte e a documentação, ocupa 245K comprimido e 960K descompactado. O fonte contém cerca de 20000 linhas de C. No Linux, o interpretador Lua contendo todas as bibliotecas padrões de Lua ocupa 182K e a biblioteca Lua ocupa 243K. Lua é livre Lua tem importância global Créditos LuaOrg (Pelo Texto) Skyligh (Pela Postagem)
    2 pontos
  2. O segundo teaser do Winter Update 2012 veio em forma de capa de jornal, haha! A Agência de Noticias Tibianas (TNA em inglês), nos apresentou uma prévia da próxima edição do Tibian Times: Nova le da velocidade TIBIA. Em um estudo amplamente discutido, cientistas descobriram que, apesar da crença popular, uma das leis Tibianas da natureza está para ser influenciada por uma força cósmica. Como resultado, a velocidade de todos os seres vivos (e mortos-vivos) no Tibia, humanos e monstros, será modificada. Obviamente, nós resumimos a teoria científica para nossos leitores: Personagens ficarão mais rápidos a cada level-up mas a taxa de aumento será diminuída. A nova fórmula de velocidade seguirá um padrão de crescimento logarítmico, mas não queremos entrar nos detalhes técnicos. Essa nova formula também fará com que personagens abaixo do level 175 andem mais rapidamente do que o atual, enquanto personagens acima deste level estarão um pouco mais lentos. Nós pedimos alguns exemplos aos cientistas: Um level 30 estará cerca de 25% mais rápido, um level 100 cerca de 13%. Já um level 200 estará 4% mais lento, e um level 300, 17%. Por favor notem que a fórmula está sujeita a mudanças! Por isso, a TNA não garante a precisão dessa informação. A velocidade das criaturas será ajustada proporcionalmente para que a relação entre as velocidades de criaturas e personagens continue a mesma. As novas condições de velocidade serão testadas em um ambiente de teste, então recomendamos que os leitores interessados participem deste teste se tiverem a chance. Comunidade de Aventureiros indignada TIBIA. Depois que a Gazeta de Port Hope publicou uma notícia sobre o aumento da atividade de hydras nas cavernas de Tiquanda e outras criaturas na cidade dos macacos - Banuta, a TNA começou a receber denúncias similares de vários correspondentes em Edron, Yalahar e no império dos anões. Resta saber se mais informações sobre aumento em atividade dos montros chegarão nos próximos dias. O porta-voz de assuntos exteriores recomenda que os aventureiros sejam cuidadosos enquanto caçam: "Nós recomendamos a todos os aventureiros que fiquem atentos ao aumento de criaturas. Tenha certeza que você está bem preparado ou vá com uma equipe até saber quais locais foramafetados!" Paz entre monstros? TIBIA. De acordo com o diário de um explorador morto. forças do mau concordaram em ignorar seus conflitos de forma que todos os monstros parem de causar dano uns aos outros com seus ataques. Além disso, monstros com summons não causarão dano às suas próprias crias. Nós esperamos que os desafios fiquem mais difíceis agora por causa dessa decisão ousada, então esteja preparado ao sair para suas aventuras! Nova coleção de inverno disponível! Finalmente, ao final do ano, nós orgulhosamente apresentamos a mais nova criação dos nossos designers de moda: O novo, brilhante e assustador DEMON OUTFIT. Feito de restos de Demons, este outfit ajudará a espalhar o medo e terror sobre seus inimigos. Seja diferente dos outros. Prove que você é digno de utilizar este outfit completo: Termine a Annihilator Quest, a Demon Helmet Quest e a Demon Oak Quest e receba seu outfit agora! Anúncio Oficial do Magnífico Barbudo, Imperador Kruzak KAZORDOON. Amigos, anões, conterrâneos, me emprestem seus ouvidos: Neste momento, nós declaramos a expansão do sistema de vagões de Kazordoon inaugurada. Em breve, você poderá utilizar mais estações com vagões para viajar mais rapidamente e mais confortavelmente dentro do Big Old One. Além disso, nós estamos orgulhosos de anunciar que assinamos um contrato com Gewen, um piloto de tapete mágico. Você poderá encontrá-lo no topo das montanhas e utilizar seus serviços por uma pequena taxa. Infelizmente, nós também temos notícias tristes para compartilhar. Muitos de nossos batedores, que são enviados para vigiar novas ameaças dentro do nosso reino, ainda não voltaram. De acordo com as pistas que encontramos recentemente, acreditamos que todos eles estejam mortos ou tenham sido capturados. Dessa maneira, nós recomendamos que você tenha bastante cuidado caso visite as partes mais profundas de Kazordoon. Aventureiros procurando por Jovens Aventureiros Grupo de aventureiros, bravos, ousados, curiosos, leais, habilidosos em magia e batalhas e interessado em desvendar segredos está procurando outros aventureiros com este perfil para se juntar à sua comunidade. Se você tem interesse, procure por uma Adventurer's Stone ou visite qualquer funcionário de templo para mais informações. Nós oferecemos um serviço de promoções seguras também. Regeneração de vida TIBIA. Nos foi informado que uma pequena sociedade secreta de magos recentemente realizou um estranho ritual que afetará todos os Tibianos, especialmente os mais jovens: sua vida será restaurada mais rapidamente! Entretanto, essa regeneração mais rápida só terá efeito caso sua vida esteja abaixo de 150, você não esteja com fome, não esteja dentro de uma zona de proteção e não tenha um loggout block. Ela também só funcionará até que você alcance 150 pontos de vida novamente. A regeneração acima deste ponto continuará funcionando como antigamente. Creditos: Tibia BR
    2 pontos
  3. Erebos

    Seu último mapa - your last map

    @UP Local bonito, mas tem muito verde para uma cave. --
    2 pontos
  4. Aerdor

    [8.54] Pokétibia World Server

    Versão 1.0: Versão 1.5: Créditos Gerais: Aerdor Slicer Stigal Cacaiu Se for postar em algum lugar, NÃO REMOVA OS CRÉDITOS! Site com meus projetos: http://xprojectservers.blogspot.com.br/
    1 ponto
  5. HidekiKty

    Golden Survival Arena System

    Golden Survival Arena System (Atualizado 2.7) Introdução A Golden Survival Arena é um evento automático que ocorre a cada 5 horas, onde os players registrados são teleportados para uma arena e devem sobreviver a waves (rounds) com vários pokémons e cada vez mais fortes. Como participar do evento Para participar do evento é necessário se registrar possuindo o item Meowth Coin. Este item pode ser adquirido dropando de Meowth Hunter ou comprando no NPC Meowth Dealer por 1 diamond cada Coin. Obs: Ambos (monster e npc) estão localizados no salão do evento, para ir até o mesmo, teleporte-se utilizando um pokémon com essa habilidade (h "golden). Adicionando o Sistema Implantando a Arena no mapa Primeiramente faça o download do mapa com a Arena separada para implantar a seu mapa. Obs: Não contem nada no mapa além da Arena. Download via MediaFire: Clique aqui. Scan VirusTotal: Clique aqui. Continuando Após ter terminado o download, abra o mapa baixado e o mapa de seu servidor utilizando o RME (remere's map editor). Se não possui o RME, faça o download dele no site oficial clicando aqui. Agora com os dois mapas abertos, vá ao que foi baixado e siga as instruções. Clique no quadrado azul localizado na diagonal esquerda para baixo no RME. Ele será modificado para um lápis onde você poderá selecionar a área a ser copiada e transferida/copiada ao outro mapa. Agora com a função do lapís selecionador ativada, selecione a área a ser transferida/copiada ao outro mapa. Para isto, pressione Shift e selecione a área a ser copiada com o botão esquerdo do mouse. Após isto, solte os botões e a área será destacada. Agora copie o que foi selecionado (CTRL+C) e vá ao outro mapa (o que irá implantar a Arena). Cole a área selecionada (CTRL+V) e após isto, apenas escolha o local para colocá-la e pressione o botão esquerdo do mouse. Enfim este será o resultado da Arena implantada. Agora vamos aos scripts do sistema e acompanhamentos necessários. Actions Abra a pasta data/actions/scripts de seu servidor e crie/copie qualquer arquivo .lua e renomeie para Meowth Coin.lua Dentro do arquivo, apague tudo e adicione: Novamente crie/copie qualquer arquivo .lua na mesma pasta (data/actions/scripts) e renomeie para Quadro_Golden.lua Dentro do arquivo, apague tudo e adicione: Abra a pasta data/actions/scripts de seu servidor e crie/copie qualquer arquivo .lua e renomeie para Quadro_Golden_Rank.lua Dentro do arquivo, apague tudo e adicione: No mesmo local (data/actions/scripts) abra o arquivo catch.lua No seu, é provavel que esteja mais ou menos assim (só que com configurações de acordo com seu servidor): Após as linhas: Adicione abaixo: Resultando em (no caso, script configurado para o meu servidor): Agora abra a pasta data/actions e abra o arquivo actions.xml (abra como editar/bloco de notas). Adicione as tags: Em vermelho são os ID dos quadros da Golden Island, utilizado para ver a lista de participantes do próximo evento, o horário e o rank de waves (rounds). Em azul é o ID do Meowth Coin utilizado para se registrar ao evento. GlobalEvents Abra a pasta data/globalevents/scripts e crie/copie qualquer arquivo .lua e renomeie para Golden Arena.lua Dentro do arquivo, apague tudo e adicione: Em azul são as mensagens antes de começar o evento e quando começar o evento. Novamente na mesma pasta (data/globalevents/scripts) crie/copie qualquer arquivo .lua e renomeie para CleanGoldenArena.lua Dentro do arquivo, apague tudo e adicione: Agora abra a pasta data/globalevents e abra o arquivo globalevents.xml (abra como editar/bloco de notas). Adicione as tags: Em vermelho são os horários da Golden Survival Arena, porém eles tem que ser configurados 10 minutos antes de começar o evento, por causa das mensagens que informam quando irá começar. Sendo assim o evento for começar por exemplo as 14:00, terá de estar configurado time="13:50". Em azul são os horários dos cleans da Golden Survival Arena, porém eles tem que ser configurados 02:30 (2 horas e 30 minutos) após o evento ter começado. Sendo assim se o evento começar as 14:00 e as mensagens estiverem configuradas para 13:50, o evento irá começar somente as 14:00, portanto o Clean da Arena teria que estar configurado time="16:30" (14:00+02:30=16:30). Items Agora abra a pasta data/items e abra o arquivo items.xml (abra como editar/bloco de notas). Procure pelo ID 6527 (CTRL+F) e subistitua a tag dele por esta: Lib Agora abra a pasta data/lib e crie/copie qualquer arquivo .lua e renomeie para Golden Arena.lua Dentro do arquivo, apague tudo e adicione: Agora novamente na pasta data/lib, abra o arquivo configuration.lua Nele, dessa a barra até o fim do script/arquivo e então após o } do sistema anterior, pule uma linha e adicione: Em vermelho é a posição x y z da ponta superior da Golden Survival Arena e em azul é a posição da ponta inferior da mesma. Em verde é a posição x y z para onde os players registrados no evento seram teleportados quando ele começar. Em laranja é a posição x y z para onde os players no evento seram teleportados ao morrerem na Arena ou quando ela acabar. Em verde água é a posição x y z que os pokémons da parte em marrom seram teleportados. Como pode ver são 9 posições e 9 pokémons, apenas escolha as 9 diferentes posições da Arena que os pokémons iram aparecer, e sempre o número de posições terá de ser o mesmo número de pokémons; mesmo que ali esteja por exemplo apenas um pokémon que ira aparecer na wave {"", "Shiny Gyarados", "", "", "", "", "", "", ""}, as "" (aspas) são a mesma quantidade de posições. Em rosa são os horários em que a Golden Survival Arena irá iniciar executando a função de trazer todos os players registrados a posição escolhida. Diferente dos horários da globalevents.xml que são 10 minutos antes por serem horários das mensagens antes que o evento comece, estes horários são os que ela ira iniciar; portanto devem ser exatos, horas de inicialização. Em roxo é o número de waves (rounds) da Arena. Em salmão é o tempo em segundos para cada wave (round). Monster Agora abra a pasta data/monster e escolha uma pasta/local para criar os arquivos .xml Após ter escolhido o local, crie/copie qualquer arquivo .xml e renomeie para aHunter.xml Dentro do arquivo, apague tudo e adicione: O Meowth Hunter é o monster que dropa meowth coins. Novamente após ter escolhido o local, crie/copie qualquer arquivo .xml e renomeie para aHunterFemale.xml Dentro do arquivo, apague tudo e adicione: Em vermelho é o mesmo que o anterior, só que outfit female para ficar como no script do npc da Golden Island. Agora abra a pasta data/monster e abra o arquivo monsters.xml (abra como editar/bloco de notas). Adicione as tags: Em azul é a localização dos Meowth Hunter's, nesse tipo eu coloquei o aHunter.xml e aHunterFemale.xml na pasta data/monster/pokes/System, porém não precisei colocar a parte de data/monster, apenas o que está dentro da pokes em diante (pokes/System/.xml). Se você por exemplo coloca-se o aHunter.xml e aHunterFemale.xml na pasta data/monster/meowthmonster, as tags seriam: Npc Abra a pasta data/npc/scripts e crie/copie qualquer arquivo .lua e renomeie para .aHunter.lua Dentro do arquivo, apague tudo e adicione: Agora vá a pasta data/npc e crie/copie qualquer arquivo .xml e renomeie para .aHunter.xml Dentro do arquivo, apague tudo e adicione: O npc Hunter identifica o sexo do player e cria um Meowth Hunter do mesmo sexo que o player para lutarem. Lembrando que este monster dropa Meowth Coins. Abra a pasta data/npc/scripts e crie/copie qualquer arquivo .lua e renomeie para .aMeowthDealer.lua Dentro do arquivo, apague tudo e adicione: Em vermelho são os 2 diamonds sendo removidos e em azul os 2 Meowth Coins sendo adicionados ao player. Agora vá a pasta data/npc e crie/copie qualquer arquivo .xml e renomeie para aMeowth Dealer.xml Dentro do arquivo, apague tudo e adicione: Em laranja é o NPC que troca 2 diamonds por 2 Meowth Coins, utilizados para se registrar a Golden Survival Arena. Após concluir tudo isto, a Golden Survival System estará completamente instalada em seu servidor. Créditos Slicer pelo script 90%. PokeXGames por direitos autorais. Eu pelo tutorial e 10% do script editado. Creio que esse seja o primeiro System Tutorial de instalação completa da Golden Survival Arena. Obrigado.
    1 ponto
  6. Natanael Beckman

    [C++] Compilando Um Otserv

    Boa galera andei olhando e vi alguns tópicos até meio parecidos com o que estou fazendo agora, mais, eu não acho eles completos por tanto aqui vamos nois. 1° Vamos fazer todos os downloads necessários. Vamos usar um source TFS pra versão de Tibia 8.60 - Source - Stians Dev-Cpp <> 32bits - Stians Dev-Cpp <> 64bits 2° Abra o Dev-cpp: 3° Clique em Tools > Check For Updates/Packages: 4° Clique em Check For Updates and Upstairs select devpacks.org: 5° Seleciona OpenSSL 0.9.8a e clique em Dowload: 6° Em seguida irá aparecer automaticamente um processo de instalação: Agora seu Dev-cpp está no ponto pra compilar. 7° Use ctrl + o pra abri o .dev: 8° Ele vai estar dentro da pasta da sua source: 9° Então depois que abrir todos os arquivos: 10° Use alt + p logo após aparecerá uma janela ae clique em parameters e adicione, {-D__CONSOLE__} e depois OK: 11° Agora é so compilar ctrl + f9: 12º O seu executavél vai está na pasta da sua source: Pronto galera compilação concluida. Creditos: nwtr Nando Web Natan Beckman
    1 ponto
  7. Fala XTibia,estou postando este tutorial porque vejo que muitos nao sabem como por as vocações de wodbo,em sites como ModernACC. Bom,por isso estou fazendo este tutorial. OBS:O Tópico encina passo-a-passo com imagens. 1°Passo: Primeiro de Tudo abra seu banco de dados e sua database,e abra sua tabela players,conforme a imagem. Bom,voces tao vendo que tem as vocaçoes Sample,precisa criar elas,para usar como base,para por criar no site. Para criar faça o seguinte vá ate alguma e clique em Copiar.Vai abrir uma pagina para vc configurar o nova vocação Sample,vou fazer um Test para fazer com Shenron. Olha as imagens abaixo. Depois so ir em executar. Pronto Acabo? Claro que não amigo. Abra seu config.inc do seu htdocs. Vai na parte das vocations. Procure por isso: /*List of vocation available to choose when creating new character*/ O meu está assim. $config['vocations'] = array(1=>"Goku", 2=>"Vegeta", 3=>"Namekjin", 5=>"Brolly", 6=>"Goten"); Explicando Pronto. Agora pensa que acabo? Ainda nao amigo,falta a ultima parte o metodo acima é para criar um novo personagem ja com ACC Logada.Para fazer para aparecer o personagem que deseja criar quando vai criar uma conta nova,tem que fazer isso. Vá na pasta htdocs\system\application\views e abra o arquivo create.php. e procure por <select name="vocation" class="keyboardInput" id="vocation"> Abaixo vai ver as vocaçoes. No meu ficou assim. <option value="1">Goku</option> <option value="2">Vegeta</option> <option value="3">Namekjin</option> <option value="5">Brolly</option> <option value="6">Goten</option> Ali nos numeros,é o ID,da vocation sample,da database. Pronto so salvar e deu. Fim Do tutorial. Créditos: Mozark001.
    1 ponto
  8. bianco001

    [Removido]

    [Removido]
    1 ponto
  9. Fala ae galera do xtibia! aqui é o Eliteimperiosv com a 1° VIDEO AULA =D Hoje Vamos instalar o war of imperium no seu site, map e nos seus scripts. ________________________________________ Aqui vai o download e scan: Downlaod War Of Imperium --->http://www.4shared.c...p7gUB/file.html Scan --->http://www.virustota...21a8-1323898383 Qualquer duvida postem abaixo, brigado. e se puder REP+
    1 ponto
  10. p5lukas157

    (8.60)Hero Ice War

    Bom galera do Xtibia Hj eu to aqui postando meu Primeiro Ot Serve, Ja que esse é meu Primeiro Map Podem Criticar Avontade Isso Só vai me ajudar a Melhorar Vlw Esse Ot serve é Hero War + eu fis um Novo Map e coloquei Versão 8.6 Oq eu Mudei ? Mudei o Nome do dos Intens Special Ice Hat - Special Hat Ice Armor - Special Armor Ice Legs - Special Legs Ice boots - Special Boots Ice Shield - Special Shield Ice Wand - Special Wand Ice Axe - Special Axe Ice Club - Special Club Ice Sword - Special Sword Ice Backpack - Special Backpack Spells Utani Vip Hur - Todas Vocação Exevo Gran Trap - Todas Vocação Exevo Mas Dead - Druid e Sorcerer (Mages) Exevo Song Pally - Paladin Exevo Bolt Hur - Paladin Exori Mas Gran - Knight SS's Templo Hero Ice Full Map Trainers Em Cima Do Templo Leia Acc God: GOD/GOD Dowload : 4Shared Scan : Viros Total Deu muitos Viros Mais Estou sendo Honesto e colocando aqui ! Creditos 60% SubWar - Pelo Ot 40% Eu - Por mudar os Intens e Novo Map Gosto ? Aprovo ? Ajudo ? REP + Meus Trabalhos : Quest Simples Cave Simples
    1 ponto
  11. Olá Galera Vou Mostra Umas Fotos Do Projeto Que Estou Com Mais De Meses Fazendo *-*, : Curtiram ? E Essa: Mais Uma: Imagem Do Cliente: NOVOS ITENS ADICIONADOS: Se Quizerem Ver O Changer Log Que Tou Fazendo Olha Spoieller Ae: Comentem Mapa Sendo Criado Do 0 (ZERO) Irei Mostra Todas As Aeras Que Ficarem Prontas, Aqui No Topico. Se Eu Nao Posta O Maper Postará. Creditos: @SmiX @Slice @cacaiu De Todos eu Peguei Um Pouco.. Vllw
    1 ponto
  12. vinny160600

    [Encerrado] Duvida A Criar Meu Ot

    via radio só com hamachi
    1 ponto
  13. Yan Oliveira

    Introdução A Lua

    Agora sim Skyligh, Tópico organizado, com conteudo, basico mas está bom seu tutorial, Rep+ e Aprovado.
    1 ponto
  14. VictorFT

    Tibia Melhorando Ou Piorando?

    Tibia Melhorando ou Piorando? Olá pessoal como todos ,sabem irá ter este Uptade de Inverno no famoso jogo Tibia.Então oque eu estava aqui vendo esses novos Uptades, acabei pensando nossa , algumas coisas ficaram interessante , mas outras não são Frescura? Como sabemos o Tibia teve uma revolução imensa,sabemos que o jogo não tem o melhor gráfico mais isso deixa até que melhor a jogabilidade ,não repetitivo como os outros jogos , como : Grand Fantasia, Perfect World e etc.O Tibia é um jogo bem diferente , na minha opinião acho que é bem elaborado só o gráfico que não foi dos melhores , mas está bueno assim. Agora gente o Tibia está piorando?Ou ele está melhorando?Frescura em Venore?Oque mais irão mudar? Tibia é um jogo muito bacana, mas está perdendo seu Rpg aos poucos deixando para trás. Criação dessas novas Sprites , ficaram bacanas mas fico com muita frescura. Venore Ficará com um Uptade neste 'Inverno', na minha opinião destruíram Venore, tenho uns amigos que jogam faz muito tempo, sabemos que deve ser reformulada.Mas pra que mudar tanto? Então galera não estou criticando esse é o meu Ponto de Vista, o seu pode ser diferente. Venore Mudanças A cidade de Venore será reformada. O pântano à sudeste de Venore será reformado. Diminuição do level mínimo de 10 para 8 para as magias Wound Cleansing e Light Healing. Revisão de minas de kazordoon além de algumas sofrerem uma expansão, incluindo a mina interna, além de novos NPCs encontrandos dentro da cidade e na mina à oeste. Novo Tapete em Kazordoon. Ampliação do sistema de transporte por vagões na cidade de Kazordoon. (Leia aqui) Dragon Lair de Venore totalmente aberta, sem a necessidade de usar o antigo caminho. A fórmula de velocidade dos personagens sofreu alterações. Personagens abaixo do level 175 irão notar um aumento em sua velocidade normal, enquanto personagens maiores que level 175 irão notar uma diminuição (em relação a sua velocidade atual, ou seja, eles ganharão menos velocidade em níveis mais elevados). Personagens abaixo de 150 hp terão uma taxa bem mais rápida regeneração. Monstros não podem mais atingir uns aos outros com magias ofensivas e não podem afetar os jogadores com magias de suporte. Algumas excepções foram feitas para assegurar que quests que precisam deste sistema ainda possam ser concluídas. Diversas caves foram ampliadas e a quantidade de criaturas foram aumentadas. Novas Magias Novas Criaturas Novos itens Novos Locais Marshland Soggy Caves Novos Outfits e Nova Montaria Demon Outfits Fotos Conclusão Na minha opinião achei bem diferente o estilo do tibia está com mais 'charme' esta bem legal até , mas eai ele está piorando ou melhorando? Inovando é claro mas está legal ou ruim? Eu acho que está balanceado perdendo o RPG e você? Pense nisso...
    1 ponto
  15. Vai em data /movements/scripts , duplica um arquivo e nomeia para "nomedoitem" sem aspas nele coole: function onEquip(cid, item, slot) local outfit = {lookType = 4} -- looktype doSetCreatureOutfit(cid, outfit, -1) doSendMagicEffect(getPlayerPosition(cid),67) -- effect return TRUE end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_OUTFIT) doSendMagicEffect(getPlayerPosition(cid),67) -- effect return TRUE end Agora em movements.xml cole a tag: <movevent type="Equip" itemid="iddoitem" slot="slotdoitem" event="script" value="nomedoitem.lua"/> <movevent type="DeEquip" itemid="iddoitem" slot="slotdoitem" event="script" value="nomedoitem.lua"/> slots validos: head armor legs hand shield ring necklace feet pickupable
    1 ponto
  16. 1 ponto
  17. Vou dar um exemplo botando uma Crystal Arrow (Vip) <item id="2352" article="a" name="NOME DA ARROW"> <attribute key="weight" value="200" /> <attribute key="attack" value="VALOR DO ATAQUE" /> <attribute key="HitChance" value="100"/> <attribute key="weaponType" value="distance" /> <attribute key="shootType" value="shiverarrow" /> <attribute key="range" value="10" /> <attribute key="breakChance" value="0" /> <attribute key="ammoAction" value="moveback" /> </item> Configurações: Name: Nome Da Arrow Weight: Peso da Arrow Attack: O Ataque da Arrow HitChance: Quanto de chance ela tem de acertar ShooType: Como ela ficaria ao atirar por exemplo : estilo infernal bolt, e blablablababla O Resto não Mude É mais o menos assim vai vendo isso +/- e vai fazendo com outros itens ,mas com a Wand é diferente. Não sou scripter ... Agora a Wand Estilo Holy [/size] [size=4]<item id="Id da wand desejada" article="a" name="Nome Da Wand">[/size] [size=4] <attribute key="weight" value="3800" />[/size] [size=4] <attribute key="shootType" value="holy" />[/size] [size=4] <attribute key="range" value="4" />[/size] [size=4] <attribute key="weaponType" value="wand" />[/size] [size=4] <attribute key="magiclevelpoints" value="DEPENDE SE VOCÊ QUISER" />[/size] [size=4]</item>[/size] [size=4] Configurações: Item Id: O Id da wand desejada Name: Nome da Wand Weight: Quanto Irá Pesar (Recomendod Deixar como está) ShootType: Como Você pediu está Holy Range: Não Mude WeaponType:Não Mude Magiclevelpoints: O Player Ganhara X Magic Level quando botar a Wand Na mão caso não queira que ganhe magic level o script ficaria assim: Agora vá em Weapons e abra Weapons.xml [/size] [size=4] <wand id="ID" level="7" mana="2" min="8" max="18" type="holy" event="function" value="default"> <!-- Nome da Wand -->[/size] [size=4] <vocation id="1"/>[/size] [size=4] <vocation id="2"/>[/size] [size=4]</wand>[/size] [size=4] Configurações: Wand Id: Id da wand que vocês botou no Items.xml <vocation id="1'/> ou <vocation id="2'/> Vocation 1 é Sorcerer e Vocation 2 é Druid
    1 ponto
  18. Slicer

    [Encerrado] Fly (Urgente)

    eh q o certo seria em pedidos e duvidas de servidores derivados... se tas usando as versoes mais novas, 1.7 ou 2.7, eh soh ir em lib/configuration.lua e colocar o scyther na tabela flys... e depois mais em baixo, por na tabela specialabilities tb.. ["fly"] = {"Xatu", "Heracross", "Farfetch'd", "Shiny Farfetch'd", "Noctowl", "Dragonair", "Shiny Dragonair", "Porygon", "Aerodactyl", "Dragonite", "Charizard", "Pidgeot", "Fearow", "Zapdos", "Moltres", "Articuno", "Mew", "Mewtwo", "Shiny Dragonite", "Shiny Charizard", "Shiny Pidgeot", "Shiny Fearow", "Porygon2", "Skarmory", "Crobat"},
    1 ponto
  19. SkyLigh

    Items Vips (Como Criar?)

    Entao pegue um item que venda em npc e o edite um npc de itens vip
    1 ponto
  20. brun123

    Script Do Jhon992

    essa script não tem nada de errado e é até meio difícil fazer o server dar crash fazendo apenas modificações em lua... o que faz o servidor dar crash é alguma modificação mal feita no código fonte ou algum código que foi mal programado (bugs nas sources), um exemplo disso é aquele bug nas houses que faz o servidor cair, que inclusive é usado de forma abusiva por players... eu testei aqui e funcionou normalmente, vê se existe algum evento onStatsChange no player
    1 ponto
  21. Aerdor

    [8.54] Pokétibia World Server

    O lvl q o pokémon evolui não é fixo, ele PODE evoluir a partir de um determinado level. E outra, o ip changer não funciona no cliente do pokétibia. Você precisa trocar o ip do cliente com o hex editor e dps passar o cliente editado pro seu amigo. Segue o tutorial abaixo: http://xprojectservers.blogspot.com.br/2012/11/tutorial-mudar-ip-com-hex-editor.html'>http://xprojectservers.blogspot.com.br/2012/11/tutorial-mudar-ip-com-hex-editor.html @josegremista mano,ainda n tive tempo pra dar uma olhada no q vc pediu, mas assim q der eu vejo. @Furyox mano, n tem como eu fazer uma versão sem lvl pq to atolado de coisa pra fazer. To com tres projetos, dos quais dois são de tibia derivado. A versão desse server com vários sistemas q eu fiz, a versão 2.0 (pokétibia world) ta pra sair, só deixei o server com um amigo pra ele finalizar o mapa pra mim enquanto eu cuido dos otros projetos, sozinho, pra variar. No site abaixo tem os meus projetos: http://xprojectservers.blogspot.com.br
    1 ponto
  22. eh mais facil usar um serv mas novo e ir em world/spawn.xml e tirar o 's' dos pokes nos resps ;/
    1 ponto
  23. masdead

    [Mapping] Mostre suas Idéias

    corredeira e duas paredes Créditos: Eu não sei de quem é corredeira e a primeira parede porisso vou deixar sem (se souberem me avisem para que eu possa por) A Ultima parede é ideia do eisernefestung
    1 ponto
  24. mascumbado

    [GESIOR] VictorWEBMaster 2019v

    Nuss que massa, teu site é mto foda mesmo kra, está de parabéns, tirando lá o erro que tem mas é bem simples de vender item vip na parte vip no shop, ta show de bola, parabéns pelo trabalho REP + Ae brother, eu arrumei lá o erro que vc n conseguiu arrumar dos items vip. Se quiser ta ai. <?PHP if($config['site']['shop_system'] == 1) { if($logged) $user_premium_points = $account_logged->getCustomField('premium_points'); else $user_premium_points = 'Login first'; function getItemByID($id) { $id = (int) $id; $SQL = $GLOBALS['SQL']; $data = $SQL->query('SELECT * FROM '.$SQL->tableName('z_shop_offer').' WHERE '.$SQL->fieldName('id').' = '.$SQL->quote($id).';')->fetch(); if ($data['offer_type'] == 'pacc') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['days'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'item') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['item_id'] = $data['itemid1']; $offer['item_count'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'vipdays') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['days'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'itemvip') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['item_id'] = $data['itemid1']; $offer['item_count'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'container') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['container_id'] = $data['itemid2']; $offer['container_count'] = $data['count2']; $offer['item_id'] = $data['itemid1']; $offer['item_count'] = $data['count1']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'unban') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'redskull') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } elseif ($data['offer_type'] == 'itemlogout') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['pid'] = $data['pid']; $offer['count1'] = $data['count1']; $offer['item_id'] = $data['itemid1']; $offer['free_cap'] = $data['free_cap']; } elseif ($data['offer_type'] == 'changename') { $offer['id'] = $data['id']; $offer['type'] = $data['offer_type']; $offer['points'] = $data['points']; $offer['description'] = $data['offer_description']; $offer['name'] = $data['offer_name']; } return $offer; } function getOfferArray() { $offer_list = $GLOBALS['SQL']->query('SELECT * FROM '.$GLOBALS['SQL']->tableName('z_shop_offer').';'); $i_pacc = 0; $i_item = 0; $i_vipdays = 0; $i_itemvip = 0; $i_container = 0; $i_unban = 0; $i_redskull = 0; $i_itemlogout = 0; $i_changename = 0; while($data = $offer_list->fetch()) { if ($data['offer_type'] == 'pacc') { $offer_array['pacc'][$i_pacc]['id'] = $data['id']; $offer_array['pacc'][$i_pacc]['days'] = $data['count1']; $offer_array['pacc'][$i_pacc]['points'] = $data['points']; $offer_array['pacc'][$i_pacc]['description'] = $data['offer_description']; $offer_array['pacc'][$i_pacc]['name'] = $data['offer_name']; $i_pacc++; } elseif ($data['offer_type'] == 'item') { $offer_array['item'][$i_item]['id'] = $data['id']; $offer_array['item'][$i_item]['item_id'] = $data['itemid1']; $offer_array['item'][$i_item]['item_count'] = $data['count1']; $offer_array['item'][$i_item]['points'] = $data['points']; $offer_array['item'][$i_item]['description'] = $data['offer_description']; $offer_array['item'][$i_item]['name'] = $data['offer_name']; $i_item++; } elseif ($data['offer_type'] == 'vipdays') { $offer_array['vipdays'][$i_vipdays]['id'] = $data['id']; $offer_array['vipdays'][$i_vipdays]['days'] = $data['count1']; $offer_array['vipdays'][$i_vipdays]['points'] = $data['points']; $offer_array['vipdays'][$i_vipdays]['description'] = $data['offer_description']; $offer_array['vipdays'][$i_vipdays]['name'] = $data['offer_name']; $i_vipdays++; } elseif ($data['offer_type'] == 'itemvip') { $offer_array['itemvip'][$i_itemvip]['id'] = $data['id']; $offer_array['itemvip'][$i_itemvip]['item_id'] = $data['itemid1']; $offer_array['itemvip'][$i_itemvip]['item_count'] = $data['count1']; $offer_array['itemvip'][$i_itemvip]['points'] = $data['points']; $offer_array['itemvip'][$i_itemvip]['description'] = $data['offer_description']; $offer_array['itemvip'][$i_itemvip]['name'] = $data['offer_name']; $i_itemvip++; } elseif ($data['offer_type'] == 'container') { $offer_array['container'][$i_container]['id'] = $data['id']; $offer_array['container'][$i_container]['container_id'] = $data['itemid2']; $offer_array['container'][$i_container]['container_count'] = $data['count2']; $offer_array['container'][$i_container]['item_id'] = $data['itemid1']; $offer_array['container'][$i_container]['item_count'] = $data['count1']; $offer_array['container'][$i_container]['points'] = $data['points']; $offer_array['container'][$i_container]['description'] = $data['offer_description']; $offer_array['container'][$i_container]['name'] = $data['offer_name']; $i_container++; } elseif ($data['offer_type'] == 'unban') { $offer_array['unban'][$i_unban]['id'] = $data['id']; $offer_array['unban'][$i_unban]['points'] = $data['points']; $offer_array['unban'][$i_unban]['description'] = $data['offer_description']; $offer_array['unban'][$i_unban]['name'] = $data['offer_name']; $i_unban++; } elseif ($data['offer_type'] == 'redskull') { $offer_array['redskull'][$i_redskull]['id'] = $data['id']; $offer_array['redskull'][$i_redskull]['points'] = $data['points']; $offer_array['redskull'][$i_redskull]['description'] = $data['offer_description']; $offer_array['redskull'][$i_redskull]['name'] = $data['offer_name']; $i_redskull++; } elseif ($data['offer_type'] == 'itemlogout') { $offer_array['itemlogout'][$i_itemlogout]['id'] = $data['id']; $offer_array['itemlogout'][$i_itemlogout]['points'] = $data['points']; $offer_array['itemlogout'][$i_itemlogout]['description'] = $data['offer_description']; $offer_array['itemlogout'][$i_itemlogout]['name'] = $data['offer_name']; $offer_array['itemlogout'][$i_itemlogout]['count1'] = $data['count1']; $offer_array['itemlogout'][$i_itemlogout]['pid'] = $data['pid']; $offer_array['itemlogout'][$i_itemlogout]['item_id'] = $data['itemid1']; $offer_array['itemlogout'][$i_itemlogout]['free_cap'] = $data['free_cap']; $i_itemlogout++; } elseif ($data['offer_type'] == 'changename') { $offer_array['changename'][$i_changename]['id'] = $data['id']; $offer_array['changename'][$i_changename]['points'] = $data['points']; $offer_array['changename'][$i_changename]['description'] = $data['offer_description']; $offer_array['changename'][$i_changename]['name'] = $data['offer_name']; $i_changename++; } } return $offer_array; } if($action == '') { unset($_SESSION['viewed_confirmation_page']); $main_content .= '<h2><center>Welcome to '.$config['server']['serverName'].' Shop</center></h2>'; $offer_list = getOfferArray(); //show list of vipdays offers if(count($offer_list['vipdays']) > 0) { $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Enhance Account</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; foreach($offer_list['vipdays'] as $vipdays) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center"><img src="images/shop/vip.gif" /></td><td><b>'.$vipdays['name'].'</b> ('.$vipdays['points'].' points)<br />'.$vipdays['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= '<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="'.$vipdays['id'].'"><input type="submit" value="Comprar" /></form>'; $main_content .= '</td></tr>'; } $main_content .= '</tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br />';} //show list of itemsvip offers if(count($offer_list['itemvip']) > 0) { $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Enhance Account</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; foreach($offer_list['itemvip'] as $itemvip) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center">'; if(file_exists('images/items/'.$itemvip['item_id'].'.gif')) { $main_content .= '<br /><img src="images/items/'.$itemvip['item_id'].'.gif" height="32" width="32"><br /><small><b>'.$itemvip['name'].'</b></small><br /> '; } else { $main_content .= '<br /> <img src="images/monsters/nophoto.png" height="32" width="32"><br /><small><b>'.$itemvip['name'].'</b></small>'; } $main_content .='</td><td><b>'.$itemvip['name'].'</b> ('.$itemvip['points'].' points)<br />'.$itemvip['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= '<form action="index.php?subtopic=shopsystem&action=select_player" method=POST> <input type="hidden" name="buy_id" value="'.$itemvip['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>'; } $main_content .= '</tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br />';} //show list of items offers if(count($offer_list['item']) > 0 or count($offer_list['container']) > 0 or count($offer_list['itemlogout']) > 0) $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Items</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; if(count($offer_list['item']) > 0) { foreach($offer_list['item'] as $item) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= ' <tr bgcolor="'.$config['site']['lightborder'].'"> <td valign="middle" align="center">'; if(file_exists('images/items/'.$item['item_id'].'.gif')) { $main_content .= '<br /><img src="images/items/'.$item['item_id'].'.gif" height="32" width="32"><br /><small><b>'.$item['name'].'</b></small><br /> '; } else { $main_content .= '<br /> <img src="images/monsters/nophoto.png" height="32" width="32"><br /><small><b>'.$item['name'].'</b></small>'; } $main_content .='</td> <td>'.$item['description'].'<br /><small><b>('.$item['points'].''; if ($item['points'] == 0) $main_content .=' <o>no cost</o>'; if ($item['points'] >= 2) $main_content .=' points'; else $main_content .=' point'; $main_content .=')</b></small></td> <td valign="middle" align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$item['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>'; } $main_content .= '</tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br />'; } //show list of containers offers if(count($offer_list['container']) > 0) { $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Containers Of Items</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; foreach($offer_list['container'] as $container) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center">'; if(file_exists('images/items/'.$container['item_id'].'.gif')) { $main_content .= '<img src="images/items/'.$container['item_id'].'.gif" height="32" width="32">'; } else { $main_content .= '<img src="images/monsters/nophoto.png" height="32" width="32">'; } $main_content .='</td><td><b>'.$container['name'].'</b> ('.$container['points'].' points)<br />'.$container['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$container['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>'; } $main_content .= '</tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br />';} if(count($offer_list['itemlogout']) > 0) { $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Items Logout</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; foreach($offer_list['itemlogout'] as $itemlogout) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center"><img src="images/items/'.$itemlogout['id'].'.gif"></td><td><b>'.$itemlogout['name'].'</b> ('.$itemlogout['points'].' points)<br />'.$itemlogout['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method=POST> <input type="hidden" name="buy_id" value="'.$itemlogout['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>'; } $main_content .= '</tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div><br />';} $main_content .= ' <div class="TableContainer"> <div class="CaptionContainer"> <div class="CaptionInnerContainer"> <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <div class="Text">Items & Additional</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);"></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"></span> </div> </div> <table class="Table5" cellpadding="0" cellspacing="0"> <tbody> <tr> <td> <div class="InnerTableContainer"> <table style="width:100%;"> <tbody> <tr> <td> <div class="TableShadowContainerRightTop"> <div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);"></div> </div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);"> <div class="TableContentContainer"> <table class="TableContent" style="border:1px solid #faf0d7;" width="100%"> <tbody> <tr bgcolor="#D4C0A1"> <td valign="middle" align="center"><b>Product</b></td> <td valign="middle" width="60%"><b>Description</b></td> <td valign="middle"> </td> </tr>'; //Pacc if(count($offer_list['changename']) > 0 or count($offer_list['pacc']) > 0 or count($offer_list['redskull']) > 0 or count($offer_list['unban']) > 0) if(count($offer_list['pacc']) > 0) foreach($offer_list['pacc'] as $pacc) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center">'.$pacc['days'].'</td><td><b>'.$pacc['name'].'</b> ('.$pacc['points'].' points)<br />'.$pacc['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$pacc['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>';} //Change Name if(count($offer_list['changename']) > 0) foreach($offer_list['changename'] as $changename) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center"><img src="images/shop/name.gif" /></td><td><b>'.$changename['name'].'</b> ('.$changename['points'].' points)<br />'.$changename['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$changename['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>';} //Remove Red Skull if(count($offer_list['redskull']) > 0) foreach($offer_list['redskull'] as $redskull) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center"><img src="images/shop/skull.gif" /></td><td><b>'.$redskull['name'].'</b> ('.$redskull['points'].' points)<br />'.$redskull['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$redskull['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>';} //Unban if(count($offer_list['unban']) > 0) foreach($offer_list['unban'] as $unban){ if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td valign="middle" align="center"><br /><img src="images/shop/ban.gif" /></td><td><b>'.$unban['name'].'</b> ('.$unban['points'].' points)<br />'.$unban['description'].'</td><td align="center">'; if(!$logged) $main_content .= '<input type="button" value="Login First" disabled="disabled" />'; else $main_content .= ' <form action="index.php?subtopic=shopsystem&action=select_player" method="POST"> <input type="hidden" name="buy_id" value="'.$unban['id'].'"> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <input class="ButtonText" name="Continue" alt="Continue" src="'.$layout_name.'/images/buttons/_sbutton_purchase.gif" type="image"> </div> </div> </td> </tr> </tbody> </table> </form>'; $main_content .= '</td></tr>';} $main_content .= ' </tbody> </table> </div> </div> <div class="TableShadowContainer"> <div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);"> <div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);"></div> <div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);"></div> </div> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div>';} elseif($action == 'select_player') { unset($_SESSION['viewed_confirmation_page']); if(!$logged) { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Shoping Error</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <td> <TABLE BORDER="0" CELLSPACING="1" cellpadding="4"> <TR> <TD>Please login first.</TD> </TR> </TABLE> </td> </tr> </TABLE>';} else { $buy_id = (int) $_REQUEST['buy_id']; if(empty($buy_id)) { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Shoping Error</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <td> <TABLE BORDER="0" CELLSPACING="1" cellpadding="4"> <TR> <TD>Please <a href="index.php?subtopic=shopsystem">select item</a> first.</TD> </TR> </TABLE> </td> </tr> </TABLE>';} else { $buy_offer = getItemByID($buy_id); if(isset($buy_offer['id'])) { //item exist in database if($buy_offer['type'] != 'changename') { if($user_premium_points >= $buy_offer['points']) { $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td class="white" colspan="2"><b>Item Informations</b></td> </tr> <tr bgcolor="#D4C0A1"><td width="100"><b>Image:</b></td><td width="550">'; if(file_exists('images/items/'.$buy_offer['item_id'].'.gif')) { $main_content .= '<img src="images/items/'.$buy_offer['item_id'].'.gif" height="32" width="32">'; } else { $main_content .= '<img src="images/monsters/nophoto.png" height="32" width="32">'; } $main_content .='</td></tr> <tr bgcolor="#F1E0C6"><td width="100"><b>Name:</b></td><td width="550">'.$buy_offer['name'].'</td></tr> <tr bgcolor="#D4C0A1"><td width="100"><b>Description:</b></td><td width="550">'.$buy_offer['description'].'</td></tr> <tr bgcolor="#F1E0C6"><td width="100"><b>Cost:</b></td><td width="550">'.$buy_offer['points'].' points</td></tr> </table><br /> <form action="index.php?subtopic=shopsystem&action=confirm_transaction" method=POST> <input type="hidden" name="buy_id" value="'.$buy_id.'"> <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td class="white" colspan="2"><b>Select a Player</b></td> </tr> <tr bgcolor="#D4C0A1"><td width="110"><b>Name:</b> <select name="buy_name" style="padding: 5px;">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { $players_from_logged_acc->orderBy('name'); foreach($players_from_logged_acc as $player) $main_content .= '<option>'.$player->getName().'</option>'; } else { $main_content .= 'You don\'t have any character on your account.'; } $main_content .= '</select> <input type="submit" value="Purschase"><br /><small>Character <b> your account </b> you will receive.</small></td></tr></table> </form> <form action="index.php?subtopic=shopsystem&action=confirm_transaction" method="POST"><input type="hidden" name="buy_id" value="'.$buy_id.'"> <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="'.$config['site']['vdarkborder'].'"> <td class="white" colspan="2"><b>Send gift</b></td> </tr> <tr bgcolor="#D4C0A1"><td width="110"><b>To player:</b> <input type="text" name="buy_name" autocomplete="off" placeholder="Character to recive '.$buy_offer['name'].'" size="25"> <input type="submit" value="Purschase to friend"><br /><small>Put in the field above the name of the character that will receive the item.</small></td></tr> </table><br /></form>'; } else { $main_content .= ' <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS="white"><b>Erro</b></td> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'><TD>Para comprar <b>'.$buy_offer['name'].'</b> voce precisa de <b>'.$buy_offer['points'].' premium points</b> disponíveis.<br />Atualmente você possui <b>'.$user_premium_points.'</b> premium points.</TD> </TR> </TABLE> <br /> <table width="100%"> <tbody> <tr align="center"> <td> <table border="0" cellpadding="0" cellspacing="0"> <tbody><tr><td style="border: 0px none;"> <a href="javascript:void();" onclick=location.href="index.php?subtopic=donate"> <div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif);"></div> <div class="ButtonText" style="background-image:url('.$layout_name.'/images/buttons/_sbutton_buypoints.png);"></div> </div> </div> </a> </td> </tr> <tr> </tr> </tbody> </table> </td> <td> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="border: 0px none;"> <a href="javascript:void();" onclick=location.href="index.php?subtopic=shopsystem"><div class="BigButton" style="background-image: url('.$layout_name.'/images/buttons/sbutton.gif);"> <div onmouseover="MouseOverBigButton(this);" onmouseout="MouseOutBigButton(this);"><div class="BigButtonOver" style="background-image: url('.$layout_name.'/images/buttons/sbutton_over.gif); visibility: hidden;"></div> <input class="ButtonText" name="Back" alt="Back" src="'.$layout_name.'/images/vips/_sbutton_back.gif" type="image"> </table> </td> </tr> </tbody> </table> <p> </p>';} } else { $main_content .= '<form action="index.php?subtopic=shopsystem&action=confirm_transaction" method=POST><input type="hidden" name="buy_id" value="'.$buy_id.'"> <table border="0" cellpadding="4" cellspacing="1" width="100%"><tr bgcolor="#505050"><td colspan="2"><b class="white">Change Name</b></td></tr> <tr bgcolor="#D4C0A1"><td width="110"><b>Name:</b></td><td width="550"><select name="buy_name">'; $players_from_logged_acc = $account_logged->getPlayersList(); if(count($players_from_logged_acc) > 0) { $players_from_logged_acc->orderBy('name'); foreach($players_from_logged_acc as $player) { $main_content .= '<option>'.$player->getName().'</option>';} } else { $main_content .= 'You don\'t have any character on your account.';} $main_content .= '</select></td></tr><tr bgcolor="#F1E0C6"><td width="110"><b>New name:</b></td><td width="550"><input type="text" name="buy_from"> <input type="submit" value="Change Name"></td></tr></table><br /></form>';} } else { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Error</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td>Offer with ID <b>'.$buy_id.'</b> doesn\'t exist. Please <a href="index.php?subtopic=shopsystem">select item</a> again.</td> </tr> </TABLE>';} }}} elseif($action == 'confirm_transaction') { if(!$logged) { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Shoping Error</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <td> <TABLE BORDER="0" CELLSPACING="1" cellpadding="4"> <TR> <TD>Please login first.</TD> </TR> </TABLE> </td> </tr> </TABLE>';} else { $buy_id = (int) $_POST['buy_id']; $buy_name = stripslashes(urldecode($_POST['buy_name'])); $buy_from = stripslashes(urldecode($_POST['buy_from'])); if(empty($buy_id)) { $main_content .= 'Please <a href="index.php?subtopic=shopsystem">select item</a> first.'; } else { if($buy_offer['type'] == 'changename'){ if(!check_name_new_char($buy_from)) { $main_content .= 'Invalid name format of new name.'; }} else { $buy_offer = getItemByID($buy_id); $check_name_in_database = $ots->createObject('Player'); $check_name_in_database->find($buy_from); if($buy_offer['type'] == 'changename'){ if(!$check_name_in_database->isLoaded()) { }} if(isset($buy_offer['id'])) { //item exist in database if($user_premium_points >= $buy_offer['points']) { if(check_name($buy_name)) { $buy_player = new OTS_Player(); $buy_player->find($buy_name); if($buy_player->isLoaded()) { $buy_player_account = $buy_player->getAccount(); if($_SESSION['viewed_confirmation_page'] == 'yes' && $_POST['buy_confirmed'] == 'yes') { if($buy_offer['type'] == 'pacc') { $player_premdays = $buy_player_account->getCustomField('premdays'); $player_lastlogin = $buy_player_account->getCustomField('lastday'); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');'; $SQL->query($save_transaction); $buy_player_account->setCustomField('premdays', $player_premdays+$buy_offer['days']); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>VIP account added!</h2><b>'.$buy_offer['days'].' days</b> of VIP account added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>'; } elseif($buy_offer['type'] == 'unban') { $my_acc_id = $account_logged->getCustomField('id'); $datadata = $SQL->query('SELECT * FROM '.$SQL->tableName('bans').' WHERE value = '.$my_acc_id.';')->fetch(); if($datadata['value'] == $my_acc_id) { if($SQL->query('DELETE FROM bans WHERE value= '.$my_acc_id.' LIMIT 1;')) { } else { $SQL->query('DELETE FROM bans WHERE account= '.$my_acc_id.' LIMIT 1;'); } $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>Ban Deleted!</h2><b>Your account has been unbanned for '.$buy_offer['points'].' premium points</b> from your account. <br>Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>'; } else { $main_content .= '<center><b>You don\'t have any bans in your account!</b><br><br><a href="index.php?subtopic=shopsystem">Go back</a><br>'; } } //////////////////////////////// elseif($buy_offer['type'] == 'itemlogout') { $my_acc_id = $buy_player->getCustomField('id'); $playerinfo = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE id = '.$my_acc_id.';')->fetch(); $playerslot = $SQL->query('SELECT * FROM '.$SQL->tableName('player_items').' WHERE player_id = '.$my_acc_id.';')->fetch(); if ($playerinfo['online'] == '0') { if ($playerslot['pid'] != '10') { if ($datadata['cap'] >= $SQL->quote($buy_offer['free_cap'])) { $SQL->query('INSERT INTO player_items (player_id, pid, itemtype, count) VALUES ('.$my_acc_id.', '.$SQL->quote($buy_offer['pid']).', '.$SQL->quote($buy_offer['item_id']).', '.$SQL->quote($buy_offer['count1']).');'); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<h2>Item received to player: '.$buy_player->getName().'!</h2><br />Now you have <b>'.$user_premium_points.' premium points</b>. <br /><a href="index.php?subtopic=shopsystem">Go to Shop Site</a>'; } else { $main_content .= '<b>You need '.$SQL->quote($buy_offer['free_cap']).' or more of cap!</b><br /><a href="index.php?subtopic=shopsystem">Go back</a>'; }} else { $main_content .= '<b>Please leave the arrow slot in blank to receive item!</b><br /><a href="index.php?subtopic=shopsystem">Go back</a>'; }} else { $main_content .= '<b>You need to be offline!</b><br /><a href="index.php?subtopic=shopsystem">Go back</a>'; } } //////////////////////////////// elseif($buy_offer['type'] == 'changename') { $my_acc_id = $buy_player->getCustomField('id'); $playerinfo = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE '.$SQL->fieldName('id').' = '.$my_acc_id.';')->fetch(); $checkname = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE '.$SQL->fieldName('name').' = '. $SQL->quote($buy_from) .';')->fetch(); if($playerinfo['online'] == '0') { if($checkname == false) { $SQL->query('UPDATE `players` SET `name` = '. $SQL->quote($buy_from) .' WHERE `id` = '. $my_acc_id.' ;'); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>Your name has been changed to '.$buy_from.'.</h2><br /><b>You have '.$user_premium_points.' premium points left</b>. <br /><br /><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br />'; } else { $main_content .= '<center><h2>Sorry, the name "<i>'.$buy_from.'</i>" does already exist.<br />Please select another name.</h2><br />'; }} else { $main_content .= '<center><h2>'.$buy_name.' has to be offline to complete transaction.</h2><br /><br /><a href="index.php?subtopic=shopsystem">Go back</a><br />'; }} //////////////////////////////// elseif($buy_offer['type'] == 'redskull') { $my_acc_id = $buy_player->getCustomField('id'); $playerinfo = $SQL->query('SELECT * FROM '.$SQL->tableName('players').' WHERE '.$SQL->fieldName('id').' = '.$my_acc_id.';')->fetch(); if($playerinfo['skull'] == '4' AND $playerinfo['online'] >= '0' AND $playerinfo['skulltime'] > '0') { $SQL->query('UPDATE killers SET unjustified=0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id='. $my_acc_id .');'); $SQL->query('UPDATE players SET skulltime=0, skull=0 WHERE id='. $my_acc_id .';'); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>RedSkull Removed!</h2><br /><b>Your redskull has been removed from the player '.$buy_player->getName().'.</b> <br />Now you have<b> '.$user_premium_points.' premium points</b>.<br /><br /><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br />'; } else { $main_content .= '<center><b>'.$buy_player->getName().' has to be offline or have redskull to complete transaction!.</b><br /><br /><a href="index.php?subtopic=shopsystem">Go back</a><br />'; }} ////////////////////////// elseif($buy_offer['type'] == 'item') { $sql = 'INSERT INTO '.$SQL->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', \'login\', \'give_item\', '.$SQL->quote($buy_offer['item_id']).', '.$SQL->quote($buy_offer['item_count']).', \'\', \'\', \'item\', '.$SQL->quote($buy_offer['name']).', \'\', \'1\');'; $SQL->query($sql); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_item').' (id, to_name, to_account, from_nick, from_account, price, offer_id, trans_state, trans_start, trans_real) VALUES ('.$SQL->lastInsertId().', '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['name']).', \'wait\', '.$SQL->quote(time()).', \'0\');'; $SQL->query($save_transaction); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS="white"><b>Item added successfully !</b></td> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <TD> <b>'.$buy_offer['name'].'</b> added to player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br /> Now you have <b>'.$user_premium_points.' premium points</b>. </TD> </TR> </TABLE> <br /><a href="index.php?subtopic=shopsystem">MAIN SHOP SITE</a><br /><br />';} if($buy_offer['type'] == 'vipdays') { $player_vip_time = $buy_player_account->getCustomField('vip_time'); $player_lastlogin = $buy_player_account->getCustomField('lastday'); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');'; $SQL->query($save_transaction); if($player_vip_time > 0) $buy_player_account->setCustomField('vip_time', $player_vip_time + $buy_offer['days'] * 86400); else $buy_player_account->setCustomField('vip_time', time() + $buy_offer['days'] * 86400); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; if ($player_vip_days >= 1) { } $main_content .= '<center><h2>VIP Days added!</h2><b>'.$buy_offer['days'].' days</b> of VIP days added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br /><br /><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br />';} elseif($buy_offer['type'] == 'itemvip') { $sql = 'INSERT INTO '.$SQL->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', \'login\', \'give_item\', '.$SQL->quote($buy_offer['item_id']).', '.$SQL->quote($buy_offer['megaitems_count']).', \'\', \'\', \'megaitems\', '.$SQL->quote($buy_offer['name']).', \'\', \'1\');'; $SQL->query($sql); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_item').' (id, to_name, to_account, from_nick, from_account, price, offer_id, trans_state, trans_start, trans_real) VALUES ('.$SQL->lastInsertId().', '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['name']).', \'wait\', '.$SQL->quote(time()).', \'0\');'; $SQL->query($save_transaction); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>Mega Item added!</h2><b>'.$buy_offer['name'].'</b> added to player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br>Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">GO TO MAIN SHOP SITE</a><br>'; } elseif($buy_offer['type'] == 'container') { $sql = 'INSERT INTO '.$SQL->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', \'login\', \'give_item\', '.$SQL->quote($buy_offer['item_id']).', '.$SQL->quote($buy_offer['item_count']).', '.$SQL->quote($buy_offer['container_id']).', '.$SQL->quote($buy_offer['container_count']).', \'container\', '.$SQL->quote($buy_offer['name']).', \'\', \'1\');'; $SQL->query($sql); $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_item').' (id, to_name, to_account, from_nick, from_account, price, offer_id, trans_state, trans_start, trans_real) VALUES ('.$SQL->lastInsertId().', '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).', '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['name']).', \'wait\', '.$SQL->quote(time()).', \'0\');'; $SQL->query($save_transaction); $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']); $user_premium_points = $user_premium_points - $buy_offer['points']; $main_content .= '<center><h2>Container of items added!</h2><b>'.$buy_offer['name'].'</b> added to player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br /><br /><a href="index.php?subtopic=shopsystem">GO TO MAIN SHOP SITE</a><br />'; }} else { if($buy_offer['type'] != 'changename') { $set_session = TRUE; $_SESSION['viewed_confirmation_page'] = 'yes'; $main_content .= ' <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="#505050"><td colspan="3"><font color="white"><b>Confirm transaction</b></font></td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"><td><b>Image:</b></td><td width="550" colspan="2"><img src="images/items/'.$buy_offer['item_id'].'.gif" align="absmiddle"/> <small><b>'.$buy_offer['name'].'</b></small></td></tr> <tr bgcolor="'.$config['site']['lightborder'].'"><td><b>Description:</b></td><td width="550" colspan="2">'.$buy_offer['description'].'</td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"><td><b>Cost:</b></td><td width="550" colspan="2"><b>'.$buy_offer['points'].' premium points</b> from your account</td></tr> <tr bgcolor="'.$config['site']['lightborder'].'"><td><b>For Player:</b></td><td width="550" colspan="2">'.$buy_player->getName().' <small>[<a href="index.php?subtopic=characters&name='.$buy_player->getName().'" target="_blank">View Character</a>]</small></td></tr> <tr bgcolor="'.$config['site']['darkborder'].'"><td><b>Confirm Transaction ?</b></td> <td><form action="index.php?subtopic=shopsystem&action=confirm_transaction" method="POST"><input type="hidden" name="buy_confirmed" value="yes"><input type="hidden" name="buy_id" value="'.$buy_id.'"><input type="hidden" name="buy_from" value="'.urlencode($new_name).'"><input type="hidden" name="buy_name" value="'.urlencode($buy_name).'"><input type="submit" value="Accept"></form></td><td><form action="index.php?subtopic=shopsystem" method="POST"><input type="submit" value="Cancel"></form></td></tr> </table><br />'; } else { $set_session = TRUE; $_SESSION['viewed_confirmation_page'] = 'yes'; $main_content .= '<center><h2>Confirm Name Changing</h2> <table border="0" cellpadding="4" cellspacing="1" width="100%"> <tr bgcolor="#505050"><td colspan="3"><font color="white" size="4"><b>Confirm transaction</b></font></td></tr> <tr bgcolor="#D4C0A1"><td width="130"><b>Name:</b></td><td width="550" colspan="2">'.$buy_offer['name'].'</td></tr> <tr bgcolor="#F1E0C6"><td width="130"><b>Description:</b></td><td width="550" colspan="2">'.$buy_offer['description'].'</td></tr> <tr bgcolor="#D4C0A1"><td width="130"><b>Cost:</b></td><td width="550" colspan="2"><b>'.$buy_offer['points'].' premium points</b></td></tr> <tr bgcolor="#F1E0C6"><td width="130"><b>Current Name:</b></td><td width="550" colspan="2"><font color="red">'.$buy_player->getName().'</font></td></tr> <tr bgcolor="#D4C0A1"><td width="130"><b>New Name:</b></td><td width="550" colspan="2"><font color="red">'.$buy_from.'</font></td></tr> <tr bgcolor="#F1E0C6"><td width="130"><b>Change Name?</b></td><td width="275" align="left"> <form action="index.php?subtopic=shopsystem&action=confirm_transaction" method="POST"><input type="hidden" name="buy_confirmed" value="yes"><input type="hidden" name="buy_id" value="'.$buy_id.'"><input type="hidden" name="buy_from" value="'.urlencode($buy_from).'"><input type="hidden" name="buy_name" value="'.urlencode($buy_name).'"><input type="submit" value="Accept"></form></td> <td align="right"><form action="index.php?subtopic=shopsystem" method="POST"><input type="submit" value="Cancel"></form></td></tr> </table>';}}} else { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Error</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td>Player with name <b>'.$buy_name.'</b> doesn\'t exist. Please <a href="index.php?subtopic=shopsystem&action=select_player&buy_id='.$buy_id.'">select other name</a>.</td> </tr> </TABLE>'; } } else { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Shoping Error</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <td> <TABLE BORDER="0" CELLSPACING="1" cellpadding="4"> <TR> <TD>Invalid name format. Please <a href="index.php?subtopic=shopsystem&action=select_player&buy_id='.$buy_id.'">select other name</a>.</TD> </TR> </TABLE> </td> </tr> </TABLE><br />';} } else { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Error</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td>For this item you need <b>'.$buy_offer['points'].'</b> points. You have only <b>'.$user_premium_points.'</b> premium points. Please <a href="index.php?subtopic=shopsystem">select other item</a> or buy premium points.</td> </tr> </TABLE>'; }} else { $main_content .= '<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="5" WIDTH="100%"> <tr BGCOLOR="'.$config['site']['vdarkborder'].'"> <td CLASS="white"><b>Error</b></td> </tr> <tr BGCOLOR='.$config['site']['darkborder'].'> <td>Offer with ID <b>'.$buy_id.'</b> doesn\'t exist. Please <a href="index.php?subtopic=shopsystem">select item</a> again.</td> </tr> </TABLE>'; }}}} if(!$set_session) { unset($_SESSION['viewed_confirmation_page']); }} if(!$logged) $main_content .= '<br /><center><div class="notice"><b>Please login to see how much points you have</b></div></center>'; else if($account_logged->getCustomField("premium_points") <= 0) $main_content .='<br /><center><div class="error">You do not have premium points available.<br /><a href="index.php?subtopic=donate">Buy now Premium Points!</a></div></center>'; else if($account_logged->getCustomField("premium_points") >= 1) $main_content .='<br /><center><div class="success" style="width: 300px;">You have <b>'.$account_logged->getCustomField("premium_points").'</b> premium points available</div></center>'; } else $main_content .= ' <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="4" WIDTH="100%"> <TR BGCOLOR="'.$config['site']['vdarkborder'].'"> <TD CLASS=white><B>Shoping Status</B></TD> </TR> <TR BGCOLOR='.$config['site']['darkborder'].'> <td> <TABLE BORDER="0" CELLSPACING="1" cellpadding="4"> <TR> <TD>Inativamos o Shop para manutenção interna, dentro de poucos minutos voltaremos com nossos sistemas normalizados.<br /><b>Atenciosamente,<br /> Administração</b></TD> </TR> </TABLE> </td> </tr> </TABLE>'; ?>
    1 ponto
  25. @SkyLigh Se não souber o que está fazendo, não tente ajudar. Só de bater o olho da pra ver a bobeira que fez no script. if getPlayerLevel(cid,level) < then 1) A variável "level" não foi declarada 2) Isso ai não existe. O correto seria assim: if getPlayerLevel(cid) < level then
    1 ponto
  26. Slicer

    [Encerrado] Duvida Globalevents

    veio tu quer q apareça um item em uma pos em min a min? se for.. function onThink(interval, lastExecution, thinkInterval) doCreateItem(1111, 1, pos) end <globalevent name="CreateItem" interval="60000" event="script" value="clean.lua"/>
    1 ponto
  27. beto06

    [Show Off] Beto

    CeM #7, (n to participando) http://3.imgland.net/HIDRl%5B.png
    1 ponto
  28. vital900

    Apresentação Geral

    Galera até terça nós refaremos este tópico, colocaremos muita informação nova e mudaremos muitas outras. Um exemplo de informação que neste novo tópico terá é o novo quadro de vocações.
    1 ponto
  29. Postando oque eu consegui fazer: Clica no move, ele solta o move Já é um começo Download CD BAR Zeref.0 Obs: Unico problema, negocio de tradução que não coloquei para outras linguas pq não sei fazer ainda (se quiser ver melhor, da CTRL+T) Obs²: Ideia para aparecer o tempo, seria algo como !barcd1, ai veria o cd numero 1 e colocaria na barra, IDEIA SIMPLES
    1 ponto
  30. Secular

    [Encerrado] Criei O Mapa.. E Agora?

    Bom Amigo, Você Esta Pulando Etapas Então Vou Lhe Ensinar Etapa Por Etapa De Como Resolver Sua Duvida: Quando Você Criou Seu Mapa, Você Salvou-lhe, e Notou que Ao Salvar Há Tres Arquivos: Houses.xml - Seu Mapa - Spawn.xml. Agora é Só Copiar Estes Arquivos e Acessar a Pasta: Seu Serv/Data/World Delete os Arquivos Que La Haviam (São Os Arquivos Do Seu Mapa Que Estava Sendo Utilizado Caso Não Queira Perde-los Copie e Cole Em Alguma Pasta) e Cole Os Do Seu Mapa Que Copiou. Fizemos a Primeira Etapa Agora Voce Entra, Usando o Bloco De Notas, No ARQUIVO NO INICIO DE SUA PASTA DO SEU OT CHAMADO CONFIG, QUE É UM ARQUIVO DENOMINADO "LUA" (CONFIG.LUA) Abra o Arquivo e Configure Assim: accountManager = true namelockManager = false newPlayerChooseVoc = true newPlayerSpawnPosX = 1020 - posição da coordenada X de onde o player ira nascer newPlayerSpawnPosY = 1022 - posição da coordenada Y de onde o player ira nascer newPlayerSpawnPosZ = 7 - posição da coordenada Z de onde o player ira nascer newPlayerTownId = 1 newPlayerLevel = 10 newPlayerMagicLevel = 0 generateAccountNumber = false Veja as Coordenadas do Local que Deseja que ele Nasça Olhando no Seu Mapa. Agora Você Tem Que Mudar a Posição Do Seu Account Manager, Para Isso Veja Esta Video Aula No Meu Tópico Para Usar Um Programa Para Mudar a Posição Do Account Manager: EXPLORANDO SEU SQLITESTUDIO OBS: Se Não Ha o Arquivo Config.lua No Seu OT Ele Não Ira Funcionar... DUVIDAS? RESPONDA OU CITE MEU POST PARA QUE RETORNE EM SEU TOPICO AJUDEI ALGUEM? REP + :XTibia_smile:
    1 ponto
Líderes está configurado para São Paulo/GMT-03:00
×
×
  • Criar Novo...