Ir para conteúdo

Gnius

Membro
  • Registro em

  • Última visita

Tudo que Gnius postou

  1. Ja consegui resolver, mas mesmo assim obrigado
  2. Olá galera, eu estava precisando de uma script onde um player tem um item e com ao clicar com lado direito nesse item e clicar em x piso ele soltaria um outro item Por exemplo:Tenho 1 item e clico com lado direito nesse item e clico em algum local do piso(chão) e aonde eu clicar aparecia um item Esse item ficaria 10segundos e depois sumiria
  3. Mas ao usar o item no set, iria aumentar mana e hp?
  4. Olá pessoal, estou precisando de uma script onde o player usa x item em x parte do set(helmet, amor, boots, glove) e esse item aumenta a regeneração e mana a 200+ Por exemplo: O armor libera 5000+ de regeranção, ao usar esse item ele liberaria 5200
  5. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Pessoal estou com esse erro na distro [11/11/2018 09:59:50] [Error - Action Interface] [11/11/2018 09:59:50] In a timer event called from: [11/11/2018 09:59:50] datapack/actions/scripts/goback.lua:onUse [11/11/2018 09:59:50] Description: [11/11/2018 09:59:50] datapack/lib/newStatusSyst.lua:303: attempt to perform arithmetic on local 'damage' (a boolean value) [11/11/2018 09:59:50] stack traceback: [11/11/2018 09:59:50] datapack/lib/newStatusSyst.lua:303: in function 'doPoison2' [11/11/2018 09:59:50] datapack/lib/newStatusSyst.lua:712: in function <datapack/lib/newStatusSyst.lua:79> Script newstatus
  6. Ainda não foi, agora as parte que tinha [] ela fica a mesma coisa que o espaço
  7. Na real não da erro, ele volta direto pra procura de personagem Segue o print abaixo: Da erro só quando alguém tem algum outro caractere tipo [ADM], segue print abaixo:
  8. Opa pessoal, estou com um problema no meu site(modern acc) eu não consigo pesquisar personagem que tem espaço no nome Tipo Tibiaking vai normal porém Tibia King não vai. REP+ Praquem ajudar
  9. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Galera estou com esse erro na distro Script exp2.0
  10. Coloquei pra verficiar se o player tem x storage, se ele tiver storage ele ativa esse look, ai coloquei a função pra mostrar o look no some functions if getPlayerStorageValue(thing, 150420) > 0 then table.insert(str, "\nCasado com ["..getPlayerNameByGUID(k).."].") end
  11. Pode fechar o tópico, ja consegui resolver.
  12. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    [08/11/2018 19:18:57] [Error - CreatureScript Interface] [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:onLook [08/11/2018 19:18:57] Description: [08/11/2018 19:18:57] (internalGetPlayerInfo) Player not found when requesting player info #3 [08/11/2018 19:18:57] [Error - CreatureScript Interface] [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:onLook [08/11/2018 19:18:57] Description: [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:5: attempt to concatenate a boolean value [08/11/2018 19:18:57] stack traceback: [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:5: in function <datapack/creaturescripts/scripts/marrylook.lua:1> Coloquei thing.uid, não deu nem 1 erro porém fica dessa forma. Pode fechar o tópico, ja consegui resolver.
  13. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    function getPlayerDesc(cid, thing, TV) if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end local vocation = getPlayerVocationName(cid) local pos = getThingPos(thing) local ocup = youAre[getPlayerGroupId(thing)] local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)] local name = thing == cid and "yourself" or getCreatureName(thing) local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is") local str = {} table.insert(str, "You see "..name.." [".. getPlayerLevel(thing) .."]. "..art.." ") if youAre[getPlayerGroupId(thing)] then table.insert(str, (ocup).." and "..vocation.." from ".. getTownName(getPlayerTown(thing))..".") else table.insert(str, (vocation).." from ".. getTownName(getPlayerTown(thing))..".") end if getPlayerGuildId(thing) > 0 then table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".") end if TV then table.insert(str, " "..art.." watching TV.") end table.insert(str, ((isPlayer(cid) and youAre[getPlayerGroupId(cid)]) and "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]" or "")) return table.concat(str) end
  14. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Ola galera, estou com essa script de quando o player casa ele recebe um look, porém esse look fica no lugar do nome do player e o nome do player é removido tfs 0.3.6 script function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local k = getPlayerMarriage(getPlayerGUID(thing.uid)) if k then doPlayerSetSpecialDescription(thing.uid,". " .. (thing.uid == cid and "You are" or (getPlayerSex(thing.uid) == 0 and "She" or "He") .. " is") .. " Casado com [" .. getPlayerNameByGUID(k) .."]") end end return true end
  15. [07/11/2018 18:07:43] [Error - CreatureScript Interface] [07/11/2018 18:07:43] datapack/creaturescripts/scripts/marrylook.lua:onLook [07/11/2018 18:07:44] Description: [07/11/2018 18:07:44] datapack/lib/050-function.lua:695: attempt to concatenate local 'player' (a table value) [07/11/2018 18:07:44] stack traceback: [07/11/2018 18:07:44] datapack/lib/050-function.lua:695: in function 'getPlayerMarriage' [07/11/2018 18:07:44] datapack/creaturescripts/scripts/marrylook.lua:3: in function <datapack/creaturescripts/scripts/marrylook.lua:1>
  16. Galera estou precisando adicionar um atributo ao dar look no player, estou usando essa script de Married System e preciso que alguém saiba colocar pra aparecer o look de quem a pessoa for casada. Segue abaixo os scripts: npc.lua lib/050-functions
  17. Edit:Pode fechar o tópico, ja consegui achar Pra quem ta com o mesmo problema, é só ir na source do seu servidor/tile.cpp e procura a linha if(const Monster* monster = creature->getMonster()) Só adicionar mais um if
  18. Gnius postou uma resposta no tópico em Suporte Tibia OTServer
    Pessoal estou com um erro no meu servidor, os moves dos pokemon buga ao usar algum pokemon Segue abaixo o erro [03/11/2018 04:06:03] [Error - Action Interface] [03/11/2018 04:06:03] In a timer event called from: [03/11/2018 04:06:03] datapack/actions/scripts/goback.lua:onUse [03/11/2018 04:06:03] Description: [03/11/2018 04:06:03] datapack/lib/some functions.lua:1406: attempt to index a number value [03/11/2018 04:06:03] stack traceback: [03/11/2018 04:06:03] datapack/lib/some functions.lua:1406: in function 'getCD' [03/11/2018 04:06:03] datapack/lib/cooldown bar.lua:148: in function <datapack/lib/cooldown bar.lua:112> A função da some functions que ta dando erro é essa: Função do cooldown que ta dando erro
  19. Usei esse tópico para quem quiser saber...
  20. Eu ja consegui, pode fechar o tópico.
  21. Infelizmente não, porém testei algumas spells de servidores tibias porém só consegui achar spell em area, e os spell não tirava dano.
  22. Ola galera, eu preciso de uma spell para poketibia(sim o player que vai usar essa magia) que vai atakar o pokemon se tiver no target(não vai atakar em area) e que tire x porcentagem de dano
  23. Galera to precisando de uma script que se o player tiver x item na bag ele solta um efeito e da um x dano no target(não importa a distancia) e o item não precisa estar equipado em nenhum lugar, somente na bag.
  24. Estou querendo um modulo que o player usa x comando ao logar, o comando seria /dind (ele reloga e loga denovo e usa o mesmo comando) obs:sem opcode
  25. 0.3.6 Ja arrumei, só coloquei true no saveGlobalStorage do config.lua

Informação Importante

Confirmação de Termo