Ir para conteúdo

WarW0lf

Membro
  • Registro em

  • Última visita

Tudo que WarW0lf postou

  1. WarW0lf postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Não coloco Spoiler porque meu navegador é bugado... Tipo: eu clico em Mostrar e não acontece nada
  2. Algumas pessoas acima disse que há um Bug no servidor de Magias e Items. Não sei se o seu problema é esse mas provavelmente é.
  3. WarW0lf postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    Falaaaaaaaaaaaaaa galera, beleza? Bom, muitos OT's das versões novas (8.7 ~ 9.81) estão com o NPC Chondur que faz a montaria do Stampor BUGADO. Vou postar pra vocês o script correto pra que a montaria do Stampor possa ser pega in-game e não seja necessário vende-la pelo site. Em libs/050-function.lua adicione: function getItemsFromList(items) local str = '' if table.maxn(items) > 0 then for i = 1, table.maxn(items) do str = str .. items[i][2] .. ' ' .. getItemNameById(items[i][1]) if i ~= table.maxn(items) then str = str .. ', ' end end end return str end function doRemoveItemsFromList(cid,items) local count = 0 if table.maxn(items) > 0 then for i = 1, table.maxn(items) do if getPlayerItemCount(cid,items[i][1]) >= items[i][2] then count = count + 1 end end end if count == table.maxn(items) then for i = 1, table.maxn(items) do doPlayerRemoveItem(cid,items[i][1],items[i][2]) end else return false end return true end Em NPC/Chondur.xml troque o script por esse: <?xml version="1.0" encoding="UTF-8"?> <npc name="Chondur" script="data/npc/scripts/Chondur.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="154" head="0" body="94" legs="120" feet="116" addons="3"/> <parameters> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="rituals;" /> <parameter key="keyword_reply1" value="Hm. I don't think you need another one of my counterspells to cross the barrier on Goroma." /> <parameter key="module_shop" value="1" /> <parameter key="shop_sellable" value="Mysterious Voodoo Skull,5669,4000;Enigmatic Voodoo Skull,5670,4000;black skull,9969,4000;blood herb,2798,500;blood goblet,9447,10000;" /> <parameter key="message_greet" value="Be greeted, child. What do you want in an old shaman's hut?"/> <parameter key="message_farewell" value="Good bye."/> <parameter key="message_walkaway" value="Good bye!" /> <parameter key="message_sendtrade" value="Well, I currently buy mysterious and enigmatic voodoo skulls and a few other things I might need for my rituals." /> </parameters> e em npc/scripts/Chondur.lua coloque: 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 AddMount(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (isPlayerPremiumCallback == nil or isPlayerPremiumCallback(cid) == true or parameters.premium == false) then if(parameters.level ~= nil and getPlayerLevel(cid) < parameters.level) then npcHandler:say('You must reach level ' .. parameters.level .. ' to buy this mount.', cid) elseif canPlayerRideMount(cid, parameters.mountid) then npcHandler:say('you already have this mount!', cid) elseif not doRemoveItemsFromList(cid,parameters.items) then npcHandler:say('Sorry You need '..getItemsFromList(parameters.items)..' to buy this mount!', cid) else doPlayerAddMount(cid, parameters.mountid) npcHandler:say('Here is your mount!', cid) npcHandler:resetNpc() end else npcHandler:say('I can only allow premium players to buy this mount.', cid) end npcHandler:resetNpc() return true end local mounts = { {"stampor", items = {{13300,100}, {13299,50},{13301,30}}, mountid = 11, level = 15, premium = false}, {"mounts", text = "I sell these mounts: {stampor}!"} } for i = 1, #mounts do local get = mounts[i] if type(get.items) == "table" then local node = keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "You want to buy the mount " .. get[1] .. " for "..getItemsFromList(get.items).." ?"}) node:addChildKeyword({"yes"}, AddMount, {items = get.items,mountid = get.mountid, level = get.level, premium = get.premium}) node:addChildKeyword({"no"}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "Ok, then.", reset = true}) else keywordHandler:addKeyword({get[1]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = get.text}) end end mounts = nil npcHandler:addModule(FocusModule:new()) -- Storage IDs -- fshaman = 22020 sshaman = 22021 newaddon = 'Ah, right! The shaman mask! Here you go.' noitems = 'You do not have all the required items.' noitems2 = 'You do not have all the required items or you do not have the outfit, which by the way, is a requirement for this addon.' already = 'It seems you already have this addon, don\'t you try to mock me son!' function ShamanFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,fshaman) == -1 then if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 and getPlayerItemCount(cid,5810) >= 5 then if doPlayerRemoveItem(cid,3955,5) and doPlayerRemoveItem(cid,5015,1) and doPlayerRemoveItem(cid,5810,5) then npcHandler:say('Ah, right! The shaman staff! Here you go.') doSendMagicEffect(getCreaturePosition(cid), 13) setPlayerStorageValue(cid,fshaman,1) if getPlayerSex(cid) == 1 then doPlayerAddOutfit(cid, 154, 2) elseif getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 158, 2) end end else selfSay(noitems) end else selfSay(already) end end function ShamanSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,sshaman) == -1 then if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then if doPlayerRemoveItem(cid,3966,5) and doPlayerRemoveItem(cid,3967,5) then npcHandler:say('Ah, right! The shaman mask! Here you go.') doSendMagicEffect(getCreaturePosition(cid), 13) setPlayerStorageValue(cid,sshaman,1) if getPlayerSex(cid) == 1 then doPlayerAddOutfit(cid, 154, 1) elseif getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 158, 1) end end else selfSay(noitems) end else selfSay(already) end end node1 = keywordHandler:addKeyword({'staff'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get shaman staff you need give me 5 Pirate Voodoo Doll, 5 Dworc Voodoo Dolls and 1 Mandrake. Do you have them with you?'}) node1:addChildKeyword({'yes'}, ShamanFirst, {}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node3 = keywordHandler:addKeyword({'first'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get shaman staff you need give me 5 Pirate Voodoo Doll, 5 Dworc Voodoo Dolls and 1 Mandrake. Do you have them with you?'}) node3:addChildKeyword({'yes'}, ShamanFirst, {}) node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node2 = keywordHandler:addKeyword({'mask'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get shaman mask you need give me 5 banana staffs and 5 tribal masks. Do you have them with you?'}) node2:addChildKeyword({'yes'}, ShamanSecond, {}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node4 = keywordHandler:addKeyword({'second'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To get shaman mask you need give me 5 banana staffs and 5 tribal masks. Do you have them with you?'}) node4:addChildKeyword({'yes'}, ShamanSecond, {}) node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) npcHandler:addModule(FocusModule:new()) Créditos: Alisson
  4. Bom galera, encontrei esse conteúdo na Internet e resolvi trazer pra voces. Looktype 100% Loots 97% Corpses 100% (TFS Items.otb) Hits 90% http://www.mediafire.com/?d99z3wtxj8bxm65 Créditos: Alisson
  5. WarW0lf postou uma resposta no tópico em Playground (Off-topic)
    Legal em.
  6. Bom, aqui rodou normal
  7. Isso é problema do seu PC.
  8. No config.php vai ter uma parte de Preço, Valor, não sei direito vai estar 100 = 1, se você alterar pra 200 = 2 ou seja double points, 150 = 50% a mais de pontos entendeu?
  9. Bom cara, voce dizendo que "quer o mapa deles" creio que o mapa seja ótimo e sejam servers conhecidos. Então possivelmente ninguem vai te passar o Mapa e muito menos terá ele pra Download. Tente fazer seu próprio OT!
  10. WarW0lf postou uma resposta no tópico em Suporte Tibia OTServer
    Nem em Linux nem em Windows nunca usei o programa. Só criando o IP ele funcionava normalmente.
  11. Então o bug ta no seu Site LOL!
  12. Claro.... Agora voce tem que por seu site la, criar a database, por a pasta do ot no config.ini etc...
  13. Voce tem que colocar seu Site nesse diretório /var/www e remover o Index.html que ja vem por padrão.
  14. sudo apt-get install lamp-server^ sudo apt-get install phpmyadmin sudo ln -s /usr/share/phpmyadmin /var/www sudo /etc/init.d/apache2 restart
  15. WarW0lf postou uma resposta no tópico em Playground (Off-topic)
    Eai Markin beleza?
  16. WarW0lf postou uma resposta no tópico em Suporte & Pedidos
    Ótimo cara, gostei muito!
  17. WarW0lf postou uma resposta no tópico em Suporte Tibia OTServer
    Seu servidor não viverá caindo como o amigo acima disse mas qualquer ataque, até de um "noob" pode derruba-lo.
  18. WarW0lf postou uma resposta no tópico em Suporte Tibia OTServer
    Sim. Ou não... Se você tiver dinheiro pra gastar, tipo uns 300 reais por mes da pra por em Windows, mas acho que compensa voce aprender mexer em Linux
  19. WarW0lf postou uma resposta no tópico em Suporte Tibia OTServer
    Não compensa. O que compensa é voce aprender a mexer em Linux e abrir nele
  20. WarW0lf postou uma resposta no tópico em Suporte Tibia OTServer
    Depois que passar dos 50 players vai começar a ser atakado.
  21. Depende do mapa dele, se for baiak, um vps de 1gb ram, 40 reais ja guenta 150 player ;/
  22. WarW0lf postou uma resposta no tópico em Portal
    Ele tava sem fone
  23. Esse comando causa clones, ficadica#.

Informação Importante

Confirmação de Termo