Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''resolvido''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Bem, é meio simples mas eu não sou tão bom em programação! Eu queria q quando o player falasse com o npc "historia" ele contasse uma historia e quando falasse "missão" ganharia uma storage, ai quando tivesse outra storage a (13500) ele mandasse matar alguns monstros e quando terminasse de matar ele dava uns golds Rep+
  2. 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; }
  3. Bom consegui deixar meu SERVIDOR de poketibia com o ''Vai Doka'' ou seja ''Vai Bulbasaur'' laranja fazendo que não apareça no console ! Mas o ''Volte Doka ou seja ''Volte Bulbasaur'' ainda está amarelo e aparecendo no console :x
  4. Pessoal, eu tenho uma duvida, onde eu defino o alcance do NPC em SQMS? porque eu vejo que em alguns OTS, o npc só alcance com 3 sqms de distancia, em outros são 5, onde eu configuro isso?
  5. Olá galera do XT, Alguem poderia me ajudar com 1 npc que só viaja se tiver tantos reset? o npc é esse: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'mandagascar'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 450, destination = {x=32215, y=31116, z=7} }) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) e o meu sistema de reset e pela DB com site.
  6. Eu queria por este comando so pra vip usa!! Comando Rep+
  7. Alguem consegui fazer o systema de auto loot onde vc clica no corpo morto do pokemon os itens que ele drop vai todos pra sua bag direto estilo PxG?? Rep++
  8. É mais ou menos assim, quando um player tiver uma storage ele vai falar com o npc. O npc dá a escolha de 3 itens diferentes para cada vocação e cada vocação os itens são diferentes. Por exemplo, um knight fala e ele pergunta "axe, club, sword, ou shield ?" ai o knight fala e ele ganha o item, um sorcerer fala e ele "wand ou spellbook ?" etc... Porfavor me ajudem !! Obrigado desde já <3 Rep +
  9. Eu adicionei novas vocações! Só que quando eu vou tentar abrir o serv dá esse erro aqui ERROR: Unable to load vocations! Porfavor me ajudem !!! Meu vocation.xml anexado. Obrigado desde já ! <3 vocations.xml
  10. Galera, eu fiz downgrade de uma versão 10.76 de um tfs puro, para 10.41( já que o obj builder nao tem suporte pra 10.41+). Porem quando vou entrar no jogo, o personagem nao loga! fica "conectando ao servidor de jogo".. Eu mexi no itemsloader, protocollogin e definitions e tals, porem nao loga! e o fps fica em 1141.. Alguem pode me ajuda?
  11. Bom eu tenho um servidor de poketibia e tem uma area vip nele, porem todo mundo consegue passar la na area vip tranquilamente sem ter adquirido a vip, gostaria de saber como eu posso resolver isso
  12. Olá Galera do XT, vou direto ao ponto. Recentemente descobri uma coisa muito importante em relação a bugs, a unica solução que encontrei foi remover de uma vez por todas o Account Manager de meu servidor, Já tentei deletar o Account Manager dos Players, tentei criar o Account Manager e mover pra uma conta que não existe, tentei colocar codigos no creaturescripts para o Account Manager nunca poder logar, mas tem um jeito aí galera que complica a todos. Enfim, estou pedindo encarecidamente para que alguem me explique onde alterar na source para eu remover esse trem e poder compilar ela denovo.
  13. Esse script, é um script que protege jogador com level menor que 150 para que não percam loot, mas eu queria que ele fizesse isso, mas tem um porém, jogador que tivesse com pk, red ou black irão perder loot, conseguiram entender? function onDeath(cid, corpse, deathList) local config = { onlypremium = false, -- se precisa ser premium para não perder nada exp = true, -- se ao morrer o jogador irá perder exp skills = true, -- se ao morrer vai perder skills magic = true, -- se vai perder magic level loot = false, -- se ao morrer o jogador irá perder o loot level = 150 -- até que level irá proteger o player } if isPlayer(cid) and getPlayerLevel(cid) <= config.level then if config.onlypremium == true and not isPremium(cid) then return TRUE end if config.loot == false then doCreatureSetDropLoot(cid, false) end if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end return TRUE end return TRUE end
  14. Bom eu tenho um servidor de poketibia que utiliza otclient e eu precisava mexer no mapa dele porem, quando vou abrir o rme com o dat do otclient aparece um erro e o mapa inteiro fica bugado, tudo em vermelho
  15. fala galera blz boa noite, é o seguinte no meu creatures events num tem nenhum anti mc e mesmo assim não consigo logar duas contas no meu ot, qual outro lugar poderia está bloqueado ?? se eu pego a distro e coloco em outro ot funciona o mc do ot então num é na distro certo ?? se for na distro source posso olhar tbm aonde ?? pode fechar já consegui....
  16. blz galera boa noite, como conserta esses dois erros aos script aí local GemsConfig = { [2153] = { vocations = {4, 8, 12}, effect = CONST_ME_EXPLOSIONAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_MELEEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2154] = { vocations = {3, 7, 11}, effect = CONST_ME_HOLYDAMAGE, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SKILL_DISTANCEPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2156] = { vocations = {1, 5, 9}, effect = CONST_ME_MORTAREA, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } }, [2158] = { vocations = {2, 6, 10}, effect = CONST_ME_SMALLPLANTS, conditions = { [CONDITION_ATTRIBUTES] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_STAT_MAGICLEVELPERCENT] = 112, [CONDITION_PARAM_BUFF] = true, [CONDITION_PARAM_SUBID] = 200 }, [CONDITION_HASTE] = { [CONDITION_PARAM_TICKS] = 3 * 60 * 60 * 1000, [CONDITION_PARAM_SPEED] = 40 } } } } local Conditions = {} for itemid, info in pairs(GemsConfig) do Conditions[itemid] = {} for condition, parameters in pairs(info.conditions) do local new = createConditionObject(condition) for parameter, value in pairs(parameters) do setConditionParam(new, parameter, value) end table.insert(Conditions[itemid], new) end end local function doShowGemAura(cid, type) local position = getThingPosition(cid) doSendMagicEffect(position, type) if isCreature(cid) then if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then addEvent(doShowGemAura, 1 * 1000, cid, type) end end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) if not GemsConfig[item.itemid] then return false end if not isInArray(GemsConfig[item.itemid].vocations, getPlayerVocation(cid)) then return doPlayerSendCancel(cid, "You cannot use this spirit gem.") end if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 200) then return false end for _, condition in pairs(Conditions[item.itemid]) do doAddCondition(cid, condition) end doCreatureSay(cid, "AAAAH! I FEEL THE POWER!", TALKTYPE_ORANGE_1) doSendMagicEffect(toPosition, GemsConfig[item.itemid].effect) addEvent(doShowGemAura, 1 * 1000, cid, GemsConfig[item.itemid].effect) doRemoveItem(item.uid, 1) return true end agora do mount -- [( Mount System 1.4 created by Doidin for XTibia.com )] -- function onUse(cid, item) local outfit = {lookType = 4} -- Outfit da montaria! local exhaust = 60 -- Tempo para player poder usar o item novamente! (tempo em segundos) local time = 60 -- Tempo para ficar na montaria! (tempo em segundos) local speed = 300 -- Velocidade adicionada ao player após usar o item! (300 = velocidade, quanto maior mais rapido...) local mana = 500 -- Quantidade de mana que o player necessita para usar o sistema! local premium = "yes" -- Apenas players premium accounts "yes" or "no"!? local storage = 9393 -- Não mexa aqui! if premium == "yes" and not isPremium(cid) then return doPlayerSendTextMessage(cid, 23, "Sorry, only premium players.") end if(getCreatureMana(cid) < mana) then return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) end if (getPlayerStorageValue(cid, storage) <= os.time()) then doCreatureSay(cid, "Yeeeah!!!\nYou went up on his ride.", 19) doSetCreatureOutfit(cid, outfit, time*1000) doChangeSpeed(cid, speed) doSendMagicEffect(getCreaturePosition(cid), 34) setPlayerStorageValue(cid, storage, os.time()+exhaust) doPlayerAddMana(cid, -mana) addEvent(doChangeSpeed, time*1000+40, cid, -speed) addEvent(doPlayerSendTextMessage, time*1000+45, cid, 23, "Mount System is time out!") addEvent(doSendMagicEffect, time*1000+50, getCreaturePosition(cid), 2) else doPlayerSendCancel(cid, "Sorry, you only can again use this item after "..exhaust.." seconds.") end return TRUE end
  17. blz galera, criei o site ta funcionando,só q agora na hora de abre o ot da esse erro unable to load config.lua
  18. Boa noite. Eu acabei de me deparar com um problema no meu shop system. Eu coloco por exemplo, para dar 100 crystal coin, mas só chega um. Alguem pode me ajudar com isso?
  19. fawkz12

    Anti MC

    Duvida: Meu Anti MC não funfa... CONSIGO abrir 2 clientes ao mesmo tempo Ajuda: Como colocar para apenas poder abrir 1 cliente? SCRIPT do ANTI MC --[[ Anti Multi-Client System Modify but preserve credits Developed by Notorious ]]-- local config = { msg = "Notorious Anti-MC System has detected that you are multi clienting.", maxMultiClients = 2, allowGroupId = 2, ignoreIps = {"ip1", "ip2"} } function onLogin(cid) if getPlayerGroupId(cid) >= config.allowGroupId then return TRUE end local number local playersOnline = getPlayersOnline() for _, pid in pairs(playersOnline) do local pip = getPlayerIp(pid) if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, doConvertIntegerToIp(getPlayerIp(cid))) then number = (number or 0) + 1 if number > config.maxMultiClients then return FALSE, doPlayerPopupFYI(cid, config.msg) end end end return TRUE end
  20. Sempre quando abro meu OT, da essa erro - [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/login.lua:239: '<eof>' expected near 'end' [20/03/2016 19:21:47] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua) [20/03/2016 19:21:47] data/creaturescripts/scripts/login.lua:239: '<eof>' expected near 'end' Meu login.lua local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local accountManager = getPlayerAccountManager(cid) if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 80 then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 90) doCreatureSetDropLoot(cid, false) end if getPlayerLevel(cid) >= 81 and getPlayerLevel(cid) <= 149 then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 80) doCreatureSetDropLoot(cid, false) end if getPlayerLevel(cid) >= 150 then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 75) doCreatureSetDropLoot(cid, false) end if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if getCreatureName(cid) == "Account Manager" then local outfit = {} if accountManagerRandomPokemonOutfit then outfit = {lookType = getPokemonXMLOutfit(oldpokedex[math.random(151)][1])} else outfit = accountManagerOutfit end doSetCreatureOutfit(cid, outfit, -1) return true end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end local outfit = {} if getPlayerVocation(cid) == 0 then doPlayerSetMaxCapacity(cid, 0) doPlayerSetVocation(cid, 1) setCreatureMaxMana(cid, 6) doPlayerAddSoul(cid, -getPlayerSoul(cid)) setPlayerStorageValue(cid, 19898, 0) if getCreatureOutfit(cid).lookType == 128 then outfit = {lookType = 510, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)} elseif getCreatureOutfit(cid).lookType == 136 then outfit = {lookType = 511, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132)} end doCreatureChangeOutfit(cid, outfit) end registerCreatureEvent(cid, "dropStone") registerCreatureEvent(cid, "ExpVip") registerCreatureEvent(cid, "upganha") registerCreatureEvent(cid, "ShowPokedex") --alterado v1.6 registerCreatureEvent(cid, "ClosePokedex") --alterado v1.6 registerCreatureEvent(cid, "WatchTv") registerCreatureEvent(cid, "StopWatchingTv") registerCreatureEvent(cid, "WalkTv") registerCreatureEvent(cid, "RecordTv") registerCreatureEvent(cid, "PlayerLogout") registerCreatureEvent(cid, "WildAttack") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "PokemonIdle") registerCreatureEvent(cid, "EffectOnAdvance") registerCreatureEvent(cid, "GeneralConfiguration") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "LookSystem") registerCreatureEvent(cid, "T1") registerCreatureEvent(cid, "T2") registerCreatureEvent(cid, "task_count") registerCreatureEvent(cid, "TP") registerCreatureEvent(cid, "RepLogin") registerCreatureEvent(cid, "NewLogin") registerCreatureEvent(cid, "pokemons") registerCreatureEvent(cid, "TP") addEvent(doSendAnimatedText, 500, getThingPosWithDebug(cid), "Bem Vindo !", COLOR_BURN) if getPlayerStorageValue(cid, 99284) == 1 then setPlayerStorageValue(cid, 99284, -1) end if getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then setPlayerStorageValue(cid, 6598754, -1) setPlayerStorageValue(cid, 6598755, -1) doRemoveCondition(cid, CONDITION_OUTFIT) --alterado v1.9 \/ doTeleportThing(cid, posBackPVP, false) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) end doChangeSpeed(cid, -(getCreatureSpeed(cid))) --///////////////////////////////////////////////////////////////////////////-- local storages = {17000, 63215, 17001, 13008, 5700} for s = 1, #storages do if not tonumber(getPlayerStorageValue(cid, storages[s])) then if s == 3 then setPlayerStorageValue(cid, storages[s], 1) elseif s == 4 then setPlayerStorageValue(cid, storages[s], -1) else if isBeingUsed(getPlayerSlotItem(cid, 8).itemid) then setPlayerStorageValue(cid, storages[s], 1) else setPlayerStorageValue(cid, storages[s], -1) end end doPlayerSendTextMessage(cid, 27, "Sorry, but a problem occurred on the server, but now it's alright") end end --/////////////////////////////////////////////////////////////////////////-- if getPlayerStorageValue(cid, 17000) >= 1 then -- fly local item = getPlayerSlotItem(cid, 8) local poke = getItemAttribute(item.uid, "poke") doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) doRemoveCondition(cid, CONDITION_OUTFIT) doSetCreatureOutfit(cid, {lookType = flys[poke][1] + 351}, -1) local apos = getFlyingMarkedPos(cid) apos.stackpos = 0 if getTileThingByPos(apos).itemid <= 2 then doCombatAreaHealth(cid, FIREDAMAGE, getFlyingMarkedPos(cid), 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, getFlyingMarkedPos(cid)) end doTeleportThing(cid, apos, false) if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) >= 1 then sendAuraEffect(cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8 end local posicao = getTownTemplePosition(getPlayerTown(cid)) markFlyingPos(cid, posicao) elseif getPlayerStorageValue(cid, 63215) >= 1 then -- surf local item = getPlayerSlotItem(cid, 8) local poke = getItemAttribute(item.uid, "poke") doSetCreatureOutfit(cid, {lookType = surfs[poke].lookType + 351}, -1) --alterado v1.6 doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) >= 1 then sendAuraEffect(cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8 end elseif getPlayerStorageValue(cid, 17001) >= 1 then -- ride local item = getPlayerSlotItem(cid, 8) local poke = getItemAttribute(item.uid, "poke") if rides[poke] then doChangeSpeed(cid, getPlayerStorageValue(cid, 54844)) doRemoveCondition(cid, CONDITION_OUTFIT) doSetCreatureOutfit(cid, {lookType = rides[poke][1] + 351}, -1) if getItemAttribute(item.uid, "boost") and getItemAttribute(item.uid, "boost") >= 50 and getPlayerStorageValue(cid, 42368) >= 1 then sendAuraEffect(cid, auraSyst[getItemAttribute(item.uid, "aura")]) --alterado v1.8 end else setPlayerStorageValue(cid, 17001, -1) doRegainSpeed(cid) end local posicao2 = getTownTemplePosition(getPlayerTown(cid)) markFlyingPos(cid, posicao2) elseif getPlayerStorageValue(cid, 13008) >= 1 then -- dive if not isInArray({5405, 5406, 5407, 5408, 5409, 5410}, getTileInfo(getThingPos(cid)).itemid) then setPlayerStorageValue(cid, 13008, 0) doRegainSpeed(cid) doRemoveCondition(cid, CONDITION_OUTFIT) return true end if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 1034, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1) else doSetCreatureOutfit(cid, {lookType = 1035, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1) end doChangeSpeed(cid, 800) elseif getPlayerStorageValue(cid, 5700) > 0 then --bike doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, getPlayerStorageValue(cid, 5700)) --alterado v1.8 if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 2099}, -1) else doSetCreatureOutfit(cid, {lookType = 2098}, -1) end elseif getPlayerStorageValue(cid, 75846) >= 1 then --alterado v1.9 \/ doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) setPlayerStorageValue(cid, 75846, -1) sendMsgToPlayer(cid, 20, "You have been moved to your town!") else doRegainSpeed(cid) end if getPlayerStorageValue(cid, 22545) >= 1 then setPlayerStorageValue(cid, 22545, -1) doTeleportThing(cid, getClosestFreeTile(cid, posBackGolden), false) setPlayerRecordWaves(cid) end if useKpdoDlls then doUpdateMoves(cid) doUpdatePokemonsBar(cid) onPokeHealthChange(cid) end end if useKpdoDlls then doUpdateMoves(cid) doUpdatePokemonsBar(cid) end return true end Ja Resolvi -- no final do SCRIPT tem if useKpdoDlls then doUpdateMoves(cid) doUpdatePokemonsBar(cid) onPokeHealthChange(cid) end end if useKpdoDlls then doUpdateMoves(cid) doUpdatePokemonsBar(cid) end return true end Removi o ultimo end if useKpdoDlls then doUpdateMoves(cid) doUpdatePokemonsBar(cid) end e deu certo
  21. Na hora que salvei o mapa totalmente a negia caiu ai nao me preocupei pq eu ja tinha salvado , so que quando fui abrir de novo fica so em 98%, e quando carrega da fechar progama e nao volta. Nao teria uma soluçao ae , ou abrir so esses 98% ?
  22. Se alguém tiver um servidor 10.80 para que eu possa entrar nele com o meu mapa?
  23. Galera, tem como arrumar isso, sem dar nenhum erro, queria que ficasse tudo arrumadinho sabe?? porque assim dificulta muito para editar as coisas, e não é somente aqui, outras pastas tbm são!! Alguem da um help ai! ):
  24. Olá galera, estou usando PDA e estou com pequenos problemas em relação a bike. Como pretendo colocar em shop vip eu coloquei o item movível, posso arrastar para bag e chão, relacionado a bike, no centurion eu podia usar a bike e tirar o pokemon da pokebola pelo icone da ball clicando com botão direito do mouse, neste pda o pokemon só sai da pokebola pelo pokebar, já clicando na ball ele só aceitar quando não esta usando a bike, já tentei usar o script do centurion mas ficou a mesma coisa sendo q no centurion funcionava tudo certo. Ajude-me por favor local t = {text='Mount, bike!', dtext='Demount, bike!', s=5700, speed = 3000} local bikeid = 12774 -- ITEMID da Bike local function BikeSpeedOn(cid, t) setPlayerStorageValue(cid, t.s, t.speed) doChangeSpeed(cid, -getCreatureSpeed(cid)) doChangeSpeed(cid, t.speed) end local function BikeSpeedOff(cid, t) setPlayerStorageValue(cid, t.s, -1) doRegainSpeed(cid) end function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getThingPos(cid) if getPlayerItemCount(cid, 12774) <= 0 then return doPlayerSendCancel(cid, "Você precisa ter a bike na sua bag.") end -- if #getCreatureSummons(cid) >= 1 then -- return doPlayerSendCancel(cid, "Return your pokemon.") -- end if getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 or getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 75846) >= 1 or getPlayerStorageValue(cid, 6598754) >= 1 or getPlayerStorageValue(cid, 6598755) >= 1 then return doPlayerSendCancel(cid, "You can't do that right now.") end if getPlayerStorageValue(cid, t.s) <= 0 then if item.actionid ~= 12120 then doRemoveItem(item.uid, 1) local create_action = doPlayerAddItem(cid, bikeid, 1) doItemSetAttribute(create_action, "aid", 12120) setPlayerStorageValue(cid, 12120, 1) doSendMagicEffect(pos, 177) doCreatureSay(cid, t.text, 19) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted in a bike.') BikeSpeedOn(cid, t) if getPlayerSex(cid) == 1 then doSetCreatureOutfit(cid, {lookType = 1787}, -1) else doSetCreatureOutfit(cid, {lookType = 1619}, -1) end else doPlayerSendCancel(cid, "This bike is in use.") end else if item.actionid == 12120 and getCreatureOutfit(cid).lookType == 1787 or getCreatureOutfit(cid).lookType == 1619 then doRemoveItem(item.uid, 1) doPlayerAddItem(cid, bikeid, 1) setPlayerStorageValue(cid, 12120, -1) doSendMagicEffect(pos, 177) doCreatureSay(cid, t.dtext, 19) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You haven demouted of a bike.') BikeSpeedOff(cid, t) doRemoveCondition(cid, CONDITION_OUTFIT) else doPlayerSendCancel(cid, "This bike isn't yours.") end end return true end
×
×
  • Criar Novo...