Tudo que Fir3element postou
-
[Pedido] Itens Imóveis!
No TFS 0.3.7 tem uma função parecida: onThrow(cid, item, fromPosition, toPosition).
-
(Resolvido)Enviando server pro VPS
Não tem como usar algo parecido com o Ctrl + F? Aqui é 20mb e vai lento também, é foda...
-
(Resolvido)[PEDIDO] Hp / Mp por porcentagem %%
Troca toda a função AddPlayerStats por essa: void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg) { msg->AddByte(0xA0); if (player->getPlayerInfo(PLAYERINFO_MAXHEALTH) > 0) { msg->AddU16(uint16_t(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH))); msg->AddU16(100); } else { msg->AddU16(0); msg->AddU16(0); } msg->AddU32(uint32_t(player->getFreeCapacity() * 100)); uint64_t experience = player->getExperience(); if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp msg->AddU32(0x7FFFFFFF); else msg->AddU32(experience); msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT)); if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0) { msg->AddU16(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA)); msg->AddU16(100); } else { msg->AddU16(0); msg->AddU16(0); } msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT)); msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL)); msg->AddU16(player->getStaminaMinutes()); }
-
(Resolvido)[PEDIDO] Hp / Mp por porcentagem %%
Qual TFS?
-
(Resolvido)Enviando server pro VPS
Se sua internet for muito lenta pode demorar bastante mesmo. Recomendo zipar o arquivo, dar upload em algum site e baixar no VPS. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Infraestrutura"
-
(Resolvido)[PEDIDO] Hp / Mp por porcentagem %%
protocolgame.cpp, procure por: msg->put<uint16_t>(player->getHealth()); msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXHEALTH)); troque por: 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); } procure por: msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA)); msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MAXMANA)); troque por: if (player->getPlayerInfo(PLAYERINFO_MAXMANA) > 0) { msg->put<uint16_t>(player->getPlayerInfo(PLAYERINFO_MANA) * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA)); msg->put<uint16_t>(100); } else { msg->put<uint16_t>(0); msg->put<uint16_t>(0); }
-
(Resolvido)[PEDIDO] Comando de mute para tutor
function string.explode(str, sep, limit) if(type(sep) ~= 'string' or isInArray({tostring(str):len(), sep:len()}, 0)) then return {} end local i, pos, tmp, t = 0, 1, "", {} for s, e in function() return string.find(str, sep, pos) end do tmp = str:sub(pos, s - 1):trim() table.insert(t, tmp) pos = e + 1 i = i + 1 if(limit ~= nil and i == limit) then break end end tmp = str:sub(pos):trim() table.insert(t, tmp) return t end function onSay(cid, words, param) local player = Player(cid) local m = string.explode(param, ",") local target = Player(m[1]) local time = tonumber(m[2]) if player:getAccountType() < ACCOUNT_TYPE_TUTOR then return false end if time == nil then player:sendCancelMessage("Invalid param specified.") return false end if target == nil then player:sendCancelMessage("A player with that name is not online.") return false end if target:getAccountType() ~= ACCOUNT_TYPE_NORMAL then player:sendCancelMessage("You can only mutate a normal player.") return false end if time == 0 or time >= 360 then player:sendCancelMessage("you can only mute for a maximum of 360 minutes") return false end local condition = Condition(CONDITION_MUTED) condition:setParameter(CONDITION_PARAM_TICKS, time*60*1000) target:doAddCondition(condition) target:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been muted by " .. player:getName() .. " , to "..time.. " minutes.") player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You muted " .. target:getName() .." to "..time.." minutes.") return true end
-
Script RESET 10.76
Volta o player.lua para o que tava antes.
-
[TFS 1.0] !buyaddon "addon
Corrige a tag: <talkaction words="!buyaddon" separator=" " script="buyaddon.lua"/>
-
[TFS 1.1] !exp, !mana
Aprovado e movido para a área correta.
-
[TFS 1.1] !rank
Aprovado e movido para a área correta.
-
(Resolvido)Ajuda Site 10.76
/home/otserv/global1076 Depois do global não tinha que ter uma "/"?
- [Pedido] Barra de Atributos OTC!
-
Browse field BUG
Qual a versão? O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Programação"
-
Solução Anti-Acc Managers - Limitação!
Adiciona isso no login.lua: local t = 0 for _, playerId in ipairs(getPlayersOnline()) do if getCreatureName(cid) == "Account Manager" then t = t + 1 end end if t > 4 then return false end Não entendi a parte dos 3 segundos.
-
Suporte em um BUG (Urgente)
Sim, é um bug nas versões antigas e na última (0.3.7) já foi fixado. Você pode tentar copiar o code, é só procurar por revenge na source. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Programação"
-
Limite Efeito Otclient
É pra alterar, não adicionar (no otserv). Tu só vai trocar uint8_t pra uint16_t nessas funções.
-
[AJUDA] como compilar tfs 10.10
Só funciona com o visual c++
-
(Resolvido)[AJUDA] como mudar cor healing (dev-cpp)
game.cpp MessageDetails* details = new MessageDetails(healthChange, COLOR_MAYABLUE);
-
Não consigo ver loot com god
groups.xml, troca o seu por esse (se seu ot for 8.60): <?xml version="1.0" encoding="UTF-8"?> <groups> <group id="1" name="Player"/> <group id="2" name="Tutor" flags="16809984" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/> <group id="3" name="Senior Tutor" flags="68736352256" customFlags="14" access="2" violationReasons="10" nameViolationFlags="2" statementViolationFlags="63" maxVips="200"/> <group id="4" name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" violationReasons="19" nameViolationFlags="10" statementViolationFlags="69" depotLimit="3000" maxVips="300" outfit="75"/> <group id="5" name="Community Manager" flags="3840774348794" customFlags="781823" access="4" violationReasons="23" nameViolationFlags="42" statementViolationFlags="213" depotLimit="4000" maxVips="400" outfit="266"/> <group id="6" name="God" flags="57172457136122" customFlags="67108863" access="5" violationReasons="23" nameViolationFlags="426" statementViolationFlags="469" depotLimit="5000" maxVips="500"/> </groups>
-
[Ajuda] Comida Estragada
Não sei se funciona com valores negativos: local FOODS = { [2362] = {-8, "Crunch."}, --[ID] = {feed, msg} } function onUse(cid, item, fromPosition, itemEx, toPosition) local food = FOODS[item.itemid] if(not food) then return false end doAddCondition(cid, CONDITION_POISON) doPlayerFeed(cid, food[1] * 4) doCreatureSay(cid, food[2], TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) return true end
-
Pedido alguém teria uma base pra começar um projeto?
https://github.com/Skazw/forgottenserver036
-
[AJUDA] como compilar tfs 10.10
*Lembrando que não funciona no dev-cpp (adicionei mas esqueci de testar).
-
[AJUDA] como compilar tfs 10.10
Tente usar mysql. Quando atualizei essa source eu não mexi no sqlite, então dá bugs mesmo =/ Posta o erro que dá no console.
-
[AJUDA] como compilar tfs 10.10
Ta usando a database correta? mysql ou sqlite?