Ir para conteúdo
Banner com Efeitos

Bruno Carvalho

Héroi
  • Registro em

  • Última visita

Tudo que Bruno Carvalho postou

  1. Ele é em algumas coisas ._.
  2. Para mim a arte do insulto é uma peça de teatro Então foda-se :3
  3. Eu já assisti :/uhehueue
  4. Muito bom hehe Tinha isso no Alissow 5.0? ehuhueuheu Então tinha na TFS 0.4 :3
  5. Versão: 4.0 Distro: 1.0+ Descrição: Existem muitos scripts que ajudam o administrador do servidor a cuidar dele, um deles é saber coisas sobre quem está jogando e se está sendo honesta. Eu peguei alguns scripts e estou juntando em um para diminuir o tamanho e ter uma fácil verificação. TAG: <talkaction log="yes" words="/p" separator=" " script="playercheck.lua" /> Script: Talkactions/scripts/playercheck.lua function getItemsInContainer(cont, sep) local text = "" local tsep = "" local count = "" for i=1, sep do tsep = tsep.."-" end tsep = tsep..">" for i=0, getContainerSize(cont.uid)-1 do local item = getContainerItem(cont.uid, i) if isContainer(item.uid) == FALSE then if item.type > 1 then count = " ("..item.type.."x)" end text = text.."\n"..tsep..getItemName(item.itemid)..""..count.." ("..item.itemid..")" else if getContainerSize(item.uid) > 0 then text = text.."\n"..tsep..getItemName(item.itemid).." ("..item.itemid..")" text = text..getItemsInContainer(item, sep+2).."" else text = text.."\n"..tsep..getItemName(item.itemid).." ("..item.itemid..")" end end end return text end function onSay(cid, words, param) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return false end local slotName = {"Cabeça", "Amuleto", "Backpack", "Armor", "Mao Direita", "Mao Esquerda", "Legs", "Pés", "Ring", "Ammo Slot"} local t = param:split(', ') if(t[1] == 'check') then if getPlayerGroupId(cid) >= 2 then local p = Player(t[2]) if p then local text = p:getName().."'s Equipment: " for i=1, 10 do text = text.."\n\n" local item = getPlayerSlotItem(p:getName(), i) if item.itemid > 0 then count = '' if item.type > 1 then count = " ("..item.type.."x)" end if isContainer(item.uid) == TRUE then text = text..slotName[i]..": "..getItemName(item.itemid)..""..count.." ("..item.itemid..") "..getItemsInContainer(item, 1) else text = text..slotName[i]..": "..getItemName(item.itemid)..""..count.." ("..item.itemid..")" end else text = text..slotName[i]..": Empty" end end doShowTextDialog(cid, 6579, text) else doPlayerSendCancel(cid, "This player is not online or not exist.") end end elseif(t[1] == 'delete') then if getPlayerGroupId(cid) == 3 then local p = Player(t[2]) if p then count = t[4] if(not t[4]) then count = 1 end if getPlayerItemCount(p:getName(), t[3]) > 0 then if doPlayerRemoveItem(p:getId(), t[3], count) then doPlayerSendCancel(cid, "Deleted Item.") else doPlayerSendCancel(cid, "This player does not have this amount of item.") end else doPlayerSendCancel(cid, "This player does not have the item.") end else doPlayerSendCancel(cid, "This player is not online or not exist.") end end else if getPlayerGroupId(cid) == 3 then id = getItemIdByName(t[1]) if not id then doPlayerSendCancel(cid, "The "..t[1].." not exist. ") return false end local result = db.getResult("SELECT name FROM players WHERE id IN (SELECT player_id FROM player_items WHERE itemtype = ".. id ..");") local msg = "Search results by item ".. getItemName(id) .." in your database:\n\n" if result:getID() ~= -1 then while true do local name = result:getDataString("name") msg = msg .. name .."\n" if not result:next() then break end end else msg = msg .. "The item was not found in any player." end doShowTextDialog(cid, id, msg) end end return true end Explicação: Quando o god digita: /p check, (PNAME) - Ele verifica os items que o player tem. /p del, (ID), (PNAME), (COUNT) - Ele deleta o item de determinado player (Se não colocar o count ele irá remover somente 1). /p (ID) - Ele verifica quantos players tem tal item. Créditos: Oneshot CaioODemais Comedinha (Bruno Carvalho)
  6. Muito bom cara :3 Porque não faz para tfs 1.0? agora que tem até arquivo especial para isso?
  7. eae

    Bruno Carvalho postou uma resposta no tópico em Playground (Off-topic)
  8. 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 → Aprendizagem → Começando seu Servidor" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  9. 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 → Aprendizagem → Começando seu Servidor" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  10. 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 → Aprendizagem → Começando seu Servidor" Para: "OTServ → Suporte OTServ → Suporte de Servidores Diferentes"
  11. 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: "Tibia King → Atendimento Geral" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  12. 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 OTServ Geral"
  13. o tfs 1.0 só funciona mysql amigo...
  14. Sim é na source, que distro está usando?
  15. Vai ter a versão > para você selecionar. Selecione a 10.22 e clique load core modules...
  16. Jamison o link está errado velho, arruma ai dps...
  17. Muito bom :3 tente atualizar só com as importantes que vão saindo :3 esse nome... hum...
  18. Bruno Carvalho postou uma resposta no tópico em Suporte Tibia OTServer
    ele funciona com a quest feita?
  19. Bruno Carvalho postou uma resposta no tópico em Suporte Tibia OTServer
    Depois que você fizer isso o id que você crio substitua em: local towncity = 7
  20. Bruno Carvalho postou uma resposta no tópico em Suporte Tibia OTServer
    O primeiro que não dá para usár 2x é só mudar removeonuse = TRUE para removeonuse = FALSE e o segundo teria de adicionar um storage e um outro script em creaturescripts para ficar fixo...
  21. Bruno Carvalho postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 keywordHandler:addKeyword({'weapon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm afraid I do not trade with weapons or armour. Nah'bob only deals with magical equipment."}) keywordHandler:addKeyword({'armor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm afraid I do not trade with weapons or armour. Nah'bob only deals with magical equipment."}) keywordHandler:addKeyword({'legs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm afraid I do not trade with weapons or armour. Nah'bob only deals with magical equipment."}) keywordHandler:addKeyword({'wares'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'offer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'good'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'equipment'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'magical'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'sell'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'have'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."}) keywordHandler:addKeyword({'amulet'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling and buying bronze amulets, stone skin amulets, elven amulets and garlic necklaces."}) keywordHandler:addKeyword({'ring'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling and buying stealth rings, power rings, sword rings, axe rings, and club rings."}) keywordHandler:addKeyword({'wand'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm buying wands of vortex, wands of dragonbreath, wands of plague, wands of cosmic energy and wands of inferno as well as magic light wands."}) keywordHandler:addKeyword({'special'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I'm selling and buying magic light wands. I'm currently also looking for mind stones, life crystals and orbs."}) function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, "items") or msgcontains(msg, "change") then npcHandler:say('I trade Enchanted Chicken Wind for Boots of Haste ,Warrior Sweat for 4 Warrior Helmets ,Fighting Spirit for 2 Royal Helmet Magic Sulphur for 3 Fire Swords and Loterry ticket for 100 empty vials', cid) elseif msgcontains(msg,'enchanted chicken wind') or msgcontains(msg,'boots of haste') then npcHandler:say('Do you want to trade Boots of haste for Enchanted Chicken Wind?', cid) talk_state = 1 elseif msgcontains(msg,'warrior Sweat') or msgcontains(msg,'warrior helmet') then npcHandler:say('Do you want to trade 4 Warrior Helmet for Warrior Sweat?', cid) talk_state = 2 elseif msgcontains(msg,'fighting Spirit') or msgcontains(msg,'royal helmet') then npcHandler:say('Do you want to trade 2 Royal Helmet for Fighting Spirit', cid) talk_state = 3 elseif msgcontains(msg,'magic sulphur') or msgcontains(msg,'fire sword') then npcHandler:say('Do you want to trade 3 Fire Sword for Magic Sulphur', cid) talk_state = 4 elseif msgcontains(msg,'lottery ticket') or msgcontains(msg,'lottery') or msgcontains(msg,'ticket') then npcHandler:say('Do you want to trade 100 empty vials for lottery ticket', cid) talk_state = 5 elseif msgcontains(msg,'yes') and talk_state == 1 then if getPlayerItemCount(cid,2195) >= 1 then if doPlayerRemoveItem(cid,2195,1) then npcHandler:say(msg,'Here you are', cid) doPlayerAddItem(cid,5891,1) end else npcHandler:say('Sorry you don\'t have the item', cid) end elseif msgcontains(msg,'yes') and talk_state == 2 then if getPlayerItemCount(cid,2475) >= 4 then if doPlayerRemoveItem(cid,2475,4) then npcHandler:say(msg,'Here you are', cid) doPlayerAddItem(cid,5885,1) end else npcHandler:say('Sorry you don\'t have the item', cid) end elseif msgcontains (msg,'yes') and talk_state == 3 then if getPlayerItemCount(cid,2498) >= 2 then if doPlayerRemoveItem(cid,2498,2) then npcHandler:say(msg,'Here you are', cid) doPlayerAddItem(cid,5884,2) end else npcHandler:say('Sorry but you don\'t have the item', cid) end elseif msgcontains(msg,'yes') and talk_state == 4 then if getPlayerItemCount (cid,2392) >= 3 then if doPlayerRemoveItem (cid,2392,3) then npcHandler:say(msg,'Here you are', cid) doPlayerAddItem(cid,5904,1) end else npcHandler:say('Sorry but you don\'t have the item', cid) end elseif msgcontains(msg,'yes') and talk_state == 5 then if getPlayerItemCount (cid,2006) >= 100 then if doPlayerRemoveItem (cid,2006,100) then npcHandler:say(msg,'Here you are', cid) doPlayerAddItem(cid,5957,1) end else npcHandler:say('Sorry but you don\'t have the item', cid, cid) end elseif msgcontains(msg,'no') and (talk_state >= 1 and talk_state <= 5) then npcHandler:say(msg,'Ok then', cid) talk_state = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) npcHandler:setMessage(MESSAGE_WALKAWAY, "How rude!")
  22. Kra qual baiak eu não sei qual é não, mais o GOD ali tava vendo quem tava de bot para testar o novo sistema contra bots? ehuehuehu'
  23. 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 WebSites" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  24. 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 Scripts" Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  25. 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" Para: "OTServ → OTServ Geral"

Informação Importante

Confirmação de Termo