Ir para conteúdo

Samuel Galdino

Membro
  • Registro em

  • Última visita

  1. -=[Open Tibia Server]=- Server Name: [DexSoft] -=[GAME]=- - Tibia - IP/DNS: dexsoft.ddns.net IP/FIXO: 177.33.49.248 - Porta: 7171 - Protocolo: TCP - Versão 8.60. Cria Conta Pelo Account Manager Sem Site (ACCM): 1/1 Sobre o Servidor Link: ~brazil.otservlist.org/ots/1662123 ~xat.com/DexSoft ~fb.com/DexSoft.Baiak DexSoft Baiak Reset x99999 RED/BLACK é Ilimitado Você Não Pega Red Skull e Nem Black Skull e Nem Toma Ban Pelos Frags. ::DONATE:: CPF-PIX: 389.429.678-09 VIP 7 DAYS R$20,00 VIP 31 DAYS R$ 50,00 VIP VITALICIO + SET DONATE + PEDRAS BOOSTED FULL R$100,00 ::INFO:: Servidor Type: [PVP] Cria Conta Pelo Account Manager 1/1 (ACCM) Sem Site. Não Tem Cast System + Bônus EXP. Não Tem War System Com Escudo Somente o Tradicional Sem Escudo. Nunca Reseto. Nunca Teve Rollback. Sem Promotion: attackspeed="1500" soulmax="100" basespeed="220" experience="99999". Com Promotion: attackspeed="" soulmax="255" basespeed="1500" experience="100000". Da Pra Loga Mc na Própria Conta Sem Precisa Cria Outra Conta e Abri Outro Client. Config.lua Rate Original: experienceStages = false rateExperience = 99999 rateExperienceFromPlayers = 99999 [PVP-E] rateSkill = 1 rateMagic = 1 rateLoot = 1 rateSpawn = 1 Info do Host: - https://bit.ly/45LgMIR - Contato ao ADM Dono Fundador do Servidor: - https://bit.ly/3Zc0KFn - - TeamSpeak (TS) - Samuel_Officer - [TS-SERVER]: 177.33.49.248 [UPDATES] DexSoft Tibia Server ZAP do GRUPO Para Admin Privado Etc: - https://bit.ly/4k2pytJ - - Bate-Papo Aberto Para Publico Para Players - - https://xat.com/DexSoft - Anuncie Seu Servidor: - https://bit.ly/40Xbitm - DexSoft Pra Players: - https://bit.ly/4hFAsUD - DexSoft - Trade: - https://bit.ly/4hS42WM - Discord: - https://discord.gg/tUmukBXaYy - E-Mail e Ticket do HOST: - [email protected] - Telefone Celular do HOST +55 (11) 91230-8360 - Operadora - (VIVO) Host do Servidor Provedor (CLARO) IP de Internet: 177.33.49.248 Servidor Hospedado no Brazil IP-ESTATICO Jogue Com Esse IP Ping -1 MS: -1 FPS: +10.000. Staff Nao Joga, E Não Tem Vaga. Staff Sempre Online e Dando Suporte. Att ADM. ::DOWNLOADS:: Download do Client Proprio [FULL-LIGHT]+[MC]+[IP-FIXO]+[OTClientV8]+APK: Pra Celular Android Iphone e Todos Sistemas Operacionais e IOS-OS. 100% Funcional. Tibia 8.60 Para Linux: - https://bit.ly/3QlTK5I - Tibia 8.60 Para MAC So Compila Pra Sua Autoria. Tibia IP Changer 8.60 Para Linux/MAC Pra Sua Autoria Compila. Tibia MC 8.60 - https://bit.ly/4bgAG0C - Tibia Client Classico Proprio: - https://bit.ly/3ELouXs - Instalador do Tibia 8.60: - https://bit.ly/3Ufvx2d - OTClientV8 Mini-Map -=[FULL]=- Customizado o Laucher do OTClientV8 Nao Esqueca de Ler o read me. NEW: - OTClientV8: - https://bit.ly/3FI50af - NEW: - OTClientV8 - 02.08.2025: - https://bit.ly/3IWstGa - OTClientV8 - Restaurado em Fabrica Resetado: - https://bit.ly/3UkWbXE - NEW: - OTClient_Personal-OTclient-Personal: - https://bit.ly/3YpSge7 - NEW: - OTClient - DexSoft: - https://bit.ly/417zdb1 NEW: - OTClient - 2025 - https://bit.ly/435gZr7 -apk- do Servidor: - https://bit.ly/45Kcl14 - Click no Another e Digita IP:PORTA -apk- do Servidor 2_#Editado: - https://bit.ly/3Glffy1 - Click no Another e Digita IP:PORTA -apk- do Servidor 3_#Editado: - https://bit.ly/3YwoyWt - Click no Another e Digita IP:PORTA -apk- do Servidor 4_#Editado: - https://bit.ly/4gVsAht - Click no Another e Digita IP:PORTA BOT pra -apk- na Demanda do Player ele que Escolhe Pesquisando na Internet - BOTS & Utilitários - MageBot + ElfBot NG - ElfBot NG ~DexSoft [Crackeado] - Tibia MULTI-IP CHANGER: - https://limewire.com/d/OJNtS#cwDQrXXhq0 - - https://transferxl.com/pt/download/06zvcmDRgTcz6V - *TeamSpeak 3 Client: - https://bit.ly/48NusWo - Ultima Versão do Pacote Redistribuivel do Microsoft Visual C++ - https://bit.ly/3D7L5jT - 32 Bits - - https://bit.ly/4k9EdTQ - 64 Bits - - https://bit.ly/4hHsg6d - ARM64 - Downloads Dos Pacotes Redistribuivel do Microsoft Visual C++ - https://bit.ly/4oFyo2A - .NET Frameworks - Microsoft .NET Framework 4.5 - https://bit.ly/4lH0uIk - ~[PACK] - https://bit.ly/3QQmnaY - Microsoft Edge Web View 2 Setup - https://bit.ly/3EmAthJ - Microsoft DirectX® (DX9, DX10, DX11) - https://bit.ly/4oTLXf1 - TeamSpeak Pra Windows Mac Linux - https://bit.ly/4pCNKVW - - 30 Anos Online! Copyright by CipSoft GmbH. All rights reserved.
  2. Para adicionar um tutor robô que responde automaticamente no canal de ajuda (Help Channel) quando um jogador escreve algo e o ADM não está online, você precisa editar o script do creaturescripts ou criar um sistema que detecta mensagens no canal de help. Como o TFS 0.3.6 (Tibia 8.60) não possui um sistema interno de interceptação direta no Help Channel, você pode contornar isso com um sistema de creaturescript que detecta mensagens no canal de help (canal 9) e responde automaticamente caso o ADM não esteja online. Passo a passo: Criando um tutor robô para o canal de ajuda 1. Abra ou crie este arquivo: data/creaturescripts/scripts/help_bot.lua 2. Adicione este script: lua Copiar Editar local ADM_NAME = "ADM" -- Nome do personagem do administradorlocal HELP_CHANNEL_ID = 9 function onTalk(cid, type, channel, msg) -- Verifica se a mensagem é no Help Channel if channel == HELP_CHANNEL_ID then -- Verifica se o ADM está online local admPlayer = getPlayerByNameWildcard(ADM_NAME) if not isPlayer(admPlayer) then doPlayerSendChannelMessage(0, "Tutor Robo", "Para suporte, mande um ticket para o ADM no e-mail: [email protected] ou adicione ele no WhatsApp: +55 11 91230-8360.", TALKTYPE_CHANNEL_O, HELP_CHANNEL_ID) end end return trueend3. Adicione o creaturescript no creaturescripts.xml: Abra o arquivo data/creaturescripts/creaturescripts.xml e adicione: xml Copiar Editar <event type="channel" name="HelpBot" script="help_bot.lua"/>4. Registre o evento no login.lua: Abra o arquivo data/creaturescripts/scripts/login.lua e adicione esta linha dentro da função onLogin: lua Copiar Editar registerCreatureEvent(cid, "HelpBot") Resultado Agora, sempre que um jogador mandar uma mensagem no Help Channel (canal 9), se o personagem chamado "ADM" não estiver online, o tutor robô automaticamente responderá com: "Para suporte, mande um ticket para o ADM no e-mail: [email protected] ou adicione ele no WhatsApp: +55 11 91230-8360." Se quiser que o nome do ADM seja outro, é só mudar a variável ADM_NAME = "ADM". Quer que ele só responda uma vez a cada X segundos por jogador, ou algo mais inteligente? Posso melhorar o script. Você disse: nao pego no tfs 0.3.6 O ChatGPT disse: Perfeito, obrigado pelo retorno! Como o TFS 0.3.6 (8.60) não possui suporte ao evento onTalk com type="channel" no creaturescripts, precisamos usar uma outra abordagem, baseada em talkactions ou em modificações no source (mais avançado). A melhor solução sem mexer no source é usar talkactions para detectar mensagens específicas e simular um tutor robô. 1. Habilitar o evento onTalk no server (creaturescript) Arquivo: luascript.cpp Procure por a função: cpp Copiar Editar void LuaScriptInterface::registerFunctions()`` Dentro dela, **adicione esta linha** (se ainda não existir): ```cpp lua_register(m_luaState, "registerCreatureEvent", LuaInterface::luaRegisterCreatureEvent); Arquivo: creatureevent.h Procure a enumeração CreatureEventType e adicione o novo tipo TALK: cpp Copiar Editar enum CreatureEventType { ... CREATURE_EVENT_CHANNEL, ... CREATURE_EVENT_TALK, // Adicione isso }; Arquivo: creatureevent.cpp Adicione o novo tipo de evento ao final do getType: cpp Copiar Editar CreatureEventType CreatureEvents::getType(const std::string& str){ ... else if(str == "talk")return CREATURE_EVENT_TALK; // novo ...} Na função configureEvent, adicione suporte ao onTalk: cpp Copiar Editar bool CreatureEvent::configureEvent(xmlNodePtr p){ ... if(m_type == CREATURE_EVENT_TALK) m_interface->reserveScriptEnv(); // reserva ambiente para o script ...} 2. Chamar o evento onTalk quando jogador fala no canal Arquivo: chat.cpp Encontre a função: cpp Copiar Editar bool Chat::talkToChannel(Player* player, MessageClasses type, const std::string& text, uint16_t channelId) Logo no início dessa função, adicione a chamada do evento: cpp Copiar Editar if (player) { CreatureEventList talkEvents = player->getCreatureEvents(CREATURE_EVENT_TALK); for(CreatureEventList::iterator it = talkEvents.begin(); it != talkEvents.end(); ++it)(*it)->executeTalk(player, type, text, channelId);} 3. Criar a função executeTalk no CreatureEvent Arquivo: creatureevent.cpp Adicione esta função: cpp Copiar Editar bool CreatureEvent::executeTalk(Creature* creature, MessageClasses type, const std::string& text, uint16_t channel){ // Função só ativa se for script registrado if(m_type != CREATURE_EVENT_TALK)return false;// Prepara o script if (!m_interface->reserveScriptEnv()) { std::cout << "[Error - CreatureEvent::executeTalk] Call stack overflow." << std::endl;return false; } ScriptEnviroment* env = m_interface->getScriptEnv(); env->setScriptId(m_scriptId, m_interface); env->setRealPos(creature->getPosition());// Empilha argumentos lua_State* L = m_interface->getLuaState(); m_interface->pushFunction(m_scriptId); LuaScriptInterface::pushThing(L, creature, false); lua_pushnumber(L, type); lua_pushstring(L, text.c_str()); lua_pushnumber(L, channel);return m_interface->callFunction(4);} Arquivo: creatureevent.h Adicione no final da classe CreatureEvent: cpp Copiar Editar bool executeTalk(Creature* creature, MessageClasses type, const std::string& text, uint16_t channel);

Informação Importante

Confirmação de Termo