Ir para conteúdo

satan666

Conde
  • Total de itens

    612
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que satan666 postou

  1. nao itendi nada do que voce postou explica melhor o que voce quer.
  2. ta ae o npc edita a gosto: 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 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, 'account vip') or msgcontains(msg, 'vip')) then selfSay('msg do npc pro player confirmando a compra da vip', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerMoney(cid) >= 1000000) then if(doPlayerRemoveMoney(cid, 1000000) == TRUE) then setPlayerStorageValue(cid,store,1) selfSay('aki o final da conversa agradecendo por ter comprado a vip.', cid) else selfSay('Sorry, you don\'t have enough gold.', cid) end else selfSay('Descupe, voce nao tem dinheiro suficiente!', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then talkState[talkUser] = 0 selfSay('Ok then.', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. aki ta o npc s. cyclops: 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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, 'help') then selfSay('You can here change some items for "spider silk yarn", "chunk of crude iron", "draconian steel", "warrior sweat", "magic sulpher", "enchanted chicken wing", "royal steel", "hell steel", "engraved crossbow", "fighting spirit", "infernal bolt", "blue, green and red piece of clothes", "obsidian knife" and "lottery ticket".', cid) elseif msgcontains(msg, 'spider silk yarn') then if getPlayerItemCount(cid,5879) >= 10 then selfSay('Did you bring me the 10 Giant Silks ?', cid) talk_state = 1 else selfSay('I need a 10 Giant Spider Silks, to give you the spider silk yarn. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 1 then talk_state = 0 if getPlayerItemCount(cid,5879) >= 10 then if doPlayerRemoveItem(cid,5879, 10) == TRUE then doPlayerAddItem(cid, 5886, 1) selfSay('Here u are.') end else selfSay(havent_item) end elseif msgcontains(msg, 'chunk of crude iron') then if getPlayerItemCount(cid,2393) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Giant Sword ?') talk_state = 2 else selfSay('I need a 3 Bast Skirts and Giant Sword, to give you the chunk of crude iron. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 2 then talk_state = 0 if getPlayerItemCount(cid,2393) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2393,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5892,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'draconian steel') then if getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me 3 Bast Skirts and Dragon Shield ?', cid) talk_state = 3 else selfSay('I need 3 Bast Skirts and Dragon Shield, to give you the draconian steel. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 3 then talk_state = 0 if getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2516,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then doPlayerAddItem(cid,5889,1) selfSay('Here u are.') end else selfSay(havent_item) end elseif msgcontains(msg, 'warrior sweat') then if getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 then selfSay('Did you bring me 4 warrior helmets?', cid) talk_state = 4 else selfSay('I need 4 warrior helmets, to give you the warrior sweat. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 4 then talk_state = 0 if getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 and getPlayerItemCount(cid,2475) >= 1 then if doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 and doPlayerRemoveItem(cid,2475,1) == 1 then doPlayerAddItem(cid,5885,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'magic sulphur') then if getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 then selfSay('Did you bring me 3 fire swords?', cid) talk_state = 5 else selfSay('I need 3 fire swords, to give you the magic sulpher. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 5 then talk_state = 0 if getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 and getPlayerItemCount(cid,2392) >= 1 then if doPlayerRemoveItem(cid,2392,1) == 1 and doPlayerRemoveItem(cid,2392,1) == 1 and doPlayerRemoveItem(cid,2392,1) == 1 then doPlayerAddItem(cid,5904,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'enchanted chicken wing') then if getPlayerItemCount(cid,2195) >= 1 then selfSay('Did you bring me boots of haste?', cid) talk_state = 6 else selfSay('I need boots of haste, to give you the enchanted chicken wing. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 6 then talk_state = 0 if getPlayerItemCount(cid,2195) >= 1 then if doPlayerRemoveItem(cid,2195,1) == 1 then doPlayerAddItem(cid,5891,1) selfSay(addon_give) end else selfSay(havent_item) end elseif msgcontains(msg, 'royal steel') then if getPlayerItemCount(cid,2487) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Crown Armor ?', cid) talk_state = 7 else selfSay('I need 3 Bast Skirts and Crown Armor, to give you the royal steel. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 7 then talk_state = 0 if getPlayerItemCount(cid,2487) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2487,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5887,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'hell steel') then if getPlayerItemCount(cid,2462) == 1 and getPlayerItemCount(cid,3983) == 3 then selfSay('Did you bring me the 3 Bast Skirts and Devil Helmet ?', cid) talk_state = 8 else selfSay('I need a 3 Bast Skirts and Devil Helmet, to give you the hell steel. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 8 then talk_state = 0 if getPlayerItemCount(cid,2462) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then if doPlayerRemoveItem(cid,2462,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 and doPlayerRemoveItem(cid,3983,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5888,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'engraved crossbow') then if getPlayerItemCount(cid,5954) >= 15 then selfSay('Did you bring me the 15 demon horns?', cid) talk_state = 9 else selfSay('I need a 15 demon horns, to give you the engraved crossbow. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 9 then talk_state = 0 if getPlayerItemCount(cid,5954) >= 15 then if doPlayerRemoveItem(cid,5954,15) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5947,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'fighting spirit') then if getPlayerItemCount(cid,2498) >= 1 and getPlayerItemCount(cid,2498) >= 1 then selfSay('Did you bring me the 2 Royal Helmets?', cid) talk_state = 10 else selfSay('I need a 2 Royal Helmets, to give you the Fighting Spirit. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 10 then talk_state = 0 if getPlayerItemCount(cid,2498) >= 1 and getPlayerItemCount(cid,2498) >= 1 then if doPlayerRemoveItem(cid,2498,1) == 1 and doPlayerRemoveItem(cid,2498,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5884,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'infernal bolt') then if getPlayerItemCount(cid,5944) >= 1 then selfSay('Did you bring me the Soul Orb?', cid) talk_state = 11 else selfSay('I need a Soul Orb, to give you the 10 Infernal Bolts. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 11 then talk_state = 0 if getPlayerItemCount(cid,5944) >= 1 then if doPlayerRemoveItem(cid,5944,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,6529,10) end else selfSay(havent_item) end elseif msgcontains(msg, 'blue piece of cloth') then if getPlayerItemCount(cid,2663) >= 1 then selfSay('Did you bring me the Mystic Turban ?', cid) talk_state = 12 else selfSay('I need a Mystic Turban, to give you the Blue Piece of Cloth. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 12 then talk_state = 0 if getPlayerItemCount(cid,2663) >= 1 then if doPlayerRemoveItem(cid,2663,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5912,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'green piece of cloth') then if getPlayerItemCount(cid,2652) >= 1 then selfSay('Did you bring me the Green Tunic ?', cid) talk_state = 13 else selfSay('I need a Green Tunic, to give you the Green Piece of Cloth. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 13 then talk_state = 0 if getPlayerItemCount(cid,2652) >= 1 then if doPlayerRemoveItem(cid,2652,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5910,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'red piece of cloth') then if getPlayerItemCount(cid,2655) >= 1 then selfSay('Did you bring me the Red Robe ?', cid) talk_state = 14 else selfSay('I need a Red Robe, to give you the Red Piece of Cloth. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 14 then talk_state = 0 if getPlayerItemCount(cid,2655) >= 1 then if doPlayerRemoveItem(cid,2655,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5911,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'obsidian knife') then if getPlayerItemCount(cid,3983) >= 3 and getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,2425) >= 1 then selfSay('Did you bring me the 3 bast skirts, a dragon shield and a obsidian lance?', cid) talk_state = 15 else selfSay('I need 3 bast skirts, a dragon shield and a obsidian lance to give you the obsidian knife. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 15 then talk_state = 0 if getPlayerItemCount(cid,3983) >= 3 and getPlayerItemCount(cid,2516) >= 1 and getPlayerItemCount(cid,2425) >= 1 then if doPlayerRemoveItem(cid,3983,1) == 3 and doPlayerRemoveItem(cid,2516,1) == 1 and doPlayerRemoveItem(cid,2425,1) == 1 then selfSay(addon_give) doPlayerAddItem(cid,5908,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'ticket') or msgcontains(msg, 'lottery') or msgcontains(msg, 'lottery ticket') or msgcontains(msg, 'lotery ticket') then if getPlayerItemCount(cid,2006) >= 100 then selfSay('Did you bring me 100 empty vials?', cid) talk_state = 9 else selfSay('I need 100 empty vials, to give you a lottery ticket. Come back when you have them.', cid) talk_state = 0 end elseif msgcontains(msg, 'yes') and talk_state == 9 then talk_state = 0 if getPlayerItemCount(cid,2006) >= 100 then if doPlayerRemoveItem(cid,2006,100) == 1 then selfSay(addon_give) if(math.random(1,10) == 1) then doPlayerAddItem(cid,5958,1) else doPlayerAddItem(cid,5956,1) end else selfSay(havent_item) end elseif msgcontains(msg, 'yes') and talk_state == 6 then if getPlayerItemCount(cid,2006) >= 100 then if doPlayerTakeItem(cid,2006,100) == 0 then selfSay('Here you are.') if(math.random(1,10) == 1) then doPlayerAddItem(cid,5958,1) else doPlayerAddItem(cid,5956,1) end else selfSay(hasNoMsg) end else selfSay(hasNoMsg) end elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then selfSay('Ok than.', cid) talk_state = 0 end -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. vo te fazer uma pergunta voce quer tipo assim o cara pede o addon hunter e o npc fala o que voce quer ? tipo player: hi npc: hello (name) eu vendo ou troco por itens todos os addons. player: hunter addon npc: voce me trouxe uma sniper gloves necessaria pro addon? <<<<<<<<<<<< isso que voce quer editar? na que esta no seu script do npc voce nao pode editar pq ele esta usando uma programaçao que verifica o nome do iten pelo id. entao ele fala pro player o nome do iten e copia o nome que o player pediu pro addon tipo na parte que ele fala pro npc hunter addon entau o npc copia isso e diz o id do iten necessario e o que o player falou.
  5. nada a ver o que voce disse pra ele ai e pra auterar a chance de hit do bolt nao pra dizer que gasta ou n. faz o seguinte remove isso do itens xml <attribute key="ammoAction" value="removecount" /> ai ele nao remove mais o bolt.
  6. satan666

    Varatahmap

    isso nao e download de ot serve e apenas download do mapa do ot. very nice you map.
  7. voce ta usando o id certo da parede? verifique melhor antes de postar.
  8. acredito que esse problema pode ser do EXE. do ot. mas nao sei como solucionar isso. eu ja tive esse mesmo problema o que u fiz foi apenas mudar de map editor. tenta abrir ele com outro map editor e salva e verifica se funciona.
  9. respondendo a primeira questao e o seguinte. pra por o map no ot voce tem que ir na pasta onde esta o exe. do ot abra a pasta data/word e verifique o nome do arquivo com extensao otbm. ponha o seu mapa desse mesmo formato e nomeie com o nome desejado. agora na pasta onde esta o exe.(exe. <<< e o que abre o ot) abra o config.lua em bloco de notas e procure pelo nome da quele mapa que esta na pasta data/word e renomeie pelo nome do seu mapa. respondendo a segunda questao a resposta e nao necessariamente mas pra voce por actions e uids no mapa voce ira necessitar mexer na pasta action e movements do ot pra verificar se e possivel adicionar no mapa a action ou uid ue deseja. nao vou postar um link com esse tipo de tutor pq to sem tempo. espero ter ajudado. qualquer outra duvida poste.
  10. ele ta com um problema no tfs 0.3.3 que eu to utilizando. o erro e o seguinte e que na base da demon oak do braço direito >>>>>>> esse lado ele num para de sumonar os bixos numka acaba sera ue e erro do script o do ot? e como faço pra ele sumonar poucas vezes os bixos p ele ta sumonando muitas vezes pra acabar.
  11. E eu ja sabia mas acho um pouco dificil alguem por isso no ot ate pq o proprio jogo e upa, upa, upa... dificilmente alguem quer upa e parar se eu nao posso upa mais ou faço outro char ou paro de jogar.
  12. sinceramente eu jogaria com total orgulho... voce poe em um ot duas coisas essenciais (desculpe se eu estive errado) volta a jogar o tibia como deveria ser na qual foi a melhor forma de jogar tibia foi da 7.4 e unir as novas armaduras e armas de hj com a jogabilidade de antigamente eu achei uma grande ideia.
  13. na minha opiniao o tibia rl antigamente era bom de jogar mas hj em dia somos limitados a matar as pessoas, limitaos a jogar devido a stamina entre outras coisas. joga ot e bom pela questao de que vc e forte pode matar as pessoas e nao liga se vai tomar ban ou perde um certo tempo de p.a que na maioria das vezes as p.a de ot e mais baratas do que na rl mas a questao nao e da p.a e sim da forma de jogar porque eu mesmo tou cansado de jogar rl com uma sorcerer que gasta de mais pra upa um level e fico lizo pq o loot nao paga o quanto eu gasto com sd ou magias pra matar os monstros. entaum eu so limitado a caçar bixos fracos demais pro meu lvl pela questao de nao ter dinheiro pra poder caçar bixo forte. acho q isso e que limita muito meu jogo com rl. fico chateado e cansado de ter que ficar caçando bixo fraco por que nao posso gastar ou nao tenho dinheiro pra gastar caçando dl, gs ou qualquer outro bixo mais adequado pro meu lvl...
  14. vlw mas e necessario fazer isso apenas com esse map editor ou com outros tb server?
  15. seria bom se posta umas ss ae do mapa... vo baixar e depois digo o que achei quem sabe posso ate ajustar o mapa... mas acho q vai ta bom da forma que vc fez... deu um erro aki quando fui baixar verifica se o link ta funcionando... se nao for o link vo mudar de cyber pra verificar....
  16. gostei muito do moghu ja testei e deixei ele no meu server obg pela monstro...
  17. vlw mesmo tava precisando do cyclop ae pra poder fazer alguns addons....
  18. o link ta com problema... x;
  19. vo testa esse pet pra ve se funfa em servfull...
  20. esses sitema funciona em todos os ot serve? vo testa pra ve se funciona em servfull se n funfa eu t digo o problema q ocorreu ... vlw obg por posta algo q ira ajudar muitos ot q n querem bots jogamndo ao inves de players jogando...
  21. vo verifica pra ve se funciona em outras versoes.. flw pela ajuda e por ter postado esse npc....
  22. vo vereificar se funciona e depois eu posta aki comentando... flw valw ae pela ajuda
  23. vlw mano vo tyesta pq num to no meu pc depois eu digo se funcionou ou n blz vlw pela ajuda....
  24. satan666

    Npc E Storegevalue

    gostaria de saber como eu faço pra remover storagevalue de um player e se der q fosse por um tile... e se desse gostaria de saber como faço pra meus npcs q venden e trocam itens n so vende se e trocasse mas tb q eles podesem falar tipo o npc diz vendo armor e shields venham conferir minhas ofertas.... tipo assim ai um player ia la no npc e diria trade e verificava a oferta do npc.... espero q me ajudem em um dos dois ou se der em ambos... obg agradeço muito a todos... npc_e_storagevalue.txt
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...