Ir para conteúdo
Banner com Efeitos

eskylo

Membro
  • Registro em

  • Última visita

Solutions

  1. eskylo's post in (Resolvido)Fazer Tabela / Website was marked as the answer   
    aff, sem testar eh f#$%
    <?php $id = $player->getCustomField("id"); $main_content .= '<table width=100%><tr><td width=50%>'; // QUESTS $number_of_quests = 0; $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=10><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Quests</B></TD></TR>'; $quests = $config['site']['quests']; foreach ($quests as $storage => $name) { if(is_int($number_of_quests / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_quests++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=97%>'.$storage.'</TD>'; $quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$quests[$storage].';')->fetch(); if($quest == false) { $main_content .= '<TD><img src="images/false.png"/ width="20 height="20"></TD></TR>'; } else { $main_content .= '<TD><img src="images/true.png"/ width="20" height="20"></TD></TR>'; } } $main_content .= '</TABLE>'; $main_content .= '</td><td width=50%>'; // MISSOES $number_of_missoes = 0; $main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=10><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Missões</B></TD></TR>'; $missoes = $config['site']['missoes']; foreach ($missoes as $storage => $name) { if(is_int($number_of_missoes / 2)) $bgcolor = $config['site']['darkborder']; else $bgcolor = $config['site']['lightborder']; $number_of_missoes++; $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD WIDTH=97%>'.$storage.'</TD>'; $quest = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$missoes[$storage].';')->fetch(); if($quest == false) { $main_content .= '<TD><img src="images/false.png"/ width="20 height="20"></TD></TR>'; } else { $main_content .= '<TD><img src="images/true.png"/ width="20" height="20"></TD></TR>'; } } $main_content .= '</TABLE>'; $main_content .= '</td></tr></table>'; $main_content .= '</td></tr></table><br />'; ?>
  2. eskylo's post in (Resolvido)[Dúvida] (Website) Background Fixo was marked as the answer   
    devia ter falado isso no primeiro post do topico u.u e nao sobre background fixo...
        -webkit-background-size: cover;     -moz-background-size: cover;     -o-background-size: cover; background-size: cover; troca cover pela largura e altura do background
     
    ex: 
    background-size: 700px 400px; ...
    se ainda nao der
     
    tira
    height: 100%; ou poe aqui a altura da img tambem
  3. eskylo's post in (Resolvido)[dúvida] Possivel Adicionar elementos no server? sem sourcer was marked as the answer   
    a segunda linha vai alterar a cor
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_BLUE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -110.3, 1, -115.3, 1) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionParam(condition, CONDITION_PARAM_SPEED, -600) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) local arr = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, { 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}, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) if exhaustion.check(cid, 13148) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 2) return false end local pos1 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} local pos2 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z} local pos3 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+2, z=getCreaturePosition(cid).z} local pos4 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+3, z=getCreaturePosition(cid).z} local pos5 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y+4, z=getCreaturePosition(cid).z} local pos6 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z} local pos7 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-2, z=getCreaturePosition(cid).z} local pos8 = {x=getCreaturePosition(cid).x+7, y=getCreaturePosition(cid).y-3, z=getCreaturePosition(cid).z} exhaustion.set(cid, 13148, 1.2) doSendMagicEffect(pos1, 160) doSendMagicEffect(pos2, 160) doSendMagicEffect(pos3, 160) doSendMagicEffect(pos4, 160) doSendMagicEffect(pos5, 160) doSendMagicEffect(pos6, 160) doSendMagicEffect(pos7, 160) doSendMagicEffect(pos8, 160) return doCombat(cid, combat, var) end adiciona isso na sua lib 000 e reinicie o server
    COLOR_BLACK = 0 COLOR_BLUE = 5 COLOR_GREEN = 18 COLOR_TEAL = 35 COLOR_LIGHTGREEN = 66 COLOR_DARKBROWN = 78 COLOR_LIGHTBLUE = 89 COLOR_DARKPURPLE = 112 COLOR_BROWN = 120 COLOR_GREY = 129 COLOR_DARKRED = 144 COLOR_DARKPINK = 152 COLOR_PURPLE = 154 COLOR_DARKORANGE = 156 COLOR_RED = 180 COLOR_PINK = 190 COLOR_ORANGE = 192 COLOR_DARKYELLOW = 205 COLOR_YELLOW = 210 COLOR_WHITE = 215 COLOR_NONE = 255
  4. eskylo's post in (Resolvido)ERRO POTS was marked as the answer   
    problemas com o script de refletir danos ; tira ele do serv ou posta ele aqui pra o pessoal dar uma olhada e tentar arrumar
  5. eskylo's post in (Resolvido)[Error] CreatureScript Interface was marked as the answer   
    posta esse arquivo data/lib/war.lua
  6. eskylo's post in (Resolvido)[DUVIDA] Qual o melhor site para usar em um Baiak 8.60? was marked as the answer   
    você tem que entrar no site com sua acc de adm; vc vai na página de admin que tem lá adicionar news ticker
  7. eskylo's post in (Resolvido)[BUG NPC] Colecionador de ossos was marked as the answer   
    confere se o arquivo está corretamente na pasta Data / Npcs 
     
    com o nome do arquivo Colecionador de ossos.xml
  8. eskylo's post in (Resolvido)Ajuda Nessa Duvida Aqui was marked as the answer   
    testa esse function onThink(interval, lastExecution) local tabela = { [1]= 5, [2]= 6, [7]= 7, [6]= 8, [5]= 9, [4]= 10, [3]= 5, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true  end ve se ta certo a tabela que eu fiz [vocaçao]=efeito,
  9. eskylo's post in (Resolvido)[PEDIDO] GOD ONLINE was marked as the answer   
    é que seu tfs eh mais novo; tenta entao
    if getPlayerGroupId(cid) == 6 then broadcastMessage("O GOD: ".. getCreatureName(cid) .." acabou de entrar!", 22) end
  10. eskylo's post in (Resolvido)Outfit do ADM was marked as the answer   
    mudando as cores por script:
     
    noarquivo DATA / CREATURESCRIPTS / SCRIPTS / LOGIN . LUA
     
    embaixo da linha: funcion onLogin(cid)
     
    adicione:
    if getPlayerGroupId(cid) == 6 then outfit = { lookType = 136,  -- ID DO OUTFIT lookHead = 94, -- COR DO CABELO lookBody = 94, -- COR ROUPA 1 lookLegs = 94,  -- COR ROUPA 2 lookFeet = 94, -- COR PES } doCreatureChangeOutfit(cid, outfit) end Voce só precisar trocar os numeros das cores igual a seguinte imagem

     
    Boa sorte
  11. eskylo's post in (Resolvido)Bug createaccount gesior was marked as the answer   
    no phpmyadmin execute a query
    ALTER TABLE accounts ADD COLUMN lastpremdays VARCHAR(15);
  12. eskylo's post in (Resolvido)[DUVIDA] Site para escolher servidor was marked as the answer   
    dominio.com <-dominio (domain) sv1.dominio.com <- subdominio (subdomain) você precisa acessar o painel do dominio e criar um subdominio e configurar os subdominios para os respectivos ips dos vps;
  13. eskylo's post in (Resolvido)[PEDIDO] Magia de heal mana/life was marked as the answer   
    mana
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) doCreatureAddMana(cid, 10000) return doCombat(cid, combat, var) end health
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) doCreatureAddHealth(cid, 10000) return doCombat(cid, combat, var) end basta criar 1 arquivo lua pra cada arquivo na pasta spells/scripts
     
    depois abrir o spells.xml e copiar a linha de uma outra spell qualquer e editar para suas novas magias, com o tanto de mana q vai gastar, quais as palavras pra usar e etc

Informação Importante

Confirmação de Termo