Ir para conteúdo

bernardes22

Campones
  • Total de itens

    78
  • Registro em

  • Última visita

2 Seguidores

Sobre bernardes22

Informações

  • Forma que conheci o xTibia
    Outros Sites
  • Sou
    OT-Admin

Últimos Visitantes

1196 visualizações

bernardes22's Achievements

  1. Boa Tarde Xtibia! Quando eu uso essa Spells cujo o nome é Exura a parece o ( +quantidade que a magia curou ) Gostaria de tira essa função alguem pode me ajudar? Script local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)function onCastSpell(cid, var)doCreatureAddHealth(cid, math.random(200,500)) return doCombat(cid, combat, var)end
  2. manda a tag do evento ai amigo
  3. local config = { semana_mes = "semana", days = {1,2,3,4,5,6,7}, -- Dia das semanas que irá acontecer o evento goblet = 10127, -- Troféu que vai pro vencedor do evento rewards = {6132, 2152, 2160}, -- Recompensas. moneyReward = {2160, 300, 1},-- {moneyId, quantidade, usar}1 pra usar 0 pra não usar} points = 1, playerCount = 2001, -- Storage dos players que entram e sai do evento zombieCount = 2002, -- Storage do zombie do event teleportActionId = 2008, -- Action ID do teleport teleportPosition = {x = 165, y = 48, z = 7, stackpos = 1}, -- Onde o teleport é criado teleportToPosition = {x = 549, y = 131, z = 7}, -- Pra onde será teleportado teleportId = 1387, -- ID do teleporte timeToStartEvent = 1, -- Minutos que o portal irá ficar aberto até os player entrarem timeBetweenSpawns = 20, -- Segundos dps do evento ser startado começarem a aparecer os zombie zombieName = "event zombie", -- Nome do zombie sumonado playersNeededToStartEvent = 2, -- Players necessários pro evento ser iniciado -- Area que o zumbi vai spawnar fromPosition = {x = 523, y = 100, z = 7}, -- top de fromPosition até toPosition = {x = 587, y = 165, z = 7} -- -- em baixo toPostion } function Time() local time = os.date("*t") if (config.semana_mes == "semana" and isInArray(config.days,time.wday)) or (config.semana_mes == "mes" and isInArray(config.days,time.day)) or config.semana_mes == "" then local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("[Zombie-Event] Vai começar em " .. config.timeToStartEvent .. " minutos! O teleporte vai abrir no templo e sera fechado assim que o evento iniciar. (Premio 3ppoints para o ultimo sobrevivente!) ", MESSAGE_STATUS_WARNING) setGlobalStorageValue(config.playerCount, 0) setGlobalStorageValue(config.zombieCount, 0) addEvent(startEvent, config.timeToStartEvent * 1000 * 60) end return TRUEend function startEvent() local fromp, top = config.fromPosition, config.toPosition if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then addEvent(spawnZombie, config.timeBetweenSpawns * 1000) doBroadcastMessage("Boa sorte para os participantes! O portal foi fechado.", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "O primeiro Zombie vai aparecer em " .. config.timeBetweenSpawns .. " segundos! BOA SORTE!")pvgaylord() end end end end else doBroadcastMessage("The Zombie event could not start because of to few players participating.\n At least " .. config.playersNeededToStartEvent .. " players is needed!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end endend function spawnZombie() if getGlobalStorageValue(config.playerCount) >= 2 then pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)} if getCreaturePosition(getplayers) ~= pos then doSummonCreature(config.zombieName, pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1) doBroadcastMessage("Um Zombie nasceu, temos " .. getGlobalStorageValue(config.zombieCount) .. " Zombies no evento. Corram!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, config.timeBetweenSpawns * 1000) end elselocal fromp, top = config.fromPosition, config.toPosition for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} cid = getThingfromPos(areapos).uid if isPlayer(cid) thendoTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false)doBroadcastMessage(getCreatureName(cid)..' sobreviveu dos Zombie e venceu o evento.') for _,items in ipairs(config.rewards) do doPlayerAddItem(cid, items, 1) doPlayerAddPoints(cid, config.points) end if config.moneyReward[3] == 1 then doPlayerAddItem(cid, config.moneyReward[1], config.moneyReward[2]) end doBroadcastMessage(getPlayerName(cid) .. " venceu o Zombie Event! Parabens!", MESSAGE_STATUS_WARNING) local goblet = doPlayerAddItem(cid, config.goblet, 1) doItemSetAttribute(goblet, "description", "Premio de " .. getPlayerName(cid) .. " por vencer o Zombie Event.") elseif isMonster(cid) thendoRemoveCreature(cid) end end end end endend function pvgaylord()local fromp, top, p, m = config.fromPosition, config.toPosition, 0, 0for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do local areapos = {x = x, y = y, z = z, stackpos = 253} local cid = getThingfromPos(areapos).uid if isPlayer(cid) thenp = p+1 elseif isMonster(cid) thenm = m+1 end end end endif p ~= getGlobalStorageValue(config.playerCount) thensetGlobalStorageValue(config.playerCount, p)endif p < 2 thenreturn trueendaddEvent(pvgaylord,100,nil)end Tenta esse.
  4. Topico Resolvido, pode finalizar. eu usei o script do amoeba.
  5. ta dando esse erro aqui na distro amigo.
  6. Boa Xtibia!! Gostaria de saber se aguem poderia me ajudar? isso é um script de invasão alguem poderia arrumar ele pra mim? estou usando o tfs 0.4 Erro que aparece na distro [1:20:08.608] [Error - LuaInterface::loadFile] data/globalevents/scripts/inv.lua:7: '}' expected (to close '{' at line 1) near 'function'[1:20:08.612] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/inv.lua)[1:20:08.614] data/globalevents/scripts/inv.lua:7: '}' expected (to close '{' at line 1) near 'function' Arquivo inv.lua local days = {["Sunday"] = {["21:30"] = {nome = "Aegis of Immortal", pos = {x=685, y=686, z=7}, monster = {"1 Aegis"}},["12:30"] = {nome = "Aegis of Immortal", pos = {x=685, y=686, z=7}, monster = {"1 Aegis"}}}function onThink(interval, lastExecution)function getDayName()local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}return days[os.date("*t")["wday"]]endhours = tostring(os.date("%X")):sub(1, 5) tb = days[getDayName()][hours]if tb thendoBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.")for _,x in pairs(tb.monster) dofor s = 1, tonumber(x:match("%d+")) dodoSummonCreature(x:match("%s(.+)"), tb.pos)endendendreturn trueend
  7. Sobre o Black-World: Black-World Server está com a intenção de expandir e montar uma verdadeira equipe, a ideia é montar um projeto onde o foco é o RPG e focando um bom player Versus player, o projeto já está bem adiantado, vocês devem conhecer o FoxWorld Server, pois bem, estou continuando o projeto do 0. Host: Servidor esta sendo hosteado no brasil, um bom players Versus players. Distro: Black-World foi lançado na versão 8.60 utilizando o TFS 0.4. Entre e confira o nosso novo Server. Imagens: Website Nosso Shop Templo da City Principal. Area de Treiner Sala de Teleportes.
  8. Sim! Basta adc uma storage na magia.
  9. Boa Tarde Xtibia! Alguém poderia por favor me passa ou criar pra mim o System Top Level? Estou usando o Nicaw Acc, não encontro esse sistema em nenhum lugar
  10. Boa Tarde Xtibi! alguém poderia me ensinar a adicionar um menu no lado direito do meu site? faz 1 semana que eu venho procurando no google, youtube, etc... como que coloca mais eu não achei nenhum tutorial estou usando o nicaw acc, irei posta os arquivos para a edição, for favor me ajudem. codigo da configuração do layout /* Copyright (C) 2007 Nicaw This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ body { background-color: black; background-image: url(dark/tlo.png); color: white; padding-left: 220px; } img { border: 0; } a { color: white; } h2 { background-repeat: no-repeat; font: normal normal 1.5em "Georgia",serif; text-decoration: none; height: 40px; padding-left: 25px; } legend { color: white; } form,input { margin: 0; padding: 0; display: inline; } fieldset{ padding: 5px; } ul { list-style: none; margin: 0; padding: 0; } a:hover{ font-weight: normal; color: gray; } .color0 { background-color: #444444; } .color1 { background-color: #444444; } .color2 { background-color: #656565; } .top { color: white; } .online { font-weight: bold; } .offline { font-weight: bold; } .rowselect { cursor: pointer; } .rowselect:hover { background-color: #fcecbf; } .task-menu{ cursor: pointer; } .task-menu li{ height: 16px; background-repeat: no-repeat; padding-left: 20px; padding-bottom: 5px; } .task-menu li:hover { background-color: rgb(85,56,4); } #container { width: 800px; position: relative; } #header { background-image: url(dark/header.gif); background-position: center; position: absolute; width: 980px; height: 205px; } #server_name { display: none; } #panel { position: absolute; margin-top: 150px; } #panel li { background-image: url(dark/list-item.gif); background-repeat: no-repeat; padding-left: 30px; list-style-type: none; height: 23px; } #panel .top { background-image: url(dark/top.gif); width: 174px; height: 25px; padding-left: 0; padding-right: 0; padding-top: 5px; text-align: center; font-weight: bold; } #panel .mid { background-image: url(dark/mid.gif); background-repeat: repeat-y; text-align: center; padding: 10px; width: 154px; } #panel .bot { background-image: url(dark/bot.gif); background-repeat: no-repeat; padding: 0; margin: 0; width: 174px; height: 13px; } #panel ul { width: 174px; padding: 0; margin: 0; } #panel a { text-decoration: none; color: white; } #panel a:hover { font-weight: bold; } #content { margin-left: 200px; width: 549px; } #content { position: absolute; margin-left: 174px; margin-top: 150px; } #content .top { background-image: url(dark/big-top.gif); width: 626px; height: 25px; padding-left: 0; padding-right: 0; padding-top: 5px; text-align: center; font-weight: bold; } #content .mid { background-image: url(dark/big-mid.gif); background-repeat: repeat-y; padding-left: 20px; padding-right: 20px; padding-top: 10px; padding-bottom: 10px; width: 586px; min-height: 250px; } #content .bot { background-image: url(dark/big-bot.gif); background-repeat: no-repeat; padding: 0; margin: 0; width: 626px; height: 13px; } #error { background-image: url(dark/error.png); background-repeat: no-repeat; position: absolute; font-family: Verdana; font-size: 8pt; font-weight: bold; width: 175px; height: 70px; padding-left: 60px; padding-right: 15px; padding-top: 20px; padding-bottom: 20px; margin-left: 240px; margin-top: 100px; cursor: pointer; } #captcha-image { margin-top: 5px; } #account-image { background-image: url(dark/beastie.gif); background-repeat: no-repeat; width: 227px; height: 265px; float: right; } #choose-skill { float: left; margin-right: 20px; } #form #iobox { z-index: 10; position: fixed; /*IE position: absolute;*/ background-color: #656565; border: 1px solid #000; cursor: move; } #form #iobox fieldset { cursor: default; } Header.inc.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="Author" content="nicaw" /> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title><?php echo $ptitle?></title> <link rel="stylesheet" href="default.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo $cfg['skin_url'].$cfg['skin']?>.css" type="text/css" media="screen" /> <link rel="stylesheet" href="print.css" type="text/css" media="print" /> <link rel="alternate" type="application/rss+xml" title="News" href="news.php?RSS2" /> <script type="text/javascript" src="javascript/prototype.js"></script> <script type="text/javascript" src="javascript/main.js"></script> <link rel="shortcut icon" href="resource/favicon.ico" /> <?php if (!empty($_SESSION['account']) && empty($_COOKIE['remember'])){?> <script type="text/javascript"> //<![CDATA[ function tick() { ticker++; if (ticker > <?php echo $cfg['timeout_session'];?>){ self.window.location.href = 'login.php?logout&redirect=account.php'; }else{ setTimeout ("tick()",1000); } } ticker = 0; tick(); //]]> </script> <?php }?> </head> <body> <div id="form"></div> <div id="container"> <div id="header"><div id="server_name"><?php echo $cfg['server_name']?></div></div> </br></br></br> <div id="panel"> <div id="navigation"> <?php if (file_exists('navigation.xml')){ $XML = simplexml_load_file('navigation.xml'); if ($XML === false) throw new aacException('Malformed XML'); }else{die('Unable to load navigation.xml');} foreach ($XML->category as $cat){ echo '<div class="top">'.$cat['name'].'</div><ul>'."\n"; foreach ($cat->item as $item) echo '<li><a href="'.$item['href'].'">'.$item.'</a></li>'."\n"; echo '</ul><div class="bot"></div>'."\n"; } ?> </div> <div id="status"> <div class="top">Status</div> <div class="mid"> <?php if(!empty($_SESSION['account'])) { $account = new Account(); $account->load($_SESSION['account']); echo 'Logged in as: <b>'.$account->attrs['name'].'</b><br/>'; echo '<button onclick="window.location.href=\'login.php?logout&redirect=account.php\'">Logout</button><hr/>'; } ?> <div id="server_state"> <span class="offline">Server Offline</span> <script type="text/javascript"> //<![CDATA[ new Ajax.PeriodicalUpdater('server_state', 'status.php', { method: 'get', frequency: 60, decay: 1 }); //]]> </script> </div> </div> <div class="bot"></div> </div> <div id="shop"> <div class="top"> Black World Shop</div> <div class="mid"> <a href="http://127.0.0.1/site/shopsystem/index.php?subtopic=shopsystem"><img border="0" height="150" src="https://4.bp.blogspot.com/-1xvMdWSKRAo/Vv7MKqOjypI/AAAAAAAAACQ/dwJf8jfbNeUjOw7G-qU3dQ18eka2ownWQ/s200/photo-82610.png" width="150" /></a> <b><span style="color: #eeeeee; font-family: "arial" , "helvetica" , sans-serif; font-size: 15px;">Troque Suas</span></b><br /> <b><span style="color: #eeeeee; font-family: "arial" , "helvetica" , sans-serif; font-size: 15px;"> Premiums Coins Aqui! </span></b></div> </div> <div class="bot"> </div> </br></br></br></br> </div> </div> imagem do meu site COMO RESOLVI: Procurei Procurei Procurei... vi vários videos no Youtube ensinando a criar sites php até que achei um que me agradou kk vá na pasta layout do seu site, depois abra o arquivo da configuração do seu layout, Exemplo: Dark, ou Darktibia, em fim... abra o arquivo e de CTR + F e procure por isso. Depois disso #panel a:hover { font-weight: bold;} Adicione isso: #panel2 { margin-left: 800px; text-align: center; width:300px; position: absolute; top: 225px; } #panel2 .item_shop{ background-image: url(dark/top.gif); width: 174px; height: 25px; padding-left: 0; padding-right: 0; padding-top: 5px; text-align: center; font-weight: bold; } #panel2 .titulo{ padding-top: 45px; } #panel2 ul { width: 174px; padding: 0; margin: 0; }
  11. Boa noite xtibia! me desculpem se estou publicando no lugar errado. bom achei um shopsystem na internet gostei muito dele mais eu estou tendo um problema, não esta dando pra logar no site ta tudo configurado certinho mais nao loga não loga e nem aparece erro eu estou usando esse shopsystem aqui. Download do shop http://www.mediafire.com/download/naaen7nt3dx81a4/shopsystem.rar up up poxa por favor gente, me ajudem? :mellow:
  12. Mais o banco de dados foi criado no phpmyadmin amigo, criei o banco de dados e já coloquei no config do site tudo certo mais continua dando esse erro
  13. Alguem poderia me ajudar? estou usando usando o nicaw acc.
  14. Boa Tarde Xtibia! Bom optai a usar o Nicaw acc pois ele e super leve, estou com muita dificuldade para configurar ele pois quando tento acc ele no navegar da um erro, e eu não estou conseguindo arrumar isso teria como alguém me ajudar por favor? vou colocar a imagem do erro e o download dos arquivos do site aqui. Imagem do erro Link dos arquivos do site Download up
  • Quem Está Navegando   0 membros estão online

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