Tudo que alezzo postou
-
Instalação do Gesior ACC
Eu estou desatualizado sobre Infra, portanto queria saber quais comandos para serem usados na instalação dele, mesmo sendo usado diretamente do git .
-
Instalação do Gesior ACC
.Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Alguém poderia me dar um help para instalar esse sistema no ubuntu 20.04 ? Existe uma compatibilidade entre eles ?
-
Problema em Spell
Fala ai, pessoal. Estou tendo um problema com uma spell na qual havia criado no Spell Creator. Erro: Condition not Found Arquivo: -- SpellCreator generated. -- =============== COMBAT VARS =============== -- Areas/Combat for 0ms local combat0_Brush = createCombatObject() setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatArea(combat0_Brush,createCombatArea({{0, 2, 0}, {1, 1, 1}})) function getDmg_Brush(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat0_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush") local con___combat0_Brush = createConditionObject(0+CONDITION_POISON+CONDITION_FIRE+CONDITION_ENERGY) setCombatCondition(combat0_Brush, con___combat0_Brush) local con_Death__combat0_Brush = createConditionObject(0+CONDITION_HASTE+CONDITION_INFIGHT+CONDITION_REGENERATION+CONDITION_SPELLCOOLDOWN) addDamageCondition(con_Death__combat0_Brush, 3, 1000, -10) setCombatCondition(combat0_Brush, con_Death__combat0_Brush) local dfcombat0_Brush = {CONST_ANI_SUDDENDEATH,1,1,-1,1,0,1}local combat0_Brush_2 = createCombatObject() setCombatParam(combat0_Brush_2, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS) setCombatParam(combat0_Brush_2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatArea(combat0_Brush_2,createCombatArea({{0, 0, 2, 0}, {0, 0, 0, 0}, {1, 1, 1, 1}})) function getDmg_Brush_2(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat0_Brush_2, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_2") local con_Pedra__combat0_Brush_2 = createConditionObject(0+CONDITION_INFIGHT+CONDITION_FOOD+CONDITION_REGENERATION+CONDITION_SOUL) addDamageCondition(con_Pedra__combat0_Brush_2, 3, 1000, -10) setCombatCondition(combat0_Brush_2, con_Pedra__combat0_Brush_2) local dfcombat0_Brush_2 = {CONST_ANI_ARROW,0,2,-1,2,-2,2,1,2} -- Areas/Combat for 100ms local combat1_Brush = createCombatObject() setCombatParam(combat1_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat1_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatArea(combat1_Brush,createCombatArea({{1, 2}})) function getDmg_Brush(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat1_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush") local con___combat1_Brush = createConditionObject(0+CONDITION_POISON+CONDITION_FIRE+CONDITION_ENERGY) setCombatCondition(combat1_Brush, con___combat1_Brush) local con_Death__combat1_Brush = createConditionObject(0+CONDITION_HASTE+CONDITION_INFIGHT+CONDITION_REGENERATION+CONDITION_SPELLCOOLDOWN) addDamageCondition(con_Death__combat1_Brush, 3, 1000, -10) setCombatCondition(combat1_Brush, con_Death__combat1_Brush) local dfcombat1_Brush = {CONST_ANI_SUDDENDEATH,-1,0}local combat1_Brush_2 = createCombatObject() setCombatParam(combat1_Brush_2, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS) setCombatParam(combat1_Brush_2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatArea(combat1_Brush_2,createCombatArea({{1, 0, 0}, {1, 0, 0}, {1, 0, 2}, {1, 0, 0}})) function getDmg_Brush_2(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat1_Brush_2, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_2") local con_Pedra__combat1_Brush_2 = createConditionObject(0+CONDITION_INFIGHT+CONDITION_FOOD+CONDITION_REGENERATION+CONDITION_SOUL) addDamageCondition(con_Pedra__combat1_Brush_2, 3, 1000, -10) setCombatCondition(combat1_Brush_2, con_Pedra__combat1_Brush_2) local dfcombat1_Brush_2 = {CONST_ANI_ARROW,-2,1,-2,0,-2,-1,-2,-2} -- Areas/Combat for 200ms local combat2_Brush_2 = createCombatObject() setCombatParam(combat2_Brush_2, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS) setCombatParam(combat2_Brush_2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatArea(combat2_Brush_2,createCombatArea({{1, 1, 1, 1}, {0, 0, 0, 0}, {0, 2, 0, 0}})) function getDmg_Brush_2(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat2_Brush_2, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_2") local con_Pedra__combat2_Brush_2 = createConditionObject(0+CONDITION_INFIGHT+CONDITION_FOOD+CONDITION_REGENERATION+CONDITION_SOUL) addDamageCondition(con_Pedra__combat2_Brush_2, 3, 1000, -10) setCombatCondition(combat2_Brush_2, con_Pedra__combat2_Brush_2) local dfcombat2_Brush_2 = {CONST_ANI_ARROW,0,-2,-1,-2,1,-2,2,-2}local combat2_Brush = createCombatObject() setCombatParam(combat2_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat2_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatArea(combat2_Brush,createCombatArea({{1, 1, 1}, {0, 2, 0}})) function getDmg_Brush(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat2_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush") local con___combat2_Brush = createConditionObject(0+CONDITION_POISON+CONDITION_FIRE+CONDITION_ENERGY) setCombatCondition(combat2_Brush, con___combat2_Brush) local con_Death__combat2_Brush = createConditionObject(0+CONDITION_HASTE+CONDITION_INFIGHT+CONDITION_REGENERATION+CONDITION_SPELLCOOLDOWN) addDamageCondition(con_Death__combat2_Brush, 3, 1000, -10) setCombatCondition(combat2_Brush, con_Death__combat2_Brush) local dfcombat2_Brush = {CONST_ANI_SUDDENDEATH,1,-1,0,-1,-1,-1} -- Areas/Combat for 300ms local combat3_Brush = createCombatObject() setCombatParam(combat3_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat3_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatArea(combat3_Brush,createCombatArea({{2, 1}})) function getDmg_Brush(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat3_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush") local con___combat3_Brush = createConditionObject(0+CONDITION_POISON+CONDITION_FIRE+CONDITION_ENERGY) setCombatCondition(combat3_Brush, con___combat3_Brush) local con_Death__combat3_Brush = createConditionObject(0+CONDITION_HASTE+CONDITION_INFIGHT+CONDITION_REGENERATION+CONDITION_SPELLCOOLDOWN) addDamageCondition(con_Death__combat3_Brush, 3, 1000, -10) setCombatCondition(combat3_Brush, con_Death__combat3_Brush) local dfcombat3_Brush = {CONST_ANI_SUDDENDEATH,1,0}local combat3_Brush_2 = createCombatObject() setCombatParam(combat3_Brush_2, COMBAT_PARAM_EFFECT, CONST_ME_CRAPS) setCombatParam(combat3_Brush_2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatArea(combat3_Brush_2,createCombatArea({{0, 0, 1}, {2, 0, 1}, {0, 0, 1}, {0, 0, 1}})) function getDmg_Brush_2(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat3_Brush_2, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_2") local con_Pedra__combat3_Brush_2 = createConditionObject(0+CONDITION_INFIGHT+CONDITION_FOOD+CONDITION_REGENERATION+CONDITION_SOUL) addDamageCondition(con_Pedra__combat3_Brush_2, 3, 1000, -10) setCombatCondition(combat3_Brush_2, con_Pedra__combat3_Brush_2) local dfcombat3_Brush_2 = {CONST_ANI_ARROW,2,1,2,0,2,-1,2,2}local combat3_Brush_3 = createCombatObject() setCombatParam(combat3_Brush_3, COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) setCombatParam(combat3_Brush_3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatArea(combat3_Brush_3,createCombatArea({{1, 1, 1, 1, 1, 1, 1}, {1, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 2, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 1}, {1, 1, 1, 1, 1, 1, 1}})) function getDmg_Brush_3(cid, level, maglevel) return (1000)*-1,(2000)*-1 end setCombatCallback(combat3_Brush_3, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_3") local con_3__combat3_Brush_3 = createConditionObject(0+CONDITION_ENERGY+CONDITION_HASTE) addDamageCondition(con_3__combat3_Brush_3, 3, 1000, -10) addDamageCondition(con_3__combat3_Brush_3, 3, 1000, -10) setCombatCondition(combat3_Brush_3, con_3__combat3_Brush_3)local combat3_Brush_4 = createCombatObject() setCombatParam(combat3_Brush_4, COMBAT_PARAM_EFFECT, CONST_ME_PURPLEENERGY) setCombatParam(combat3_Brush_4, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatArea(combat3_Brush_4,createCombatArea({{1, 0, 1, 0, 1, 0, 1, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 2, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 1, 0, 1, 0, 1, 0, 1}})) function getDmg_Brush_4(cid, level, maglevel) return (2000)*-1,(4000)*-1 end setCombatCallback(combat3_Brush_4, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_4") local con_4__combat3_Brush_4 = createConditionObject(0+CONDITION_ENERGY+CONDITION_HASTE) addDamageCondition(con_4__combat3_Brush_4, 3, 1000, -10) setCombatCondition(combat3_Brush_4, con_4__combat3_Brush_4) local dfcombat3_Brush_4 = {CONST_ANI_ENERGY,4,4,2,4,0,4,-2,4,-4,4,-4,2,-4,0,-4,-2,-4,-4,-2,-4,0,-4,2,-4,4,-4,4,-2,4,0,4,2}local combat3_Brush_5 = createCombatObject() setCombatParam(combat3_Brush_5, COMBAT_PARAM_EFFECT, CONST_ME_YELLOWENERGY) setCombatParam(combat3_Brush_5, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatArea(combat3_Brush_5,createCombatArea({{0, 1, 0, 1, 0, 1, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 2, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 0, 1}, {0, 1, 0, 1, 0, 1, 0, 1, 0}})) function getDmg_Brush_5(cid, level, maglevel) return (2000)*-1,(4000)*-1 end setCombatCallback(combat3_Brush_5, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush_5") local con_5__combat3_Brush_5 = createConditionObject(0+CONDITION_LIGHT+CONDITION_DRUNK+CONDITION_FOOD+CONDITION_REGENERATION+CONDITION_SOUL) addDamageCondition(con_5__combat3_Brush_5, 3, 1000, -10) setCombatCondition(combat3_Brush_5, con_5__combat3_Brush_5) local dfcombat3_Brush_5 = {CONST_ANI_HOLY,3,4,1,4,-1,4,-3,4,-4,3,-4,1,-4,-1,-4,-3,-3,-4,-1,-4,1,-4,3,-4,4,-3,4,-1,4,1,4,3} -- =============== CORE FUNCTIONS =============== local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part if (isCreature(cid)) then doCombat(cid, c, var) if (dirList ~= nil) then -- Emit distance effects local i = 2; while (i < #dirList) do doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1]) i = i + 2 end end end end function onCastSpell(cid, var) local startPos = getCreaturePosition(cid) RunPart(combat0_Brush,cid,var,dfcombat0_Brush,startPos) RunPart(combat0_Brush_2,cid,var,dfcombat0_Brush_2,startPos) addEvent(RunPart,100,combat1_Brush,cid,var,dfcombat1_Brush,startPos) addEvent(RunPart,100,combat1_Brush_2,cid,var,dfcombat1_Brush_2,startPos) addEvent(RunPart,200,combat2_Brush_2,cid,var,dfcombat2_Brush_2,startPos) addEvent(RunPart,200,combat2_Brush,cid,var,dfcombat2_Brush,startPos) addEvent(RunPart,300,combat3_Brush,cid,var,dfcombat3_Brush,startPos) addEvent(RunPart,300,combat3_Brush_2,cid,var,dfcombat3_Brush_2,startPos) addEvent(RunPart,300,combat3_Brush_3,cid,var) addEvent(RunPart,300,combat3_Brush_4,cid,var,dfcombat3_Brush_4,startPos) addEvent(RunPart,300,combat3_Brush_5,cid,var,dfcombat3_Brush_5,startPos) return true end
-
Problema em Script de Spell
local combat = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 1) setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 2157) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 0) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(combat1, stun) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 0) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(combat1, stun) local stun = createConditionObject(CONDITION_PARALYZE) setConditionParam(stun, CONDITION_PARAM_TICKS, 0) setConditionFormula(stun, -0.9, 1, -0.9, 1) setCombatCondition(combat, stun) local meteor_water = createCombatObject() setCombatParam(meteor_water, COMBAT_PARAM_TYPE, 1) setCombatParam(meteor_water, COMBAT_PARAM_EFFECT, 1) setCombatFormula(meteor_water, COMBAT_FORMULA_LEVELMAGIC, -0, -0, -0, -0) arr = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} } local combat_area = createCombatArea(arr) setCombatArea(combat, combat_area) local function meteorCast(p) doCombat(p.cid, p.combat, positionToVariant(p.pos)) end local function stunEffect(cid) doSendMagicEffect(getThingPos(cid), CONST_ME_STUN) end function onTargetTile(cid, pos) if (math.random(0, 40) == 1) then local ground = getThingfromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 1}) if (isInArray(underWater, ground.itemid) == TRUE) then local newpos = {x = pos.x - 9, y = pos.y - 8, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid, pos = pos, combat = meteor_water}) else local newpos = {x = pos.x + 8, y = pos.y - 7, z = pos.z} doSendDistanceShoot(newpos, pos, 28) addEvent(meteorCast, 100, {cid = cid,pos = pos, combat = combat1}) setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 2157) end end end setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") function onCastSpell(cid, var) doCombat(cid, combat, var) end
-
Problema em Script de Spell
Fala ai pessoal, estou tendo um probleminha em relação a uma spell, na qual mostra o erro abaixo. [25/5/2018 23:49:14] [Error - Spell Interface] [25/5/2018 23:49:14] In a callback: data/spells/scripts/rainmoney.lua:onTargetTile [25/5/2018 23:49:14] (Unknown script file) [25/5/2018 23:49:14] Description: [25/5/2018 23:49:14] (LuaInterface::luaSetCombatParam) This function can only be used while loading the script Informações Adicionais: Uso OTX. Mapa Baiak.
-
Tfs 0.4
Verdade, estava optando por deixar em Linux, de preferencia no Debian. Bom, obrigado por sanarem as duvidas. Podem fechar o topico
-
Tfs 0.4
Quando começa a Carregar o mapa, Uso o WINDOWS 7, 16 GB RAM. Não possui tantos sistemas...
-
Tfs 0.4
E como eu poderia estar diminuindo o tamanho do mapa ?
-
Tfs 0.4
Fala ai, pessoal. Uso o Tfs 0,4 REV3884. O problema e o seguinte, depois que carrega o mapa, o servidor passa a consumir muita memoria RAM. Alguem poderia me dizer, o que esta acontecendo ? Obrigado.
-
(Resolvido)Recomendação de Distro para Servidor
Entendi. Mais tarde, irei procurar qual a versão da OTX E TFS, seria a mais "Rentavel". Obrigado pelos esclarecimentos.
-
(Resolvido)Recomendação de Distro para Servidor
Entendi, @Sttorm e @mullino. Mas, Há uma diferença dentre os dois ? Digo isso em relação a estrutura de cada uma delas.
-
(Resolvido)Recomendação de Distro para Servidor
Fala ai, pessoal. de boas ? Estou com uma duvida em relação a versão da TFS 1.2 e 0.4. Pois queria saber qual destas versões seria a recomendada a ser utilizada num Baiak. Obrigado !
- [Linux] Apache + MySQL + phpMyAdmin + Compilar OTServ (Debian e Ubuntu)
-
Duvidas sobre Scripts
Obrigado por esclarer @esnio12. Podem fechar o topico.
-
Alguns Scripts
Ola, pessoinhas Eu queria fazer alguns pedidos, se não forem incomodar, e claro ! Primeiro - Tem algum tipo de spell desse tipo: A Spell x, foi ativada. Afetando o inimigo múltiplas vezes (3x). O cálculo do dano de ataque é baseado em seu nível mágico. Segundo - Um sistemsa de Reset, que mostra os detalhes do reset do personagem e que esses resets possam aparecer, quando voce da "look" em outros personagens Terceiro - Hunts com um determinado numero de Resets obrigado a quem for ajudar !
-
Duvidas sobre Scripts
Fala ai pessoal, eu estou sumido há um tempo, mas ainda tenho duvidas sobre scripts, etc.. Primeiro - O que são Conditions, em spells ? Segundo - Como colocar diferentes tipos de danos elementais em Wands, Runas, Swords, etc .... Terceiro - E possivel criar novos itens a partir as skins originais do jogo ? Quarto - Tem como criar um "OffLine Trainer", na versão 8.6 ? Valeu, pessoal...
-
[Ajuda] Ticket
Senhores, estou com um problema no Gesior 2012, Onde ele veio com o sistema de Ticker (Atendimento). O problema e o seguinte, ao clicar no botão "submit", nada acontece. Ja verifiquei o script; A Tabela esta inserida no Banco de Dados.
-
Duvidas sobre Gesior
Senhores, estou com duvidas com o Gesior, onde eu eu baixei pelo link: Aqui. - O sistema de Tickets, onde o player abre uma duvida. Ele não funciona, clico no botão Submit e nada acontece, pesquisei em varios topicos e não consegui resolver esse problema. - Como colocar a Troca de Nome do personagem para vender no shop, o shop do site não a opção para a venda. - O sistema de leilão, onde coloca o personagem para vender, tentei colocar ele no site e não obtive sucesso. Alguem ? Obrigado.
- [Sistema de Ticket] Atendimento - Gesior Acc
-
Most Powerfull Guilds
Obrigado, @vankk.
-
Most Powerfull Guilds
1. Entendi 2. Tem guilds, inclusive elas possuem kills. 3. Como não deu erro, no site. Provalvemente esta checando. 4. latestnews.php <div id="LayerPop" style="display:block; position:absolute; left:0px; top:-520px;"></div> <div id="LayerPop2" align="center" style="position: absolute; top:-520px; margin:auto; padding:auto; width: 100%; z-index: 5000;"><a href="?subtopic=store" target="_BLANK"><img src="http://i.imgur.com/iuihazN.png" class="imgBorder"></a><BR /><input type="button" name="fechar" value="FECHAR" onclick="document.getElementById('LayerPop').style.display = 'none';document.getElementById('LayerPop2').style.display = 'none'" style="font-family: Verdana; font-weight: bold; font-size:10px; color: #FFFFFF; background-color: #000000; border: 1px solid #fffff;"></div> <?PHP header("Content-Type: text/html; charset=ISO-8859-1",true); date_default_timezone_set('America/Sao_Paulo'); // top kills - guilds $main_content .= '<div class="NewsHeadline"> <div class="NewsHeadlineBackground" style="background-image:url(' . $layout_name . '/images/news/newsheadline_background.gif)"> <table border="0"> <tr> <td style="text-align: center; font-weight: bold;"> <font color="white">Most powerfull guilds</font> </td> </tr> </table> </div> </div> <table border="0" cellspacing="3" cellpadding="4" width="100%"><tr>'; foreach($SQL->query('SELECT `g`.`id` AS `id`, `g`.`name` AS `name`, COUNT(`g`.`name`) as `frags` FROM `players` p LEFT JOIN `player_deaths` pd ON `pd`.`killed_by` = `p`.`name` LEFT JOIN `guild_membership` gm ON `p`.`id` = `gm`.`player_id` LEFT JOIN `guilds` g ON `gm`.`guild_id` = `g`.`id` WHERE `g`.`id` > 0 AND `pd`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC, `name` ASC LIMIT 4;') as $guild) $main_content .= '<td style="width: 25%; text-align: center;"><a href="?subtopic=guilds&action=show&guild=' . $guild['id'] . '"><img src="guild_image.php?id=' . $guild['id'] . '" width="64" height="64" border="0"/> <br />' . $guild['name'] . '</a><br />' . $guild['frags'] . ' kills </td>'; $main_content .= '</tr></table>'; date_default_timezone_set('America/Sao_Paulo'); //######################## SHOW TICKERS AND NEWS ####################### if ($logged){ $players_from_account = $SQL->query("SELECT `players`.`name`, `players`.`id` FROM `players` WHERE `players`.`account_id` = ".(int) $account_logged->getId())->fetchAll(); foreach($players_from_account as $player) { $str .= '<option value="'.$player['id'].'"'; if($player['id'] == $char_id) $strt .= ' selected="selected"'; $str .= '>'.$player['name'].'</option>'; } } $time = time(); $query = $SQL->query("SELECT * FROM `players` ORDER BY `experience` DESC")->fetch(); $query2 = $SQL->query('SELECT `id`, `name` FROM `players` ORDER BY `id` DESC LIMIT 1;')->fetch(); $housesfree = $SQL->query('SELECT COUNT(*) FROM `houses` WHERE `owner`=0;')->fetch(); $housesrented = $SQL->query('SELECT COUNT(*) FROM `houses` WHERE `owner`!=0;')->fetch(); $players = $SQL->query('SELECT COUNT(*) FROM `players` WHERE `id`>0;')->fetch(); $accounts = $SQL->query('SELECT COUNT(*) FROM `accounts` WHERE `id`>0;')->fetch(); $banned = $SQL->query('SELECT COUNT(*) FROM `account_bans` WHERE `account_id`>0;')->fetch(); $guilds = $SQL->query('SELECT COUNT(*) FROM `guilds` WHERE `id`>0;')->fetch(); ///End Queries /// $main_content .= '<table bgcolor='.$config['site']['darkborder'].' border=0 cellpadding=4 cellspacing=1 width=100%> <tr bgcolor='. $config['site']['vdarkborder'] .'><td align="center" class=white colspan=1><b>Welcome to '.$config['server']['serverName'].'</b></td></tr> <tr><td><table border=0 cellpadding=1 cellspacing=1 width=100%> <tr bgcolor='. $config['site']['lightborder'] .'><td><center>Last joined us: <a href="?subtopic=characters&name='.urlencode($query2['name']).'">'.$query2['name'].'</a>, player number '.$query2['id'].'. Welcome and wish you a nice game!</center></td></tr> <tr bgcolor='. $config['site']['lightborder'] .'><td><center>Currently, the best player on the server is: <a href="index.php?subtopic=characters&name='.urlencode($query['name']).'"> '.$query['name'].'</a> ('.urlencode($query['level']).'). Congratulations!</center></td></tr> <tr bgcolor='. $config['site']['lightborder'] .'><td><center><b>Server motd:</b> '.$query['text'].'</center></td></tr> <table border=0 cellpadding=0 cellspacing=1 width=100%> <tr bgcolor='. $config['site']['lightborder'] .'><td><center><b>Free Houses:</b> '.$housesfree[].'</center></td> <td><center><b>Rented Houses:</b> '.$housesrented[].'</center></td></tr> <tr bgcolor='. $config['site']['lightborder'] .'><td><center><b>Accounts</b> in database: '.$accounts[].'</center></td> <td><center><b>Players</b> in database: '.$players[].'</center></td></tr> <tr bgcolor='. $config['site']['lightborder'] .'><td><center><b>Banned</b> accounts: '.$banned[].'</center></td> <td><center><b>Guilds</b> in databese: '.$guilds[].'</center></td></tr> </table></td></tr></table>'; ///Don't delete this! Please respect my work! I am counting on reputation. $main_content .= '<div align="right"><small><b>Author of script: <a href="http://otland.net/members/aleh/">Aleh</a></b></small></div><br />'; ///Don't delete this! Please respect my work! I am counting on reputation. $news_content .= ' <div id="newsticker" class="Box"> <div class="Corner-tl" style="background-image: url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image: url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image: url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img class="Title" src="/images/head/News Ticker.png" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image: url('.$layout_name.'/images/content/scroll.gif);">'; //##################### ADD NEW TICKER ##################### if($action == "newticker") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $ticker_text = stripslashes(trim($_POST['new_ticker'])); $ticker_icon = (int) $_POST['icon_id']; if(empty($ticker_text)) { $news_content .= 'You can\'t add empty ticker.'; } else { if(empty($ticker_icon)) { $news_icon = ; } $SQL->query('INSERT INTO '.$SQL->tableName('z_news_tickers').' (date, author, image_id, text, hide_ticker) VALUES ('.$SQL->quote($time).', '.$account_logged->getId().', '.$ticker_icon.', '.$SQL->quote($ticker_text).', 0)'); $news_content .= '<center><h2><font color="red">Added new ticker:</font></h2></center><hr/> <div id="newsticker" class="Box"> <div id="TickerEntry-1" class="Row" onclick=\'TickerAction("TickerEntry-1")\'> <div class="Odd"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-1-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("j M Y", $time).' -</span> <div id="TickerEntry-1-ShortText" class="NewsTickerShortText">'; $news_content .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; $news_content .= short_text($ticker_text, 60).' </div> <div id="TickerEntry-1-FullText" class="NewsTickerFullText">'; $news_content .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$time.'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; $news_content .= $ticker_text.' </div> </div> </div> </div> </div><hr/>'; } } else { $news_content .= 'You don\'t have admin rights. You can\'t add new ticker.'; } $news_content .= '<form action="index.php?subtopic=latestnews" METHOD="post"><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" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } //#################### DELETE (HIDE only!) TICKER ############################ if($action == "deleteticker") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { header("Location: "); $date = (int) $_REQUEST['id']; $SQL->query('UPDATE '.$SQL->tableName('z_news_tickers').' SET hide_ticker = 1 WHERE '.$SQL->fieldName('date').' = '.$date.';'); $news_content .= '<center>News tickets with <b>date '.date("j M Y", $date).'</b> has been deleted.<form action="index.php?subtopic=latestnews" METHOD=post><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" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'; } else { $news_content .= '<center>You don\'t have admin rights. You can\'t delete tickers.<form action="index.php?subtopic=latestnews" METHOD=post><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" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></center>'; } } //show tickers if any in database or not blocked (tickers limit = 0) $tickers = $SQL->query('SELECT * FROM `z_news_tickers` WHERE hide_ticker != 1 ORDER BY date DESC LIMIT 50;'); $number_of_tickers = ; if(is_object($tickers)) { foreach($tickers as $ticker) { if(is_int($number_of_tickers / 2)) $color = "Odd"; else $color = "Even"; $tickers_to_add .= ' <div id="TickerEntry-'.$number_of_tickers.'" class="Row" onclick=\'TickerAction("TickerEntry-'.$number_of_tickers.'")\'> <div class="'.$color.'"> <div class="NewsTickerIcon" style="background-image: url('.$layout_name.'/images/news/icon_'.$ticker['image_id'].'.gif);"></div> <div id="TickerEntry-'.$number_of_tickers.'-Button" class="NewsTickerExtend" style="background-image: url('.$layout_name.'/images/general/plus.gif);"></div> <div class="NewsTickerText"> <span class="NewsTickerDate">'.date("j M Y", $ticker['date']).' -</span> <div id="TickerEntry-'.$number_of_tickers.'-ShortText" class="NewsTickerShortText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= short_text($ticker['text'], 60).'</div> <div id="TickerEntry-'.$number_of_tickers.'-FullText" class="NewsTickerFullText">'; //if admin show button to delete (hide) ticker if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $tickers_to_add .= '<a href="index.php?subtopic=latestnews&action=deleteticker&id='.$ticker['date'].'"><img src="'.$layout_name.'/images/news/delete.png" border="0"></a>'; } $tickers_to_add .= $ticker['text'].'</div> </div> </div> </div>'; $number_of_tickers++; } } if(!empty($tickers_to_add)) { //show table with tickers if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action!=newticker) $news_content .= '<script type="text/javascript"> var showednewticker_state = "0"; function showNewTickerForm() { if(showednewticker_state == "0") { document.getElementById("newtickerform").innerHTML = \'<form action="index.php?subtopic=latestnews&action=newticker" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>New<br>ticker<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="new_ticker" rows="3" cols="45"></textarea></td></tr><tr><td><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" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><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><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></td></tr></table>\'; document.getElementById("jajo").innerHTML = \'\'; showednewticker_state = "1"; } else { document.getElementById("newtickerform").innerHTML = \'\'; document.getElementById("jajo").innerHTML = \'<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><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div>\'; showednewticker_state = "0"; } } </script><div id="newtickerform"></div><div id="jajo"><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><img class="ButtonText" id="AddTicker" src="'.$layout_name.'/images/buttons/addticker.gif" onClick="showNewTickerForm()" alt="AddTicker" /></div></div></div><hr/>'; //add tickers list $news_content .= $tickers_to_add; //koniec } $news_content .= '</div> </div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div>'; //end of tickers, news part //featured article //sem creditos do autor, apenas postado por Dhenyz Shady no X-tibia. $news_content .= ' <div id="news" class="Box"> <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image:url(layouts/tibiacom/images/content/title-background-green.gif);"></div> <img class="Title" src="/images/head/Featured Article.png" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);"> <div id=\'TeaserThumbnail\'><img src="layouts/tibiacom/images/news/topitems.jpg" width=275 height=200 border=0 alt="" ALIGN=right hspace="10" /></div> <div id=\'TeaserText\'> <div style="position: relative; top: -9px; margin-bottom: 10px;"></br> <b><font size="5px"><center><b><font style="text-decoration: inherit; text-shadow:#000 1px -1px 2px, #000 -1px 1px 2px, #000 1px 1px 2px, #000 -1px -1px 2px" size="1px" color="green">| IP: <font color="white">fullprojectibia.com</font> / Port: <font color="white">7171</font> / Client: <font color="white">10.90</font> |</b></font></center><br></b><font size="2px">Ola Criaturas. Bem vindo ao <b><font color="green">FullprojecTibia</font></b>, contamos com um <b>RLMAP</b> completo em sua grande parte. *Novas areas de hunts editadas e algumas criadas pela equipe <b>FullprojecTibia</b>. *Principais quests <b>SEM MISSOES</b>, Cooldown e Magias reformuladas para um PvP mais pratico e divertido. <b>Exp shared 100%, All Quests</b>. *Diversos bugs fixados e sendo arrumados sempre que possivel. *Venha conferir o nosso servidor. *<b>Confira nosso video de intro</b>, e tenha a certeza de que e aqui, que voce formara novas amizades, aliancas e travara novas guerras Um servidor que em todas as suas atitudes, vai pedir a opinião da pessoa mais importante, <b>VOCE</b>, Afinal, voce quem mantem o servidor ativo. </td></tr><tr><td> <b>Aqui sua diversao e garantida</b> .<br><center><b><a href="http://www.mediafire.com/download/we1hu8hrpc1zh6u/ClienteFullpr..rar">Download Client</a> | <a href="?subtopic=createaccount">Criar Conta</a> | <a href="?subtopic=team">Suporte</a></center></b> </font> </div> </div> </div> </div> </div> <div class="Border_1" style="background-image: url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image: url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image: url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div> '; //Fim do featured Article //adding news if($action == "newnews") { if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $text = ($_REQUEST['text']); $char_id = (int) $_REQUEST['char_id']; $post_topic = stripslashes(trim($_REQUEST['topic'])); $smile = (int) $_REQUEST['smile']; $news_icon = (int) $_REQUEST['icon_id']; if(empty($news_icon)) { $news_icon = ; } if(empty($post_topic)) { $an_errors[] .= 'You can\'t add news without topic.'; } if(empty($text)) { $an_errors[] .= 'You can\'t add empty news.'; } if(empty($char_id)) { $an_errors[] .= 'Select character.'; } //execute query if(empty($an_errors)) { $SQL->query("INSERT INTO `z_forum` (`id` ,`first_post` ,`last_post` ,`section` ,`replies` ,`views` ,`author_aid` ,`author_guid` ,`post_text` ,`post_topic` ,`post_smile` ,`post_date` ,`last_edit_aid` ,`edit_date`, `post_ip`, `icon_id`) VALUES ('NULL', '0', '".time()."', '1', '0', '0', '".$account_logged->getId()."', '".(int) $char_id."', ".$SQL->quote($text).", ".$SQL->quote($post_topic).", '".(int) $smile."', '".time()."', '0', '0', '".$_SERVER['REMOTE_ADDR']."', '".$news_icon."')"); $thread_id = $SQL->lastInsertId(); $SQL->query("UPDATE `z_forum` SET `first_post`=".(int) $thread_id." WHERE `id` = ".(int) $thread_id);//show added data $main_content .= '<form action="index.php?subtopic=latestnews" METHOD=post><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" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form>'; } else { //show errors $main_content .= '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b>The Following Errors Have Occurred:</b><br/>'; foreach($an_errors as $an_error) { $main_content .= '<li>'.$an_error; } $main_content .= '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>'; //okno edycji newsa z wpisanymi danymi przeslanymi wczesniej $main_content .= '<form action="index.php?subtopic=latestnews&action=newnews" method="post" ><table border="0"><tr><td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td><td><table border="0" bgcolor="F1E0C6"><tr><td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td><td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td></tr><tr><td><input type="radio" name="icon_id" value="0" checked="checked"></td><td><input type="radio" name="icon_id" value="1"></td><td><input type="radio" name="icon_id" value="2"></td><td><input type="radio" name="icon_id" value="3"></td><td><input type="radio" name="icon_id" value="4"></td></tr></table></td></tr><tr><td align="center" bgcolor="F1E0C6"><b>Topic:</b></td><td><input type="text" name="topic" maxlenght="50" style="width: 300px" value="'.$post_topic.'"></td></tr><tr><td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td><td bgcolor="F1E0C6"><textarea name="text" rows="6" cols="60">'.$text.'</textarea></td></tr><tr><td width="180"><b>Character:</b></td><td><select name="char_id"><option value="0">(Choose character)</option>'.$str.'</select></td></tr><tr><td><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" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form><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><img class="ButtonText" id="CancelAddNews" src="'.$layout_name.'/images/buttons/_sbutton_cancel.gif" onClick="location.href=\'index.php?subtopic=latestnews\';" alt="CancelAddNews" /></div></div></td></tr></table>'; } } else { $main_content .= 'You don\'t have site-admin rights. You can\'t add news.';} } //####################Show script with new news panel############################ if($group_id_of_acc_logged >= $config['site']['access_admin_panel'] && $action != 'newnews') { $main_content .= ' <font style="font-size: 16px; font-weight: bold; margin-left: 20px;">New News</font> <form action="index.php?subtopic=latestnews&action=newnews" method="post" > <table border="0"> <tr> <td bgcolor="D4C0A1" align="center"><b>Select icon:</b></td> <td> <table border="0"> <tr bgcolor="F1E0C6"> <td><img src="'.$layout_name.'/images/news/icon_0.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_1.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_2.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_3.gif" width="20"></td> <td><img src="'.$layout_name.'/images/news/icon_4.gif" width="20"></td> </tr> <tr bgcolor="D4C0A1"> <td><input type="radio" name="icon_id" value="0" checked="checked"></td> <td><input type="radio" name="icon_id" value="1" /></td> <td><input type="radio" name="icon_id" value="2" /></td> <td><input type="radio" name="icon_id" value="3" /></td> <td><input type="radio" name="icon_id" value="4" /></td> </tr> </table> </td> </tr> <tr> <td align="center" bgcolor="F1E0C6"><b>Topic:</b></td> <td><input type="text" name="topic" maxlenght="50" style="width: 300px" ></td> </tr> <tr> <td align="center" bgcolor="D4C0A1"><b>News<br>text:</b></td> <td bgcolor="F1E0C6"><textarea name="text" rows="6" cols="60"></textarea></td> </tr> <tr> <td width="180"><b>Character:</b></td> <td><select name="char_id"><option value="0">(Choose character)</option>'.$str.'</select></td> </tr> <tr> <td> <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" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form></td></tr> </table> <hr/>'; $zapytanie = $SQL->query("SELECT `z_forum`.`icon_id`,`z_forum`.`post_topic`, `z_forum`.`author_guid`, `z_forum`.`post_date`, `z_forum`.`post_text`, `z_forum`.`id`, `z_forum`.`replies`, `players`.`name` FROM `z_forum`, `players` WHERE `section` = '1' AND `z_forum`.`id` = `first_post` AND `players`.`id` = `z_forum`.`author_guid` ORDER BY `post_date` DESC LIMIT 3;")->fetchAll(); } ///show news $announcements = $SQL->query("SELECT * FROM `announcements` WHERE id ORDER BY `date` DESC LIMIT 1"); foreach ($announcements as $announcementsRow){ $news_content .= '<div id="featuredarticle" class="Box"> <div class="Corner-tl" style="background-image:url('.$layout_name.'/images/content/corner-tl.gif);"></div> <div class="Corner-tr" style="background-image:url('.$layout_name.'/images/content/corner-tr.gif);"></div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="BorderTitleText" style="background-image:url('.$layout_name.'/images/content/title-background-green.gif);"></div> <img class="Title" src="montaimg.php?text=Announcement" alt="Contentbox headline" /> <div class="Border_2"> <div class="Border_3"> <div class="BoxContent" style="background-image:url('.$layout_name.'/images/content/scroll.gif);"> <div id="TeaserThumbnail"><img src="images/news/announcement.jpg" width="150" height="100" border="0" alt="" /></div> <div id="TeaserText"> <div style="position: relative; margin-bottom: 2px;" > <div style="font-size:18px; font-weight:bold;">'.$announcementsRow['title'].'</div> </div> '.$announcementsRow['text'].' <br /> <br /> <small style="float: right;">Posted by <font color="red">'.$announcementsRow['author'].'</font> - '.date("d M Y", $announcementsRow['date']).'</small>'; if ($logged)if ($account_logged->getCustomField("page_access") > 6 ){ $news_content .='<input type="button" value="Deletar" OnClick="location.href=\'index.php?subtopic=cpanel&action=deletar_ann&id='.$announcementsRow['id'].'\'" />';} $news_content .=' </div> </div> </div> </div> <div class="Border_1" style="background-image:url('.$layout_name.'/images/content/border-1.gif);"></div> <div class="CornerWrapper-b"><div class="Corner-bl" style="background-image:url('.$layout_name.'/images/content/corner-bl.gif);"></div></div> <div class="CornerWrapper-b"><div class="Corner-br" style="background-image:url('.$layout_name.'/images/content/corner-br.gif);"></div></div> </div> '; } // $zapytanie = $SQL->query("SELECT `z_forum`.`icon_id`,`z_forum`.`post_topic`, `z_forum`.`author_guid`, `z_forum`.`post_date`, `z_forum`.`post_text`, `z_forum`.`id`, `z_forum`.`replies`, `players`.`name` FROM `z_forum`, `players` WHERE `section` = '1' AND `z_forum`.`id` = `first_post` AND `players`.`id` = `z_forum`.`author_guid` ORDER BY `post_date` DESC LIMIT 6;")->fetchAll(); foreach ($zapytanie as $row) { $BB = array( '/\[youtube\](.*?)\[\/youtube\]/is' => '<center><object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/$1&hl=pt-br&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$1&hl=pt-br&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object></center>', '/\[b\](.*?)\[\/b\]/is' => '<strong>$1</strong>', '/\[center\](.*?)\[\/center\]/is' => '<center>$1</center>', '/\[quote\](.*?)\[\/quote\]/is' => '<table cellpadding="0" style="background-color: #c4c4c4; width: 480px; border-style: dotted; border-color: #007900; border-width: 2px"><tr><td>$1</td></tr></table>', '/\[u\](.*?)\[\/u\]/is' => '<u>$1</u>', '/\[i\](.*?)\[\/i\]/is' => '<i>$1</i>', '/\[letter\](.*?)\[\/letter\]/is' => '<img src=images/letters/$1.gif alt=$1 />', '/\[url](.*?)\[\/url\]/is' => '<a href=$1>$1</a>', '/\[color\=(.*?)\](.*?)\[\/color\]/is' => '<span style="color: $1;">$2</span>', '/\[img\](.*?)\[\/img\]/is' => '<img src=$1 alt=$1 />', '/\[player\](.*?)\[\/player\]/is' => '<a href='.$server['ip'].'index.php?subtopic=characters&name=$1>$1</a>', '/\[code\](.*?)\[\/code\]/is' => '<div dir="ltr" style="margin: 0px;padding: 2px;border: 1px inset;width: 500px;height: 290px;text-align: left;overflow: auto"><code style="white-space:nowrap">$1</code></div>' ); $message = preg_replace(array_keys($BB), array_values($BB), nl2br($row['post_text'])); $main_content .= ' <div class="NewsHeadline"> <img class="Title" src="/images/head/Latest News.png" alt="Contentbox headline" /> <div class="NewsHeadlineBackground" style="background-image:url('.$layout_name.'/images/news/newsheadline_background.gif)"> <img src="'.$layout_name.'/images/news/icon_'.$row['icon_id'].'_big.gif" class="NewsHeadlineIcon" /> <div class="NewsHeadlineDate">'.date('j M Y', $row['post_date']).' - </div> <div class="NewsHeadlineText">'.$row['post_topic'].'</div> </div> </div> <table style=\'clear:both\' border=0 cellpadding=0 cellspacing=0 width=\'100%\'><tr> <td><img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /></td>'; if($group_id_of_acc_logged >= $config['site']['access_admin_panel']) { $main_content .='<td width="100%">'.$message.'<br><p align="right"><a href="index.php?subtopic=forum&action=remove_post&id='.$row['id'].'"><font color="red">[Delete this news]</font></a> <a href="index.php?subtopic=forum&action=edit_post&id='.$row['id'].'"><font color="green">[Edit this news]</font></a>'; } else { $main_content .='<td width="100%">'.$message.'<br /><br />'; } $main_content .= '</td> <td><img src="'.$layout_name.'/images/global/general/blank.gif" width=10 height=1 border=0 alt=\'\' /></td> </tr></table>'; } ?> No servidor possuem guild, Inclusive possua Kill. Uso o Gensior 2012, TFS 1.2
-
Most Powerfull Guilds
Ola pessoal, tenho algumas duvidas em relação ao site. A primeira duvida e sobre o Most Powerfull Guilds, porque ela não aparece.
-
News Ticket
Entendo. Complicado, porque eu tentei adaptar de outros Sites e acabou não dando certo.
-
News Ticket
Uso o Gensior, Referente ao link: Queria colocar pelo Admin Painel, mas a opção não e existente. Eles não aparecem no Banco de dados, entretanto não da erro nas paginas. Link do gensior, onde eu obtive:
-
News Ticket
Ola pessoal, estou tendo prboemas com o Gensior, em relação ao Tickets. Como na imagem abaixo ele nao aparece. assim como nao consigo adicionar alguma noticia. alguem pode me ajudar ? OBS: Ja possuo privilegios ao adicionar noticias