Solutions
-
Fir3element's post in (Resolvido)[Pedido] Source 8.60 Com Mount was marked as the answerPensei que daria certo, mas ficou dando debug.
Não vou conseguir te ajudar =/
Enfim, recomendo usar a versão 8.7 mesmo...
-
Fir3element's post in (Resolvido){Ajuda} Error TFS "not enough memory" was marked as the answerstoreTrash serve apenas no clean
qual o tamanho do mapa (mb)?
-
Fir3element's post in (Resolvido)[Ajuda] Player não salva, Quando desloda Volta Lvl 8 was marked as the answerA foto não apareceu, mas isso acontece quando tá faltando alguma tabela na database, chutaria essas:
ALTER TABLE `players` ADD `cast` TINYINT NOT NULL DEFAULT '0', ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL -
Fir3element's post in (Resolvido)[Dúvida] Sobre limite de magic effect no server .... was marked as the answerA DLL precisaria alterar a configuração do client de uint8(0-255) para uint16(0-65,535).
-
Fir3element's post in (Resolvido)[Duvida] Adicionando skill automatico was marked as the answer@Summ
O limite é apenas no client, mostra 94 mas ataca como 350.
local firstItems = { [0] = {2173, 2525, 3965, 2124, 2457, 2647, 2643}, [1] = {2173, 2499, 8871, 2507, 2195, 8918, 8922}, [2] = {2173, 2499, 8871, 2507, 2195, 8918, 8922}, [3] = {2173, 2499, 8888, 2507, 2195, 8851, 6529, 7366, 2537}, [4] = {2173, 2499, 8889, 2507, 2195, 2537, 8926} } function onLogin(cid) if getCreatureName(cid) ~= "Account Manager" then if getPlayerStorageValue(cid, 25990) == -1 then local guid = getPlayerGUID(cid) local function addSkill(skillid, amount) db.executeQuery("UPDATE `player_skills` SET `value` = " .. amount .. " WHERE `player_id` = " .. guid .. " and `skillid` = " .. skillid) end local function addMagLevel(amount) db.executeQuery("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = " .. guid) end local voc, bag = getPlayerVocation(cid), doPlayerAddItem(cid, 1988, 1) for i = 1, table.maxn(firstItems[voc]) do doPlayerAddItem(cid, firstItems[voc][i], 1) end doPlayerAddItem(cid, 2167, 2) doAddContainerItem(bag, 2160, 100) doAddContainerItem(bag, 2672, 10) setPlayerStorageValue(cid, 25990, 1) addEvent(function() doRemoveCreature(cid, true) if isInArray({1, 2, 5, 6}, voc) then addMagLevel(200) elseif voc == 3 or voc == 7 then addSkill(4, 350) addMagLevel(30) elseif voc == 4 or voc == 8 then addSkill(3, 350) addSkill(5, 350) addMagLevel(11) end end, 0.0001) end end return true end -
Fir3element's post in (Resolvido){Dúvidas} VPS was marked as the answerEles vão te dar um IP e uma senha (não tenho certeza se vem com senha).
No caso de um VPS com windows, você acessa ele pela Área de Trabalho Remota:
* Dá pra usar otserv normalmente com internet compartilhada, só tem que desbloquear as portas corretamente (modem, roteador e firewall).
-
Fir3element's post in (Resolvido)Traduzir Account Manager - source was marked as the answerTem algumas coisas no login.lua (creaturescripts) e outras na função manageAccount (player.cpp).
-
Fir3element's post in (Resolvido)Qual melhor rev pra servidor 8.60 em linux? was marked as the answertenta esse: https://www.mediafire.com/?899t4nl3f4gpt2i
-
Fir3element's post in (Resolvido)[TFS 0.4 Protocolo 8.60] was marked as the answertenta isso aq:
bool Player::canWalkthrough(const Creature* creature) const { if(creature == this || hasCustomFlag(PlayerCustomFlag_CanWalkthrough) || creature->isWalkable() || (creature->getMaster() && creature->getMaster() != this && canWalkthrough(creature->getMaster()))) return true; const Player* player = creature->getPlayer(); if(!player) return false; if((((g_game.getWorldType() == WORLDTYPE_OPTIONAL && #ifdef __WAR_SYSTEM__ !player->isEnemy(this, true) && #endif player->getVocation()->isAttackable()) || player->getTile()->hasFlag(TILESTATE_PROTECTIONZONE) || (player->getVocation()->isAttackable() && player->getLevel() < (uint32_t)g_config.getNumber(ConfigManager::PROTECTION_LEVEL))) && player->getTile()->ground && Item::items[player->getTile()->ground->getID()].walkStack) && (!player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges) || player->getAccess() <= getAccess())) return true; return (player->isGhost() && getGhostAccess() < player->getGhostAccess()) || (isGhost() && getGhostAccess() > player->getGhostAccess()); } -
Fir3element's post in (Resolvido)Invadiram meu site com ACC MANAGER E ROOK SAMPLE ( AJUDA? ) was marked as the answerconfig.php adiciona isso aq:
$config['site']['access_tickers'] = 3; -
Fir3element's post in (Resolvido)[Ajuda] Compilar - Fist Fight was marked as the answerCompilado: https://www.mediafire.com/?i9jv7ql2a7yyi77
Não é 0.4, é 0.3.6pl1 (eu que modifiquei essa source ).
-
Fir3element's post in (Resolvido)[Duvida] Metatables was marked as the answerhttp://www.tibiaking.com/forum/topic/18766-poo-em-lua/
https://www.google.com.br/webhp?ie=utf-8&oe=utf-8&gws_rd=cr&ei=o1zeVPGKEZKFyQSn_IDQBg#q=programa%C3%A7%C3%A3o+orientada+a+objetos+lua
tenta ver esses links ai, não explico pq não sei usar ainda
-
Fir3element's post in (Resolvido)Script que manda level 6 de volta pra rook? was marked as the answerfunction onLogin(cid) local options = { level = 6, voc = 1, town = 2, msg = "You did not support the routine MainLand, go train!" } if(getPlayerLevel(cid) <= options.level and getPlayerTown(cid) ~= options.town) then doPlayerSetVocation(cid, options.voc) doPlayerSetTown(cid, options.town) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, options.msg) for i = 1, 12 do doRemoveItem(getPlayerSlotItem(cid, i).uid) end end return true end
-
Fir3element's post in (Resolvido)[Compilar] OTX 2.90 se was marked as the answerhttps://www.mediafire.com/?mng8mbllx2e50b5
o script é muito grande, n faço a menor ideia de onde ta o erro, então sem deletar o custom_commands.xml vc n vai conseguir ligar
ah e é melhor n usar o save, clean e nem os reloads dessa versão GUI, vai crashar o ot uma hora ou outra
-
Fir3element's post in (Resolvido)Distro fechando [error desconhecido] was marked as the answerfaz tempo q n abro um ot, mas acho q 50mb de map pra 2gb de ram no tfs 0.4 n dá certo não
só pra ligar o ot ja deve ir embora 1-1.5gb ram, ai esse pouco q sobra fica pro sistema, mysql, etc
-
Fir3element's post in (Resolvido)[Erro] Distro Tfs LuanLuciano93 was marked as the answer*players
ALTER TABLE `players` ADD `frags` INT NOT NULL DEFAULT 0; -
Fir3element's post in (Resolvido)Duvida , Como editar os creditos que aparecem no distro? was marked as the answerotserv.cpp, só dar ctrl+v no nome de algum:
std::cout << STATUS_SERVER_NAME << ", version " << STATUS_SERVER_VERSION << " (" << STATUS_SERVER_CODENAME << ")" << std::endl; std::cout << "Compiled with " << BOOST_COMPILER << " at " << __DATE__ << ", " << __TIME__ << "." << std::endl; std::cout << "A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo." << std::endl; std::cout << "Visit our forum for updates, support and resources: http://otland.net." << std::endl << std::endl;
Você deve achar umas 3x quase o mesmo code, um é pro linux, outro pra versão console e o último pra versão GUI.
-
Fir3element's post in (Resolvido)Clone Gold com Item Two Handed was marked as the answerremovido
-
Fir3element's post in (Resolvido)Sumonar uma criatura caso o teleport não esteja no local was marked as the answerlocal tpId = 1387 local tps = { ["RB Goku SSJ4"] = {pos = {x=389, y=250, z=15}, toPos = {x=400, y=250, z=15}, time = 60}, -- Onde o Teleport irá aparecer e onde ele levará o Player. Em 'Time', configurar tempo em segundos para o TP desapecer. ["RB Vegeta SSJ4"] = {pos = {x=412, y=250, z=15}, toPos = {x=426, y=250, z=15}, time = 60}, ["RB Gohan SSJ4"] = {pos = {x=438, y=250, z=15}, toPos = {x=449, y=250, z=15}, time = 60}, ["RB Trunks SSJ4"] = {pos = {x=461, y=250, z=15}, toPos = {x=377, y=271, z=15}, time = 60}, ["RB Raditz SSJ4"] = {pos = {x=389, y=271, z=15}, toPos = {x=400, y=271, z=15}, time = 60}, ["RB Broly SSJ4"] = {pos = {x=412, y=271, z=15}, toPos = {x=426, y=271, z=15}, time = 60}, ["RB Turles SSJ4"] = {pos = {x=438, y=271, z=15}, toPos = {x=449, y=271, z=15}, time = 60}, ["RB Bardock SSJ4"] = {pos = {x=461, y=271, z=15}, toPos = {x=419, y=232, z=15}, time = 60}, ["RB Gogeta SSJ4"] = {pos = {x=419, y=220, z=15}, toPos = {x=419, y=316, z=15}, time = 60}, ["Porunga"] = {pos = {x=419, y=295, z=15}, toPos = {x=419, y=400, z=13}, time = 60}, ["Fire Guardian1"] = {pos = {x=661, y=703, z=8}, toPos = {x=662, y=706, z=8}, time = 60}, ["Fire Guardian2"] = {pos = {x=657, y=753, z=8}, toPos = {x=657, y=755, z=8}, time = 60}, ["Fire Guardian3"] = {pos = {x=640, y=720, z=6}, toPos = {x=638, y=720, z=6}, time = 60}, ["Fire Guardian4"] = {pos = {x=640, y=717, z=6}, toPos = {x=638, y=716, z=6}, time = 60}, ["Fire Guardian5"] = {pos = {x=636, y=730, z=5}, toPos = {x=636, y=732, z=5}, time = 60}, ["Fire Guardian6"] = {pos = {x=636, y=707, z=5}, toPos = {x=636, y=705, z=5}, time = 60}, ["Hawk"] = {pos = {x=648, y=841, z=3}, toPos = {x=646, y=841, z=3}, time = 60}, ["Warlock"] = {pos = {x=637, y=837, z=3}, toPos = {x=641, y=831, z=1}, time = 60}, } function removeTp(tp) local t = getTileItemById(tp.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tp.pos, CONST_ME_POFF) end end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(tpId, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) addEvent(doCreateMonster, tp.time*1001, getCreatureName(cid), tp.pos) end return TRUE end
-
Fir3element's post in (Resolvido)Add Exaust no script? was marked as the answerlocal tempo = 30 local storage, exhaust = 94360, 5 function onSay(cid, words, param, condition, channel) if not getCreatureCondition(cid, CONDITION_INFIGHT) then if (getPlayerStorageValue(cid, storage) <= os.time()) then doTeleportThing(cid, {x=1053, y=1054, z=7}) doPlayerSendTextMessage(cid,22, "Voce foi teleportado para o CP") setPlayerStorageValue(cid, storage, os.time()+exhaust) else doPlayerSendCancel(cid, "Voce so pode usar o comando daqui a "..exhaust.." segundos") end end return true end