Ir para conteúdo

mullino

Membro
  • Registro em

  • Última visita

Tudo que mullino postou

  1. Boa Noite Galerinha do tk Estou com um Problema aki Peguei uma vps em linux debian 8 estou tentando compilar uma source que tinha aki e usava no windows mas quando vou instalar as libs que vejo nos tutoriais ja da erro alguem pode ajudar?? olha o erro /home/otserv# sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make -j 2 ./autogen.sh: 1: ./autogen.sh: autoreconf: not found root@localhost-95:/home/otserv#
  2. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Bom Dia TK Meu otserv vem caindo a dias.... eu liguei ele com o GDB gdb theotxserv rum ele caiu ! ae usei o comando bt mas nao sei os significados dos logs. voces podem me ajudar??? src/central_freelist.cc:333] tcmalloc: allocation failed 57344 Allocation failed, server out of memory! Decrease size of your map or compile in a 64-bit mode. src/central_freelist.cc:333] tcmalloc: allocation failed 16384 PANIC: unprotected error in call to Lua API (not enough memory) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff22a5700 (LWP 31471)] 0x00000000005d739e in SchedulerTask::getEventId ( this=<error reading variable: Cannot access memory at address 0x7ffff22a4d68>, this@entry=<error reading variable: Cannot access memory at address 0x7ffff22a4d78>) at scheduler.h:31 31 scheduler.h: No such file or directory. (gdb) bt #0 0x00000000005d739e in SchedulerTask::getEventId ( this=<error reading variable: Cannot access memory at address 0x7ffff22a4d68>, this@entry=<error reading variable: Cannot access memory at address 0x7ffff22a4d78>) at scheduler.h:31 Cannot access memory at address 0x7ffff22a4d78 (gdb) Starting program: /home/otserv/theotxserver [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff2aa6700 (LWP 31597)] The Theotxserver Version: (0.2.X.SERIES - -) - Codename: (Crying Damson) Compiled with GNU C++ version 4.9.2 for arch 64 Bits at Jun 26 2018 23:00:12
  3. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Vai em seu globalevents e procura lá shutdown
  4. Também presciso dissu Alguém ajuda aee
  5. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "yes", -- OH GOD! healthMultiplier = 7.5, manaMultiplier = 7.5 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {4500, 4500}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {4500, 4500}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {4500, 4500}, level = 50, vocations = {3, 4, 7, 8,12,11,12,15,16,19,20,23,24}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {4500, 4500}, level = 80, vocations = {4, 8,12,16,20,24}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {6000, 6000}, level = 130, vocations = {4, 8,12,16,20,24}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {4500, 4500}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {4500, 4500}, level = 50, vocations = {3, 7,11,15,19,23}, vocStr = "paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {6000, 6050}, level = 80, vocations = {1, 2, 5, 6,9,10,13,14,17,18,21,22}, vocStr = "sorcerers and druids"}, -- great mana potion [7439] = {empty = 7439, splash = 7, mana = {4500, 4500}, level = 80, vocations = {1, 2, 5, 6,9,10,13,14,17,18,21,22}, vocStr = "sorcerers and druids"}, -- super mana potion [8472] = {empty = 7635, splash = 3, health = {4500, 4500}, mana = {4500, 4500}, level = 80, vocations = {3, 7,11,15,19,23}, vocStr = "paladins"} -- great spirit potion } local etime = 100000 -- milissegundos local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, etime) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Zeed Haaa", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Zeed Haaa", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end doRemoveItem(item.uid, 0) doPlayerAddItem(cid, potion.empty, 0) doPlayerRemoveItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) doPlayerAddItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) return TRUE end @FlavioHulk ta ae ja mano
  6. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    pois é ja usei uma distrito que nao tinha esse bug! mas achar ela que ta sendo o problema.... acho que otx todas tem esse bug!
  7. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Editei la. vê se entende agora... @FlavioHulk
  8. mullino postou uma resposta no tópico em Suporte Tibia OTServer
    Bom dia TK. Gostaria da ajuda de vcs... estou com um problema nas potions do meu servidor. 8.6 otx quando o players esta healando potions, e ele usa a magia UTAMO INA.(CANCELA O UTAMO VITA).mas a magia nao remove o utamo. se o player nao estiver healando com potions, ela usa a magia utamo ina, e ela remove o utamo vita normal.... e tbm se o player estiver realando com poions, ele nao consegue deslogar!! Tenho uma quest no meu server que reseta o player. Mas se ele estiver healando com potions no elfbot, ele não reseta... Só é mandado para o templo. alguem sabe onde posso arrumar esses bugs??? creio que é na source mas nao sei onde!!
  9. alguem pode ajudar ?? meu server estava online mas do nada travo e deu esse erro src/central_freelist.cc:333] tcmalloc: allocation failed 16384 src/central_freelist.cc:333] tcmalloc: allocation failed 16384 PANIC: unprotected error in call to Lua API (not enough memory) Allocation failed, server out of memory! Decrease size of your map or compile in a 64-bit mode. terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >' what(): boost: mutex lock failed in pthread_mutex_lock: Invalid argument
  10. Acima de 50 playes online já usa 100% Tá estranho que chegou a 90 online usando 100% e não deu lag né travou nada
  11. vai no config.lua troca o towid pra o towid da sua cidade
  12. boa noite Galerinha do tk estou com um bug no meu otserv otx 8.6 o player se estiver healando ele nao desloga alguem sabe arrumar issu? eu creio que e na source pq eu tinha uma distrito que dava pra deslogar normalmente mas essa nao da para deslogar fica com muito exaust. o problema que eu tenho uma quest que quando o player faz ela ele desloga .... mas nao esta deslogando quando faz a queste esta mando o player pro templo... a quest e um resete que reseta o player..... +rep a quem ajudar
  13. Boa noite galerinha do TK Estou com um problema na minha source otx 8.6 Enquanto o player tá healando ele não desloga está com esse exaust. Tou tendo problemas pois tenho uma quest que reseta o player e desloga ele. Quando o player clica no bau para fazer a Quest usando o elfbot healando potions ele não reseta só é mandado pro templo..... Gostaria de mudar issu na source mas não sei onde.... Se alguém souber pode me ajudar ?.
  14. otx vps 4youstart 5 GB Ram 4 Nucleos processador
  15. Boa noite galera estou com um problema na minha vps por curiosidade fui olhar o uso do cpu no painel da vps e assustei pq esta 100%used minha connfiguraçao é 4 nucleos de processado 5 GB de Ram mapa baiak top - 19:22:24 up 3 days, 2:00, 2 users, load average: 0.85, 0.74, 0.72 Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.4 us, 0.6 sy, 10.4 ni, 87.1 id, 0.1 wa, 0.0 hi, 0.3 si, 0.1 st KiB Mem: 5114280 total, 2976448 used, 2137832 free, 58428 buffers KiB Swap: 1047548 total, 0 used, 1047548 free. 723540 cached Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 25215 root 20 0 2029104 1.832g 12072 S 55.2 37.6 129:44.38 theotxserv+ 7 root 20 0 0 0 0 S 0.7 0.0 7:06.40 rcu_sched 13 root 20 0 0 0 0 S 0.7 0.0 4:30.22 ksoftirqd/1 18 root 20 0 0 0 0 S 0.7 0.0 4:41.78 ksoftirqd/2 3 root 20 0 0 0 0 S 0.3 0.0 30:03.96 ksoftirqd/0 16 root rt 0 0 0 0 S 0.3 0.0 0:01.86 watchdog/2 23 root 20 0 0 0 0 S 0.3 0.0 3:26.79 ksoftirqd/3 1 root 20 0 28228 4540 3084 S 0.0 0.1 0:02.62 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+ 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root rt 0 0 0 0 S 0.0 0.0 0:00.29 migration/0 10 root rt 0 0 0 0 S 0.0 0.0 0:06.72 watchdog/0 11 root log do comando top log do comando da memoria root@root:/home/otserv/data/world# free -m -t total used free shared buffers cached Mem: 4994 2906 2087 48 57 706 -/+ buffers/cache: 2142 2851 Swap: 1022 0 1022 Total: 6017 2906 3110 meu server nao esta com lag mais estou comedo desse uso 100% alguém te ideia do que pode ser
  16. Boa noite Galerinha do TK Estou com um problema no meu otserv que os gms e os cms nao conseguem mover items nenhum do otserv... nem os que estao da bp deles ele nao conseguem colocar nem tirar items de la ja olhei o cap e esta 10000 nao fasso a minima ideia e onde pode ser... se alguem souber ajudar fico grato
  17. [Error - TalkAction Interface] data/talkactions/scripts/createitem.lua:onSay Description: data/talkactions/scripts/createitem.lua:9: attempt to index global 't' (a nil value) stack traceback: data/talkactions/scripts/createitem.lua:9: in function <data/talkactions/scripts/createitem.lua:3> deu esse erro pode ajudar @Sttorm
  18. Boa tarde Galerinha do tk Gostaria da Ajuda de vcs para midificar esse script ele da %dodge nos items que estao configurados nele mas so usa uma pedra em cada item e ja da a % máxima de uma vez... gostaria que pudesse usar mais de uma vez ee cada pedra daria 1% de encantamento ate o max permitido mas que falhasse tbm segue o script local function getItemDodgePercent(itemuid) return getItemAttribute(itemuid, "dodgePercent") or 0 end local function setItemDodgePercent(uid, percent) doItemSetAttribute(uid, "description", "[Dodge: "..percent.."%]") doItemSetAttribute(uid, "dodgePercent", percent) end local t = { [12686] = 3, -- [ItemID] = Porcentagem [12671] = 5, [12678] = 3, [12680] = 5, [2496] = 5, [8883] = 7, [2477] = 5, [9933] = 7, [12740] = 7, [12741] = 9, [12742] = 7, [12721] = 9, [12696] = 7, [12697] = 9, [12698] = 7 } local remove_item = TRUE -- Remover o item ao usar se sim coloque TRUE se não FALSE function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid) if t[itemEx.itemid] then local get_Item = t[itemEx.itemid] if getItemDodgePercent(itemEx.uid) == get_Item then doPlayerSendTextMessage(cid, 27, "Esse item já foi refinado") doSendMagicEffect(pos, 2) return false else setItemDodgePercent(itemEx.uid, get_Item) doPlayerSendTextMessage(cid, 27, "Sucesso!") doSendMagicEffect(pos, 9) if remove_item == TRUE then doRemoveItem(item.uid, 1) return true end return true end else doPlayerSendTextMessage(cid, 27, "Esse item não pode ser refinado") doSendMagicEffect(pos, 2) return false end return true end obrigado +Rep quem ajudarr
  19. Boa Tarde Galerinha Do TK vcs podem me ajudar Colocar a opçao mananger na minha source?? Tem um tutorial aki no tk mas a minha source e modificada e nao encontro esses arquivos que pedem para modificar Em vocations.h, procure por: bool attackable, needPremium; Substitua por: bool attackable, needPremium, manager; Procure por: bool isPremiumNeeded() const {return needPremium;} void setNeedPremium(bool v) {needPremium = v;} Adicione logo abaixo: bool isManagerOption() const {return manager;} void setAsManagerOption(bool v) {manager = v;} Em vocations.cpp, procure por: if(readXMLString(p, "needpremium", strValue)) voc->setNeedPremium(booleanString(strValue)); Adicione logo abaixo: if(readXMLString(p, "accountmanager", strValue) || readXMLString(p, "manager", strValue)) voc->setAsManagerOption(booleanString(strValue)); Procure por: needPremium = false; Adicione abaixo: manager = true; Finalmente, em player.cpp, procure por: if(it->first == it->second->getFromVocation() && it->first != 0) Substitua: if(it->first == it->second->getFromVocation() && it->first != 0 && it->second->isManagerOption() == true) Ainda em player.cpp, procure por: if(checkText(text, tmp) && it != Vocations::getInstance()->getLastVocation() && it->first == it->second->getFromVocation() && it->first != 0) Substitua: if(checkText(text, tmp) && it != Vocations::getInstance()->getLastVocation() && it->first == it->second->getFromVocation() && it->first != 0 && it->second->isManagerOption() == true) "Recompile e seja feliz. " no meu nao acho nenhum dessas opçoes meus arquivos
  20. vou compilar aki Funcionou Perfeito cara VC E milll 1000000 +Rep
  21. entao o problema que nao consigo colocar as funçoes que esta para colocar porque comprei essa source ela e boa mas nao consigo colocar o hp e mana por porcentagem pq onde manda modificar e completamente diferente.. tentei ate 3 horas da madruga ontem e nao consegui vou refazer aki e mandar o erro pra vcs olha a diferença o meu ta asim msg->add<uint16_t>(player->getHealth()); msg->add<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXHEALTH)); ja no que pedee pra modificar ta asim msg->put<uint16_t>(player->getHealth()); msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXHEALTH)); ontem eu fiz asim if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0) { msg->put<uint16_t>(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH))); msg->put<uint16_t>(100); } else { msg->put<uint16_t>(0); msg->put<uint16_t>(0); } troquei o put por add ficando asim if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0) {  msg->add<uint16_t>(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH))); msg->add<uint16_t>(100); } else { msg->add<uint16_t>(0); msg->add<uint16_t>(0); } fiz issu na mana tbm ate compilou mas na hora que eu entrava no ot com qualquer conta ate no account manangem tomava debug @KotZletY
  22. ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory ./ligar.sh: line 4: ./tfs: No such file or directory continua falando que nao ta o diretorio... estou na maquina dele aki e e realmente nunca vi esse erro o arquivo esta la na pasta ja dei a permiçao mas fala q nao encontra o arquivo
  23. suporte via TV? como faso issu kk
  24. uai mano pelo que vi ae ta no lugar certo fexa o putty e abre de novo ae vc fala cd /home/guilerme/Servidor --------------- e da enter depois vc fala ./tfs ----------------- certifique q o tfs esta na pasta do servidor
  25. cd /home/guilherme/Servidor depois ./tfs

Informação Importante

Confirmação de Termo