Ir para conteúdo

loreal

Membro
  • Registro em

  • Última visita

Tudo que loreal postou

  1. tenta assim function onDeath(cid, corpse, deathList) for _, pid in ipairs(deathList) do if isCreature(pid) == true then strings[position] = t == 1 and "" or strings[position] .. ", " strings[position] = strings[position] .. getCreatureName(pid) .. "" t = t + 1 else strings[position] = t == 1 and "" or strings[position] .. ", " strings[position] = strings[position] .."a field item" t = t + 1 end end for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end msg = getCreatureName(cid) .. " O jogador " .. deathType .. " no level " .. getPlayerLevel(cid) .. " foi morto " .. str end for _, oid in ipairs(getPlayersOnline()) do doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, msg) end return true end
  2. em game.cpp procure por if(player->isAccountManager()) acima adicione std::string words []= {".net", ".br", ".uk", ".tk", "dyndns","servegame","no-ip", ".net", ".com", ".br", ".org", ".pl", ".eu"}; int ii, length; length = sizeof(words)/sizeof(words[0]); for(ii=0; ii < int(length); ii++) { if (int(_text.find(words[ii])) > 0 || _text == words[ii]) { player->sendTextMessage(MSG_STATUS_SMALL, "You can't send this message, forbidden characters."); return false; break; } } e copile abraço!
  3. loreal postou uma resposta no tópico em Suporte OTServer Derivados
    pelo logs que eu vi só tem [04/02/2015 09:00:36] Duplicate uniqueId 13500 [04/02/2015 09:00:36] Duplicate uniqueId 13500 é só ir no mapa editor e ve se tem algum bau com mesmo id repetido ou em seu actions com esse uniqueid 13500
  4. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    tá ae local coins = { [ITEM_GOLD_COIN] = { to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW }, [ITEM_PLATINUM_COIN] = { from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE }, [ITEM_CRYSTAL_COIN] = { from = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_TEAL } } function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then return false end local coin = coins[item.itemid] if(not coin) then return false end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect) end return true end
  5. loreal postou uma resposta no tópico em Recursos Avançados
    isso e um tipo de segurança para bancos de dados caso algum hacker invada seu banco ai as senhas ficam criptografadas em md1 md2 md3 md4 md5 SHA1 SHA2 SHA3 SHA4 SHA5
  6. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    caso for windows recomendo usar esse. http://www.4shared.com/rar/x4U8E9Zc/KiwiGuard_-_Firewal_Anti-Dos.htm
  7. loreal postou uma resposta no tópico em Suporte Tibia OTServer
    ai está local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function oracle(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local cityNode = node:getParent():getParent() local vocNode = node:getParent() local destination = cityNode:getParameters().destination local town = cityNode:getParameters().town local vocation = vocNode:getParameters().vocation if(destination ~= nil and vocation ~= nil and town ~= nil) then if(getPlayerLevel(cid) < parameters.level) then npcHandler:say('You must first reach level ' .. parameters.level .. '!', cid) npcHandler:resetNpc() else if(getPlayerVocation(cid) > 0) then npcHandler:say('Sorry, You already have a vocation!') npcHandler:resetNpc() else doPlayerSetVocation(cid, vocation) doPlayerSetTown(cid, town) npcHandler:resetNpc() local tmp = getCreaturePosition(cid) doTeleportThing(cid, destination) doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(destination, CONST_ME_TELEPORT) end end end return true end function greetCallback(cid) if(getPlayerLevel(cid) < 8) then npcHandler:say('COME BACK WHEN YOU GROW UP, CHILD!') return false else return true end end npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:setMessage(MESSAGE_GREET, 'Hello |PLAYERNAME|. Are you prepared to face your destiny?') local yesNode = KeywordNode:new({'yes'}, oracle, {level = 8}) local noNode = KeywordNode:new({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, moveup = 1, text = 'Then what vocation do you want to become?'}) local node1 = keywordHandler:addKeyword({'yes'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'What city do you wish to live in? {Rhyves}, {Varak} or {Jorvik}?'}) local node2 = node1:addChildKeyword({'varak'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=242, y=429, z=12}, text = 'Varak, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'}) local node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node2 = node1:addChildKeyword({'rhyves'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=159, y=387, z=6}, text = 'Rhyves, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'}) node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node2 = node1:addChildKeyword({'jorvik'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, town = 1, destination = {x=469, y=172, z=7}, text = 'Jorvik, eh? So what vocation do you wish to become? {Sorcerer}, {druid}, {paladin} or {knight}?'}) node3 = node2:addChildKeyword({'sorcerer'}, StdModule.say, {npcHandler = npcHandler, vocation = 1, onlyFocus = true, text = 'So, you wish to be a powerful magician? Are you sure about that? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'druid'}, StdModule.say, {npcHandler = npcHandler, vocation = 2, onlyFocus = true, text = 'Are you sure that a druid is what you wish to become? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'paladin'}, StdModule.say, {npcHandler = npcHandler, vocation = 3, onlyFocus = true, text = 'A ranged marksman. Are you sure? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) node3 = node2:addChildKeyword({'knight'}, StdModule.say, {npcHandler = npcHandler, vocation = 4, onlyFocus = true, text = 'A mighty warrior. Is that your final decision? This decision is irreversible!'}) node3:addChildKeywordNode(yesNode) node3:addChildKeywordNode(noNode) keywordHandler:addKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Then come back when you are ready.'}) npcHandler:addModule(FocusModule:new())
  8. qual mensagem vc quer ? tenta assim local msg = "Mensagem que vc quer" function onLogin(cid) if getCreatureName(cid) ~= "Account Manager" then if getPlayerStorageValue(cid, 1691) ~= 1 then doPlayerPopupFYI(cid, msg) setPlayerStorageValue(cid, 169100, 1) end end return true end
  9. tenta assim function onDeath(cid, corpse, deathList) for _, pid in ipairs(deathList) do if isCreature(cid) == true then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O jogador "..getCreatureName(cid).." no level "..getPlayerLevel(cid).." foi morto pelo monstro "..getCreatureName(deathList[1])..".") end end return true end
  10. vai no seu config.lua procure por showManaChange mude para showManaChange = true
  11. char do adm deslogado tente deixar server off tb
  12. posta seu createaccount.php ou procure por if(!isset($e['name'])) e adicione isso em baixo if(!isset($e['name'])) { foreach(array('@', '~', '[', ']', '-', '"') as $v) if($v == substr($s, 0, strlen($v))) { $e['name'] = 'Não poder usar esse tipo caracteres!'; break;
  13. fico feliz que tenha gostado
  14. bom espero que gostem! estou postando tb psd em anexo abraço! by loreal.zip
  15. mlz pela demora espero que gostem xD
  16. da esse erro [31/1/2015 18:25:11] [Error - TalkAction Interface] [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:onSay [31/1/2015 18:25:11] Description: [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:14: attempt to compare number with nil [31/1/2015 18:25:11] stack traceback: [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:14: in function <data/talkactions/scripts/serverinfo.lua:13> da esse erro [31/1/2015 18:25:11] [Error - TalkAction Interface] [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:onSay [31/1/2015 18:25:11] Description: [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:14: attempt to compare number with nil [31/1/2015 18:25:11] stack traceback: [31/1/2015 18:25:11] data/talkactions/scripts/serverinfo.lua:14: in function <data/talkactions/scripts/serverinfo.lua:13>
  17. fico legal só que ta aparecendo primeiro uma mensagem em popup falando os players online depois a mensagem tem como colocar tudo junto n ?? function getUpTimeString() local wut = getWorldUpTime() local h, m = math.floor(wut / 3600), math.floor((wut % 3600) / 60) if m == 60 then m = 0 h = h + 1 end return h..' hour'..(h > 1 and 's' or '')..' and '..m..' minute'..(m > 1 and 's' or '') end function onSay(cid) local str = 'mensagem '..getUpTimeString() doPlayerPopupFYI(cid, "Temos "..#getOnlinePlayers().." players online") doPlayerPopupFYI(cid, str) return true end
  18. espero que gostem abraço
  19. muito bom teria como por para ver quantidades de players online tb ? tipo 133 players online. embaixo do uptime.

Informação Importante

Confirmação de Termo