Ir para conteúdo

Batat

Campones
  • Total de itens

    24
  • Registro em

  • Última visita

Tudo que Batat postou

  1. Batat

    Erro creaturescript.

    function onMoveItem(cid, item, fromPosition, toPosition, fromItem, toItem, fromGround, toGround, status) local fromContainer = fromItem local toContainer = toItem if not isCreature(cid) then return false end if item.itemid == 16180 or item.actionid == 12500 or item.actionid == 2309 then return false end if isWatchingTv(cid) then return false end if isInArray(itemsUnmoveable, item.itemid) then doPlayerSendCancel(cid, "Você não pode mover este item.") return false end if item.itemid == 19275 and isBiking(cid) then doPlayerSendCancel(cid, "Você não pode mover este item.") return false end local name = getCreatureName(cid) local transform = false if fromPosition.x ~= 0 and toContainer.uid == 0 and fromContainer.uid == 0 and toPosition.x == 65535 and getPlayerSlotItem(cid, 8).uid ~= 0 then doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL) return false end local itemID = item.itemid if itemID >= 14795 and itemID <= 14879 or (pokeballs[getPokeballType(itemID)] and (itemID == pokeballs[getPokeballType(itemID)].use and (#getCreatureSummons(cid) > 0 or isRiderOrFlyOrSurf(cid)))) then doPlayerSendCancel(cid, "Você não pode mover este item.") return false end if isInArray({460, 12171, 12172}, toItem.itemid) or (toContainer.uid == 0 and getThingPos(cid).z ~= toPosition.z) then doPlayerSendDefaultCancel(cid, RETURNVALUE_CANNOTTHROW) return false end if getItemNameById(item.itemid):find("portrait") then return false end if isInArray({2589, 15446, 15447, 15448, 15449, 12355}, toContainer.itemid) then -- nao fazer nada no cp return true end local lixeira = {15416, 15415} local liixeira = false local pos = toPosition local items = getItemsfromPos(pos) for i = 1, #items do local name = getItemInfo(items.itemid).name if string.find(name, "fainted") or string.find(name, "defeated") then doSendMsg(cid, "Não pode jogar lá.") return false elseif getItemInfo(items.itemid).blockSolid then if isInArray(lixeira, items.itemid) then liixeira = true end end end local isToTile = (toGround.uid == getTileInfo(toPosition).uid) or fromGround.itemid == 0 and toGround.itemid ~= 0--fromGround.itemid == 0 and toGround.itemid ~= 0 local isFromTile = not isToTile local isToSlot = not isToTile and not isContainer(toItem.uid) local isFromSlot = not isFromTile and not isContainer(fromItem.uid) --if not (fromItem.uid == toItem.uid or (isContainer(fromContainer.uid) and doComparePosition(getThingPos(fromContainer.uid), toPosition)) or (status.inInv == 0 and status.inInvBag == 1)) then local isGoingToPlayer = isFromTile and toGround.itemid == 0 local maxItem = 800 if isGoingToPlayer and not isPokeball(item.itemid) then if isContainer(item.uid)then if (getPlayerTotalItem(cid) + #getAllItemsFromContainer(item)) > maxItem then doPlayerSendCancel(cid, "Você não pode carregar mais itens pois já lotou a quantidade de slot's disponíveis") return false end else if getPlayerTotalItem(cid) + 1 > maxItem then doPlayerSendCancel(cid, "Você não pode carregar mais itens pois já lotou a quantidade de slot's disponíveis") return false end end end if getPlayerSlotItem(cid, 10).uid and item.uid ~= getPlayerSlotItem(cid, 10).uid then if isGoingToPlayer and not isFromSlot then if isPokeball(item.itemid) then if not (fromItem.uid == toItem.uid or (isContainer(fromContainer.uid) and doComparePositions(getThingPos(fromContainer.uid), toPosition)) or (status.inInv == 0 and status.inInvBag == 1)) then local totalball = #getPlayerPokeballs(cid) if totalball >= 6 then doPlayerSendCancel(cid, "Você já está carregando 6 pokémons!") return false end end elseif isContainer(item.uid) then if #getPlayerPokeballs(item.uid) > 0 then local totalBag = #getPlayerPokeballs(item.uid) local totalPlayer = #getPlayerPokeballs(cid) local s = ""..(totalBag > 1 and "s" or "").."" if (totalBag + totalPlayer) >= 6 then doPlayerSendCancel(cid, "Está mochila está com "..totalBag.." pokémon"..s.." e você "..(totalPlayer == 6 and "não" or "só").." pode carregar mais "..(totalPlayer == 6 and "nenhum pokémon" or (6 - totalPlayer).." pokémon"..((6 - totalPlayer) > 1 and "s" or ""))..".") return false end end end end end if isToTile then if isInArray(uniqueItems, item.itemid) then doPlayerSendCancel(cid, "Isso é um item exclusivo, você não pode joga-lo fora!") return false end if getItemAttribute(item.uid, "unique") or isPokeball(item.itemid) or isContainer(item.uid) or isInArray(uniqueItems, item.itemid) then if hasSqm(toPosition) and (toGround.itemid ~= 0) then -- Indo para o chão. if isContainer(item.uid) then local itens = getItensUniquesInContainer(item.uid) local sendMsg = false if #itens >= 1 then doPlayerSendCancel(cid, #itens.." ite"..(#itens < 2 and "m" or "ns").." neste recipiente "..(#itens < 2 and "é exclusivo" or "são exclusivos")..". Você não pode jogá-lo"..(#itens < 2 and "" or "s").." fora!") return false end else if getItemAttribute(item.uid, "unique") or getItemAttribute(item.uid, "torneio") or isInArray(uniqueItems, item.itemid) then doPlayerSendCancel(cid, "Isso é um item exclusivo, você não pode joga-lo fora!") return false end end else -- Indo para qual quer outro lugar. if fromItem.uid == toItem.uid then -- nao fazer nada na poke bag principal return true end if not isPosEqual(fromPosition, toPosition) or not isGoingToPlayer then if isContainer(item.uid) then local itens = getItensUniquesInContainer(item.uid) local sendMsg = false if #itens >= 1 then doPlayerSendCancel(cid, #itens.." ite"..(#itens < 2 and "m" or "ns").." neste recipiente "..(#itens < 2 and "é exclusivo" or "são exclusivos")..". Você não pode jogá-lo"..(#itens < 2 and "" or "s").." fora!") return false end else if getItemAttribute(item.uid, "unique") or getItemAttribute(item.uid, "torneio") or isInArray(uniqueItems, item.itemid) then doPlayerSendCancel(cid, "Isso é um item exclusivo, você não pode joga-lo fora!") return false end end end end end end local isGoingToGround = (hasSqm(toPosition) and toGround.itemid ~= 0) if isPokeball(item.itemid) and toPosition.x == 65535 then if not getItemAttribute(item.uid, "unique") and #getPlayerPokeballs(cid) < 6 then doTransformPokeballIcon(cid, item, isGoingToGround) end else if not getItemAttribute(item.uid, "unique") and not getItemAttribute(item.uid, "torneio") then doTransformPokeballIcon(cid, item, isGoingToGround) end end if liixeira then doRemoveItem(item.uid) return false end return true end function getItemsfromPos(position, fromStackpos) local toret = { } -- table to return items position.stackpos = fromStackpos if position.stackpos == nil then position.stackpos = 1 -- default end while true do -- loop to catch the items and insert them in toret table local thing = getThingfromPos(position) if thing.itemid == 0 then -- thing doesn't exist, break the loop... break end if getWholeThing ~= nil and getWholeThing ~= 0 then -- if getWholeThing isn't nil and isn't 0 table.insert(toret,thing) else -- else, insert only item uid in toret table table.insert(toret,thing) end position.stackpos = position.stackpos + 1 -- get next item end return toret end
  2. Bom dia, Alguém saberia me informar porque acontece esse erro? E tentar me ajudar a solucionar. Fico grato!
  3. Batat

    Icone (Houses)

    Bom dia galera, Gostaria de saber se alguém poderia me dizer, "mostrar" como fazer para que os pokemons tenham ícones nas houses, igual o exemplo abaixo. Obrigado!
  4. Boa noite, Estou com um problema, quero adicionar o dodge de mana, já consegui adicionar o de vida mas o de mana não estou conseguindo. O script que usei para adicionar o de vida foi este: https://www.xtibia.com/forum/topic/234507-tfs-1x-dodge-system/ Alguém pode me auxiliar. TFS 1.2.
  5. Olá,

    Estou com um problema no meu servidor, ao caminhar e atk o atk fica mais rápido.

    Se puder me ajudar.

     

     

  6. Boa tarde, Estou com um problema no meu servidor, ao caminhar a velocidade de atk do personagem e aumentada. Preciso de ajuda para resolver este problema se alguém poder auxiliar, fico grato.
  7. Galera, Compilei uma source TF - 1.3, gostaria de saber se tem alguém que pode me ajudar. Não sei configurar ela para meu servidor, para que eu possa deixar ele online. Fico grato de alguém conseguir dar esta força
  8. Batat

    Modificação de client.

    Bom, o client que estou usando é este aqui. Não possui entergame.lua nele, e nem mesmo no servidor.
  9. Bom dia, Gostaria da ajuda de alguém para poder editar meu client, necessito modifica-lo para 10.98 teria alguém que poderia me ajudar? Auxiliar nos procedimentos. Agradeço dês de já.
  10. Olá maninho estou usando a 7.3.12. Baixei o 1.7.4, não funcionou. É tibia o servidor.
  11. Error occured! Error ID: #C-2 More info: ERROR: #C-2 : Class::ConfigLUA - LUA config file doesn't exist. Path: C:/site/config.lua File: C:\xampp\htdocs\classes/configlua.php Line: 24 File: C:\xampp\htdocs\classes/configlua.php Line: 12 File: C:\xampp\htdocs\system/load.init.php Line: 42 File: C:\xampp\htdocs/index.php Line: 18 Já modifiquei na config.lua está assim e o erro continua: # Account Maker Config $config['site']['serverPath'] = "C:/site/";
  12. Obrigado, se precisar de mais algo só avisar que lhe passo. Anexado a pasta config, ou se preferir abaixo. <?PHP // ----Config Shop---- $outfits_list = array(); $loyalty_title = array(50 => 'Scout', 100 => 'Sentinel', 200 => 'Steward', 400 => 'Warden', 1000 => 'Squire', 2000 => 'Warrior', 3000 => 'Keeper', 4000 => 'Guardian', 5000 => 'Sage'); $config['shop']['newitemdays'] = 1; #days to item be new in shop # Pagseguro configs $config['pagseguro']['testing'] = false; $config['pagseguro']['tokentest'] = ""; $config['pagseguro']['email'] = ''; $config['pagseguro']['apitoken'] = ''; # Bank transfer data $config['banktransfer']['bank'] = "Caixa Econômica"; $config['banktransfer']['agency'] = ""; $config['banktransfer']['account'] = ""; $config['banktransfer']['name'] = ""; $config['banktransfer']['operation'] = 003; // 0 = no operation # PayPal configs $config['paypal']['email'] = ""; # Social Networks $config['social']['status'] = true; $config['social']['facebook'] = "https://www.facebook.com/tibia"; # PAGE: characters.php $config['site']['quests'] = array( "Demon Helmet" => 2213, "In Service of Yalahar" => 12279, "Pits Of Inferno" => 10544, "The Ancient Tombs" => 50220, "The Annihilator" => 2215, "The Demon Oak" => 1010, "Wrath Of The Emperor" => 12374); # time in days to show the former names $config['site']['formerNames'] = 10; $config['site']['formerNames_amount'] = 10; # Account Maker Config $config['site']['serverPath'] = "C:/Users/games/Downloads/REUPAR_OTSERVER_/otxserver-new-master/"; $config['site']['useServerConfigCache'] = false; $towns_list = array( 1 => 'Venore', 2 => 'Thais', 3 => 'Kazordoon', 4 => 'Carlin', 5 => 'Ab\'Dendriel', 6 => 'Rookgaard', 7 => 'Liberty Bay', 8 => 'Port Hope', 9 => 'Ankrahmun', 10 => 'Darashia', 11 => 'Edron', 12 => 'Svargrond', 13 => 'Yalahar', 14 => 'Farmine', 28 => 'Gray Beach', 29 => 'Roshamuul', 33 => 'Rathleton', 34 => 'Krailos', 51 => 'Dawnport', 52 => 'Feyrist', ); # this is important if you want to use ajax check in your create account $config['site']['sqlHost'] = "localhost"; $config['site']['sqlUser'] = "root"; $config['site']['sqlPass'] = "YOUR DATABASE PASSWORD HERE"; $config['site']['sqlBD'] = "YOUR DATABASE NAME"; # Create Account Options $config['site']['one_email'] = true; $config['site']['create_account_verify_mail'] = true; $config['site']['verify_code'] = true; $config['site']['email_days_to_change'] = 7; $config['site']['newaccount_premdays'] = 0; $config['site']['send_register_email'] = true; # Create Character Options $config['site']['newchar_vocations'] = array(0 => 'Rook Sample'); // if you wan't use rook, put (1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample'); $config['site']['newchar_towns'] = array(6, 51); $config['site']['max_players_per_account'] = 10; # Emails Config $config['site']['send_emails'] = true; $config['site']['mail_address'] = ""; $config['site']['mail_senderName'] = ""; $config['site']['smtp_enabled'] = true; $config['site']['smtp_host'] = "ssl://smtp.gmail.com"; $config['site']['smtp_port'] = 465; $config['site']['smtp_auth'] = true; $config['site']['smtp_user'] = ""; $config['site']['smtp_pass'] = ""; $config['site']['smtp_secure'] = true; # PAGE: accountmanagement.php $config['site']['send_mail_when_change_password'] = true; $config['site']['send_mail_when_generate_reckey'] = true; $config['site']['email_time_change'] = 7; $config['site']['daystodelete'] = 7; $config['site']['flash_client_enabled'] = false; # PAGE: guilds.php $config['site']['guild_need_level'] = 8; $config['site']['guild_need_pacc'] = false; $config['site']['guild_image_size_kb'] = 50; $config['site']['guild_description_chars_limit'] = 2000; $config['site']['guild_description_lines_limit'] = 6; $config['site']['guild_motd_chars_limit'] = 250; # PAGE: adminpanel.php $config['site']['access_admin_panel'] = 3; # PAGE: latestnews.php $config['site']['news_limit'] = 6; # PAGE: killstatistics.php $config['site']['last_deaths_limit'] = 40; # PAGE: team.php $config['site']['groups_support'] = array(2, 3, 4, 5, 6); # PAGE: highscores.php $config['site']['groups_hidden'] = array(3, 4, 5, 6); $config['site']['accounts_hidden'] = array(1); # PAGE: lostaccount.php $config['site']['email_lai_sec_interval'] = 180; # Pagseguro offers // ValorR$ => Qtd_coins $config['pagseguro']['offers'] = array( 500=>75, 800=>125, 1500=>250, 2800=>500, 4900=>1000 ); // Nome do produto $config['pagseguro']['produtoNome'] = 'Tibia Coins'; $config['pagseguro']['urlRedirect'] = 'https://127.0.0.1/'; $config['pagseguro']['urlNotification'] = 'https://127.0.0.1/retpagseguro.php'; # Layout Config $config['site']['layout'] = 'tibiarl'; $config['site']['vdarkborder'] = '#505050'; $config['site']['darkborder'] = '#D4C0A1'; $config['site']['lightborder'] = '#F1E0C6'; $config['site']['download_page'] = false; $config['site']['serverinfo_page'] = true; config.rar
  13. Poderia me ajudar? Não consegui arrumar o problema, agradeço se puder.
  14. Bom dia, Estou com este erro abaixo, se alguém puder me auxiliar, fico grato.
  15. Estou usando o client 8.60 não e proprio ta por ip, tipo peguei a sprite da versão 11 do tibia e add no object builder tem alguma coisa haver sabe dizer?
  16. Mas então quando eu boto 12667 e tento pegar o item no servidor o client crasha
  17. Acho que fiz direito mas não esta funcionando POR FAVOR se alguém souber como arrumar isso AJUDA AÍ.. Desde já agradeço
  18. O problema e a mesma coisa com o site acima da o mesmo erro já tentei com 2 sites e aquele ali nem um deu.
  19. Você conseguiu upar a database para download se conseguiu manda o link ^^
  20. Não porque não tem + pra fazer download dela =/ Causo você tenha poderia disponibilizar ela para fazer download?
  21. Eu baixei a base com esse erro e já fui fazendo outras coisas mas preciso arrumar isso e não só muito bom nessas coisas.
  22. Ao criar uma nova conta no account manager aparece esse erro alguém teria como me ajudar.
  • Quem Está Navegando   0 membros estão online

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