Ir para conteúdo

RenatoPdz

Campones
  • Total de itens

    16
  • Registro em

  • Última visita

Tudo que RenatoPdz postou

  1. Rox ... gostei muito pode ficar sabendo que conserteza vai estar no meu ot... bem criativo :smile_positivo:
  2. RenatoPdz

    Arena Svargrond

    Removido (ripping)
  3. RenatoPdz

    Arena Svargrond

    Ripping
  4. Rox gostei da ropa dele... =D Conserteza vou coloca-lo no meu ot
  5. SHUAUHsh Sou pessimo no Portugues kkk vou Trocar lá, e é aki msm q posta isso?
  6. O gente nao sei se é aki que posta. Se nao for... vcs me falam aonde que eu nao sei. Ainda sou novato . Intao vamos lá!!! Primeiro: Abra teu map editor. Segundo: Vá em ""File"",""Import"" e ""Import Monster(s)"" Olhe a imagem... Ai vai aparecer uma pasta, igual quando vc for abrir qualquer arquivo! Igual a esta! Bom!, proucure a pasta de seu ot... vá em (data\monsters) <-se for colocar um monster-> se for npc vá a pasta (data\npc); e proucure seu (monster/npc) que vc desejá colocar no Map Editor... E clica em "Abrir". Pronto seu (mosntro/npc) vai ta lá na lista dos monstros...(quase sempre os mosntros vai para "Others" lá nos Criaturas, os npcs sempre vao para "Npc").Mais o meu monstro foi para "Bosses", mais nao tem nada a ver. Imagem Abaixo. Tutorial 100% By: Renato Hehe sou assim "Gosto Das Coisas Nos Seus Minimos Detalhes" Espero que gostem. - - - Sou - - - Mapper - +/- 99,9% Scripter - +/- 99,9% OBS: Maus ai pelo poste anterior... pensei que nao tinha postado pq deu erro na pagina ai cliquei outra ves e posto 2x. Como deleta?
  7. O gente nao sei se é aki que posta. Se nao for... vcs me falam aonde que eu nao sei. Ainda sou novato . Intao vamos lá!!! Primeiro: Abra teu map editor. Segundo: Vá em ""File"",""Import"" e ""Import Monster(s)"" Olhe a imagem... Ai vai aparecer uma pasta, igual quando vc for abrir qualquer arquivo! Igual a esta! Bom!, proucure a pasta de seu ot... vá em (data\monsters) <-se for colocar um monster-> se for npc vá a pasta (data\npc); e proucure seu (monster/npc) que vc desejá colocar no Map Editor... E clica em "Abrir". Pronto seu (mosntro/npc) vai ta lá na lista dos monstros...(quase sempre os mosntros vai para "Others" lá nos Criaturas, os npcs sempre vao para "Npc").Mais o meu monstro foi para "Bosses", mais nao tem nada a ver. Imagem Abaixo. Tutorial 100% By: Renato Hehe sou assim "Gosto Das Coisas Nos Seus Minimos Detalhes" Espero que gostem.
  8. Ou nao é dificio nao... e facim... Hehe! Primeiro: Abra teu map editor. Segundo: Vá em ""File"",""Import"" e ""Import Monster(s)"" Olhe a imagem... Ai vai aparecer uma pasta, igual quando vc for abrir qualquer arquivo! Igual a esta! Bom!, proucure a pasta de seu ot... vá em (data\monsters) <-se for colocar um monster-> se for npc vá a pasta (data\npc); e proucure seu (monster/npc) que vc desejá colocar no Map Editor... E clica em "Abrir". Pronto seu (mosntro/npc) vai ta lá na lista dos monstros...(quase sempre os mosntros vai para "Others" lá nos Criaturas, os npcs sempre vao para "Npc").Mais o meu foi para "Bosses", mais nao tem nada a ver. Imagem Abaixo. Tutorial By: Renato Hehe sou assim "Gosto Das Coisas Nos Seus Minimos Detalhes" Espero que te ajude.
  9. Vou tentar arrumar aki .. vlws awe hehe, depois eu edito
  10. Legal vou colcar isso no meu
  11. Legal vou colocar no meu vlws awe
  12. Aew Baum? hehe Action testado em Ares 8.1. Tpw no meu ot fiz uma quest que da 1 item para cada vocação ... ai para cada vocação ir para um lugar eu fiz essas estatuas. Bom intao vamosl lá... Vou fazer a do Sorcerer.Vá em (data\actions\scripts), copie um arquivo (.lua), e renomeia-o para "sorcstatue", abra e cole o seguinte: function onUse(cid, item, frompos, item2, topos) PlayerVoc = getPlayerVocation(cid) [color="#FF8C00"]if PlayerVoc == 1 then if PlayerVoc == 5 then[/color] [color="#2E8B57"]doTeleportThing(cid,{x=485, y=24, z=7})[/color] else doPlayerSendCancel(cid,"Only Sorcerers may open this door.") return 1 end end Explicando... A onde está laranja é a vocação que poderá ser teleportada... Lembrando que (0-None;1-Sorc,2-Druid;3-Paly;4-Kina;5-MS;6-ED;7-RP;8-EK) A onde está verde é o local que quando o player clicar vai se teleportado!!! Pronto!!! Agora vai em (data\actions) abra a pasta "actions.xml" e cole isto: <action uniqueid="3560" script="sorcstatue.lua" /> *Troque o unique se vc preferir* Abra teu map editor, faça seu desenho ai, e na estatua que o player clicar vc coloca no UniqueId vc coloca "3560". Lembrando se vc tiver trocado o UniqueId no "actions.xml", coloque o que vc colocou lá no Map Editor.Certo!!! Agora vou fazer a de druid, paly, kina!!! *Druid* Vá em (data\actions\scripts), copie um arquivo (.lua), e renomeia-o para "druidstatue", abra e cole o seguinte: function onUse(cid, item, frompos, item2, topos) PlayerVoc = getPlayerVocation(cid) [color="#FF8C00"]if PlayerVoc == 2 then if PlayerVoc == 6 then[/color] [color="#008000"]doTeleportThing(cid,{x=463, y=18, z=7})[/color] else doPlayerSendCancel(cid,"Only Druidas may open this door.") return 1 end end Agora vai em (data\actions) abra a pasta "actions.xml" e cole isto: <action uniqueid="3561" script="druidstatue.lua" /> *Troque o unique se vc preferir* Abra teu map editor, faça seu desenho ai, e na estatua que o player clicar vc coloca no UniqueId vc coloca "3561". Lembrando se vc tiver trocado o UniqueId no "actions.xml", coloque o que vc colocou lá no Map Editor.Certo!!! *Paly* Vá em (data\actions\scripts), copie um arquivo (.lua), e renomeia-o para "palystatue", abra e cole o seguinte: function onUse(cid, item, frompos, item2, topos) PlayerVoc = getPlayerVocation(cid) [color="#FF8C00"]if PlayerVoc == 3 then if PlayerVoc == 7 then[/color] [color="#008000"]doTeleportThing(cid,{x=479, y=19, z=7})[/color] else doPlayerSendCancel(cid,"Only Palys may open this door.") return 1 end end Agora vai em (data\actions) abra a pasta "actions.xml" e cole isto: <action uniqueid="3562" script="palystatue.lua" /> *Troque o unique se vc preferir* Abra teu map editor, faça seu desenho ai, e na estatua que o player clicar vc coloca no UniqueId vc coloca "3562". Lembrando se vc tiver trocado o UniqueId no "actions.xml", coloque o que vc colocou lá no Map Editor.Certo!!! *Kina* Vá em (data\actions\scripts), copie um arquivo (.lua), e renomeia-o para "kinastatue", abra e cole o seguinte: function onUse(cid, item, frompos, item2, topos) PlayerVoc = getPlayerVocation(cid) [color="#FF8C00"]if PlayerVoc == 4 then if PlayerVoc == 8 then[/color] [color="#2E8B57"]doTeleportThing(cid,{x=467, y=23, z=7})[/color] else doPlayerSendCancel(cid,"Only Knights may open this door.") return 1 end end Agora vai em (data\actions) abra a pasta "actions.xml" e cole isto: <action uniqueid="3563" script="kinastatue.lua" /> *Troque o unique se vc preferir* Abra teu map editor, faça seu desenho ai, e na estatua que o player clicar vc coloca no UniqueId vc coloca "3563". Lembrando se vc tiver trocado o UniqueId no "actions.xml", coloque o que vc colocou lá no Map Editor.Certo!!! Creditos 100% = Renato Pdz Obs: Testei no Ares 8.1 e deu certo. Nas outras versões nao testei. renatoxd.bmp
  13. vlw aew por corrigir ^^, e que esqueci de falar q o meu é Ares 8.10 ai pensei q dava certo em todos... sry awe.
  14. tpw no meu ... eu troquei o lugar q ta assim.... "doPlayerAddAddon" antes tava "doPlayerAddOutfit" . Tenta trocar. Deve da certo. Que no meu eu troquei todos para "doPlayerAddAddon" tenta colocar no seu "doPlayerAddOutfit"
  15. RenatoPdz

    Rings

    Bora lá ^^. Primeiro va á pasta (data\npc) copie um arquivo (.xml), renomei-o para "Nisse.xml", abra-a e coloque o seguinte: <npc name="Nisse" script="data/npc/scripts/rings.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="128" head="20" body="100" legs="50" feet="99" corpse="2212"/> <parameters> <parameter key="module_shop" value="1" /> <parameter key="message_greet" value="Hello |PLAYERNAME|. I sell all types of rings!" /> <parameter key="shop_buyable" value="[color="#FF0000"]roh,2214,2000;might ring,2164,1000;life ring,2168,1500;stealth ring,2165,1000;power ring,2166,500;sword ring,2207,500;club ring,2209,500;axe ring,2208,500;dwarven ring,2213,100;time ring,2169,1000[/color]" /> </parameters> </npc> Para adicionar mais rings, e so vc acresentar o seguinte: aonde ta de vermelho sao os rings que estao a venda basta vc fazer o seguinte : n,i,p ... n= nome do ring i= ID do ring p= Ao preço do ring Se nao intendeu vou dar um exemplo: energy ring(n),2167(i), 1500(p) Depois vá em (data\npc\scripts), copie um arquivo(.lua), renomei-a para "rings.lua", abra-o e cole o seguinte: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'rings'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell rohs, might rings, life rings, stealth rings, power rings, sword rings, club rings, axe rings, dwarven rings and time rings.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) Esse ai fico meio esquisito mais ta funcionando: Credito: Renato xD.
  16. Hehe ai fiz um npc que recarrega a soft boots quando acaba. Intao Vamos lá! Primeiro vá em (data\npc). Copie uma pasta. Abra-a. e cole isto. <?xml version="1.0"?> <npc name="Tomboy" script="data/npc/scripts/soft.lua" access="3" lookdir="1" autowalk="100" speed="200"> <health now="100" max="100"/> <look type="151" head="78" body="95" legs="113" feet="114" addons="1" corpse="2212"/> <parameters/> </npc> Mude o nome se quiser. Agora vá em (data\npc\scripts). Copie uma pasta. Renomeia para "soft.lua". E cole o seguinte: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end function creatureSayCallback(cid, type, msg) -- 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. if(npcHandler.focus ~= cid) then return false end if msgcontains(msg, 'specialised') or msgcontains(msg, 'boot') then selfSay('Yes, my fathers was a great one blacksmith, it was a wise person , but when he decided to teach me he dies and i just learn about the lovely boots. So, did you bring me some boots? which one?') elseif msgcontains(msg, '[color="#FF0000"]soft boots'[/color]) or msgcontains(msg, '[color="#FF0000"]worn soft boots[/color]') or msgcontains(msg, 'soft boot') or msgcontains(msg, 'worn soft boot') then selfSay('Did u like that i fix ur worn soft boots? it will cost 100 platinum coins') talk_state = 1 elseif msgcontains(msg, 'yes') and talk_state == 1 then if getPlayerItemCount(cid,6530) >= 1 and getPlayerItemCount(cid,2152) >= 1 then if doPlayerTakeItem(cid,6530,1) and doPlayerTakeItem(cid,2152,100) == 0 then selfSay('Here you are.') doPlayerAddItem(cid,2640,1) end else selfSay('Sorry, you don\'t have the item.') end elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 5) then selfSay('Ok than.') 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 npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Explicando: O que esta de vermelho e o que vc deve falar pra trocar a soft veia peloa soft nova . OBS: custa 10k. Creditos: Renato Qualquer coisa poste ai que eu corrijo. Desculpe aew. Esqueci de avisar. Esse aki deu certo mais o meu é Ares 8.1.
  17. RenatoPdz

    Npc Barco

    xD oia eu ake traves :* Vamus lá Primeiro vamos fazer o npc. vá em (data/npc) copie uma pasta e abra-a. Cole isto.. se quiser mude o nome... <?xml version="1.0"?> <npc name="Navendron" script="data/npc/scripts/barco.lua" autowalk="150" floorchange="0" access="3" lookdir="2"> <mana now="800" max="800"/> <health now="200" max="200"/> <look type="151" head="76" body="114" legs="124" feet="86" addons="3"/> *** </npc> Agora vá em (data\npc\scripts) e copie uma pasta (.lua), renomeia para "barco.lua" , abra-a e cole isto: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'[color="#FF0000"]ptc'[/color]}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para o "[color="#FF0000"]ptc[/color]" por 200 gp. Voce quer ir¿?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = 1, level = 0, cost = [color="#FF8C00"]200[/color], destination = {[color="#2E8B57"]x=428, y=257, z=6[/color]} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'}) keywordHandler:addKeyword({'[color="#9932CC"]passage[/color]'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Eu posso te levar para \'[color="#FF0000"]ptc[/color]\' por um pequeno preço.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) Agora explicando: Aonde ta vermelho e o nome da cidade... Mude com o seu gosto. Aonde ta verde e o local que o npc vai te levar ; x,y,z. Mude de acordo com seu mapa. Aonde ta laranjado e o preço que o npc vai cobrar para te levar. Mude com seu gosto tbm. Aonde ta rocho e o que o player tem que fala para saber aonde o npc pode te levar. Por exemplo o meu ai ele fala assim "Eu posso te levar para "ptc" <-( que é o que vc vai ter que falar para vc ir)". xD Depois posto mais. Creditos : Renato ;D Qualquer errinho ai me fale. Que eu arrumo. XD maus awe pelo meu Portugues
  18. Meu primeiro topico aki.... Eu estava precisando de um npc q dece os addons igual a do global... eu proucurava no forum em todo lugar todos que eu achava nao dava certo... ai resolvi fazer um proprio. ( realmente demoro muiiito) mais due certo. Primeiro. Va no data/npc Pegue um npc... e copieo. Faça de sua preferencia... Mais qualquer coisa use este. <?xml version="1.0"?> <npc name="Wizard of Sparta" script="data/npc/scripts/addon.lua" access="3"> autowalk="150" floorchange="0" access="5" lookdir="2"> <mana now="800" max="800"/> <health now="800" max="800"/> <look type="279" head="114" body="94" legs="0" feet="0" addons="3" /> <parameters> <parameter key="message_greet" value="Greetings |PLAYERNAME|. Will you help me? If you do, I'll reward you with nice addons! Just say 'addons' or 'help' if you don't know what to do." /> </parameters> *** </npc> Logo depois va em (data\npc\scripts) Quase todos os otserver tem uma pasta chamada Addon.lua, abra-a, se nao tiver, renomeia para "addon.lua" e copie um arquivo lua e cole isto ai dentro: local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then selfSay('Ola ' .. getCreatureName(cid) .. '! Eu vendo addons diga exemplo: Mage 1, Assassin 2.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! Eu falo com voce em um minuto.') -- Citizen elseif msgcontains(msg, 'citizen 1') then selfSay('Poderia trazer 100 minotaur leathers?') talk_state = 1 talk_start = os.clock() elseif talk_state == 1 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5878) >= 100 then if doPlayerRemoveItem(cid,5878,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 136, 1) doPlayerAddAddon(cid, 128, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'citizen 2') then selfSay('Poderia trazer 100 chicken feathers, 50 honeycombs and the legion helmet?') talk_state = 2 talk_start = os.clock() elseif talk_state == 2 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAdAddon(cid, 136, 2) doPlayerAddAddon(cid, 128, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Mage elseif msgcontains(msg, 'mage 1') then selfSay('Poderia trazer um Ferumbras Hat ?') talk_state = 3 talk_start = os.clock() elseif talk_state == 3 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5903) >= 1 then if doPlayerRemoveItem(cid,5903,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 130, 1) doPlayerAddAddon(cid, 138, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'mage 2') then selfSay('You are have the 1 Soul Stone, 20 Ankh, 10 Magic Sulphur, Todas RODs WANDs?') talk_state = 4 talk_start = os.clock() elseif talk_state == 4 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5809) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,6547) >= 10 and getPlayerItemCount(cid,2193) >= 20 then if doPlayerRemoveItem(cid,5809,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,6547,10) and doPlayerRemoveItem(cid,2193,20) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 130, 2) doPlayerAddAddon(cid, 138, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Hunter elseif msgcontains(msg, 'hunter 1') then selfSay('Poderia trazer the engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel?') talk_state = 5 talk_start = os.clock() elseif talk_state == 5 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5947) >= 1 and getPlayerItemCount(cid,5876) >= 100 and getPlayerItemCount(cid,5948) >= 100 and getPlayerItemCount(cid,5891) >= 5 and getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5888) >= 1 and getPlayerItemCount(cid,5889) then if doPlayerRemoveItem(cid,5947,1) and doPlayerRemoveItem(cid,5876,100) and doPlayerRemoveItem(cid,5948,100) and doPlayerRemoveItem(cid,5891,5) and doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5888,1) and doPlayerRemoveItem(cid,5889,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 129, 1) doPlayerAddAddon(cid, 137, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'hunter 2') then selfSay('You are have the Sniper Gloves needs for addon?') talk_state = 6 talk_start = os.clock() elseif talk_state == 6 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5875) >= 1 then if doPlayerRemoveItem(cid,5875,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 129, 2) doPlayerAddAddon(cid, 137, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Knight elseif msgcontains(msg, 'knight 1') then selfSay('Poderia trazer the chunk of crude iron and 100 iron ores?') talk_state = 7 talk_start = os.clock() elseif talk_state == 7 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 131, 1) doPlayerAddAddon(cid, 139, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'knight 2') then selfSay('Poderia trazer 100 behemoth fangs, the damaged steel helmet, warrior\'s sweat, and royal steel?') talk_state = 8 talk_start = os.clock() elseif talk_state == 8 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then if doPlayerRemoveItem(cid,5893,100) and doPlayerRemoveItem(cid,5924,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5887,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 131, 2) doPlayerAddAddon(cid, 139, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Wizard elseif msgcontains(msg, 'wizard 1') then selfSay('Poderia trazer medusa shield, a dragon scale mail, a ring of the sky and crown legs?') talk_state = 9 talk_start = os.clock() elseif talk_state == 9 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2536) >= 1 then if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2536,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 145, 1) doPlayerAddAddon(cid, 149, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'wizard 2') then selfSay('Poderia trazer 50 holy orchids?') talk_state = 10 talk_start = os.clock() elseif talk_state == 10 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5922) >= 50 then if doPlayerRemoveItem(cid,5922,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 145, 2) doPlayerAddAddon(cid, 149, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Warrior elseif msgcontains(msg, 'warrior 1') then selfSay('Poderia trazer 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw?') talk_state = 11 talk_start = os.clock() elseif talk_state == 11 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5919) >= 1 then if doPlayerRemoveItem(cid,5919,1) and doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 134, 1) doPlayerAddAddon(cid, 142, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'warrior 2') then selfSay('Poderia trazer 100 iron ores and royal steel?') talk_state = 12 talk_start = os.clock() elseif talk_state == 12 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5887) >= 1 then if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5887,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 134, 2) doPlayerAddAddon(cid, 142, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Summoner elseif msgcontains(msg, 'summoner 1') then selfSay('Poderia trazer um bilhete de loteria premiado ?') talk_state = 13 talk_start = os.clock() elseif talk_state == 13 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5958) >= 1 then if doPlayerRemoveItem(cid,5958,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 133, 1) doPlayerAddAddon(cid, 141, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'summoner 2') then selfSay('Poderia trazer 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts?') talk_state = 14 talk_start = os.clock() elseif talk_state == 14 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 133, 2) doPlayerAddAddon(cid, 141, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Oriental elseif msgcontains(msg, 'oriental 1') then selfSay('Poderia trazer um mermaid comb?') talk_state = 15 talk_start = os.clock() elseif talk_state == 15 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5945) >= 1 then if doPlayerRemoveItem(cid,5945,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 146, 1) doPlayerAddAddon(cid, 150, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'oriental 2') then selfSay('Poderia trazer 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth?') talk_state = 16 talk_start = os.clock() elseif talk_state == 16 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveItem(cid,5895,100) and doPlayerRemoveItem(cid,5891,2) and doPlayerRemoveItem(cid,5912,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 146, 2) doPlayerAddAddon(cid, 150, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Druid elseif msgcontains(msg, 'druid 1') then selfSay('Poderia trazer 50 wolf paws and 50 bear paws?') talk_state = 17 talk_start = os.clock() elseif talk_state == 17 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 144, 1) doPlayerAddAddon(cid, 148, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'druid 2') then selfSay('You are have the 100 Demon Dust needs for addon?') talk_state = 18 talk_start = os.clock() elseif talk_state == 18 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5906) >= 100 then if doPlayerRemoveItem(cid,5906,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 144, 2) doPlayerAddAddon(cid, 148, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Barbarian elseif msgcontains(msg, 'barbarian 1') then selfSay('Poderia trazer o fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns?') talk_state = 19 talk_start = os.clock() elseif talk_state == 19 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5886) >= 10 then if doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5886,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 143, 1) doPlayerAddAddon(cid, 147, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'barbarian 2') then selfSay('Poderia trazer 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers?') talk_state = 20 talk_start = os.clock() elseif talk_state == 20 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5876) >= 50 then if doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5876,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 143, 2) doPlayerAddAddon(cid, 147, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Nobleman elseif msgcontains(msg, 'nobleman 1') then selfSay('You are have the 150k needs for addon?') talk_state = 21 talk_start = os.clock() elseif talk_state == 21 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 15 then if doPlayerRemoveItem(cid,2160,15) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 132, 1) doPlayerAddAddon(cid, 140, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'nobleman 2') then selfSay('You are have the 150k needs for addon?') talk_state = 22 talk_start = os.clock() elseif talk_state == 22 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 15 then if doPlayerRemoveItem(cid,2160,15) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 132, 2) doPlayerAddAddon(cid, 140, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Assassin elseif msgcontains(msg, 'assassin 1') then selfSay('Poderia trazer 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat?') talk_state = 23 talk_start = os.clock() elseif talk_state == 23 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5898) >= 30 and getPlayerItemCount(cid,5882) >= 10 and getPlayerItemCount(cid,5881) >= 30 and getPlayerItemCount(cid,5895) >= 20 and getPlayerItemCount(cid,5905) >= 20 and getPlayerItemCount(cid,5906) >= 10 and getPlayerItemCount(cid,5885) >= 1 then if doPlayerRemoveItem(cid,5898,30) and doPlayerRemoveItem(cid,5882,10) and doPlayerRemoveItem(cid,5881,30) and doPlayerRemoveItem(cid,5895,20) and doPlayerRemoveItem(cid,5905,20) and doPlayerRemoveItem(cid,5906,10) and doPlayerRemoveItem(cid,5885,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 152, 1) doPlayerAddAddon(cid, 156, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'assassin 2') then selfSay('Poderia trazer 50 blue piece of cloth, 50 green piece of cloth, 50 red piece of cloth, 50 brown piece of cloth, 50 yellow piece of cloth, 50 white piece of cloth and 10 spider silk yarns?') talk_state = 24 talk_start = os.clock() elseif talk_state == 24 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5909) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5912) >= 50 and getPlayerItemCount(cid,5913) >= 50 and getPlayerItemCount(cid,5914) >= 50 and getPlayerItemCount(cid,5886) >= 10 then if doPlayerRemoveItem(cid,5909,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5912,50) and doPlayerRemoveItem(cid,5913,50) and doPlayerRemoveItem(cid,5914,50) and doPlayerRemoveItem(cid,5886,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 152, 2) doPlayerAddAddon(cid, 156, 2) end else selfSay('Descupe, voce nao tem os items!') end --Beggar elseif msgcontains(msg, 'beggar 1') then selfSay('Poderia trazer 100 ape furs and 20000 gold coins?') talk_state = 25 talk_start = os.clock() elseif talk_state == 25 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 20 and getPlayerItemCount(cid,5883) >= 100 then if doPlayerRemoveItem(cid,2160,20) and doPlayerRemoveItem(cid,5883,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 153, 1) doPlayerAddAddon(cid, 157, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'beggar 2') then selfSay('Poderia trazer Simon\'s favourite staff?') talk_state = 26 talk_start = os.clock() elseif talk_state == 26 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6107) >= 1 then if doPlayerRemoveItem(cid,6107,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 153, 2) doPlayerAddAddon(cid, 157, 2) end else selfSay('Descupe, voce nao tem os items!') end --Norseman elseif msgcontains(msg, 'norseman 1') then selfSay('Poderia trazer 5 Shards?') talk_state = 27 talk_start = os.clock() elseif talk_state == 27 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,7290) >= 5 then if doPlayerRemoveItem(cid,7290,5) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 251, 1) doPlayerAddAddon(cid, 252, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'norseman 2') then selfSay('Poderia trazer 10 Shards?') talk_state = 28 talk_start = os.clock() elseif talk_state == 28 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,7290) >= 10 then if doPlayerRemoveItem(cid,7290,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 251, 2) doPlayerAddAddon(cid, 252, 2) end else selfSay('Descupe, voce nao tem os items!') end --Pirate elseif msgcontains(msg, 'pirate 1') then selfSay('Poderia trazer 100 eye patches, 100 peg legs and 100 hooks?') talk_state = 29 talk_start = os.clock() elseif talk_state == 29 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then if doPlayerRemoveItem(cid,6126,100) and doPlayerRemoveItem(cid,6097,100) and doPlayerRemoveItem(cid,6098,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 151, 1) doPlayerAddAddon(cid, 155, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'pirate 2') then selfSay('Poderia trazer Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat?') talk_state = 30 talk_start = os.clock() elseif talk_state == 30 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 151, 2) doPlayerAddAddon(cid, 155, 2) end else selfSay('Descupe, voce nao tem os items!') end --Shaman elseif msgcontains(msg, 'shaman 1') then selfSay('Eu preciso 10 vampire dust') talk_state = 31 talk_start = os.clock() elseif talk_state == 31 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5905) >= 10 then if doPlayerRemoveItem(cid,5905,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 154, 1) doPlayerAddAddon(cid, 158, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'shaman 2') then selfSay('Eu preciso 30 vampire dust') talk_state = 32 talk_start = os.clock() elseif talk_state == 32 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5905) >= 30 then if doPlayerRemoveItem(cid,5905,30) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 154, 2) doPlayerAddAddon(cid, 158, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Nightmare elseif msgcontains(msg, 'nightmare 1') then selfSay('Poderia trazer 100 Demonic essences?') talk_state = 33 talk_start = os.clock() elseif talk_state == 33 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 100 then if doPlayerRemoveItem(cid,6500,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 268, 1) doPlayerAddAddon(cid, 269, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'nightmare 2') then selfSay('Poderia trazer 200 Demonic essences?') talk_state = 34 talk_start = os.clock() elseif talk_state == 34 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 200 then if doPlayerRemoveItem(cid,6500,200) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 268, 2) doPlayerAddAddon(cid, 269, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Brotherwood elseif msgcontains(msg, 'brotherwood 1') then selfSay('Poderia trazer 100 Demonic essences?') talk_state = 35 talk_start = os.clock() elseif talk_state == 35 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 100 then if doPlayerRemoveItem(cid,6500,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 278, 1) doPlayerAddAddon(cid, 279, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'brotherwood 2') then selfSay('Poderia trazer 200 Demonic essences?') talk_state = 36 talk_start = os.clock() elseif talk_state == 36 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 200 then if doPlayerRemoveItem(cid,6500,200) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 278, 2) doPlayerAddAddon(cid, 279, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Jesker elseif msgcontains(msg, 'jester 1') then selfSay('Poderia trazer 1 red piece of cloth, 1 blue piece of cloth, 1 yellow piece of cloth, 1 green piece of cloth, 5 white piece of cloth, 1 giant spider silk and 4 minotaur leather?') talk_state = 37 talk_start = os.clock() elseif talk_state == 37 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5911) >= 1 and getPlayerItemCount(cid,5912) >= 1 and getPlayerItemCount(cid,5914) >= 1 and getPlayerItemCount(cid,5910) >= 1 and getPlayerItemCount(cid,5909) >= 5 and getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then if doPlayerRemoveItem(cid,5911,1) and doPlayerRemoveItem(cid,5912,1) and doPlayerRemoveItem(cid,2160,1) and doPlayerRemoveItem(cid,5910,1) and doPlayerRemoveItem(cid,5909,5) and doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 273, 1) doPlayerAddAddon(cid, 270, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'jester 2') then selfSay('Poderia trazer 10 red piece of cloth, 10 blue piece of cloth, 10 yellow piece of cloth, 10 green piece of cloth, 25 white piece of cloth, 10 giant spider silk and 40 minotaur leather?') talk_state = 38 talk_start = os.clock() elseif talk_state == 38 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5911) >= 10 and getPlayerItemCount(cid,5912) >= 10 and getPlayerItemCount(cid,5914) >= 10 and getPlayerItemCount(cid,5910) >= 10 and getPlayerItemCount(cid,5909) >= 25 and getPlayerItemCount(cid,5879) >= 10 and getPlayerItemCount(cid,5878) >= 40 then if doPlayerRemoveItem(cid,5911,10) and doPlayerRemoveItem(cid,5912,10) and doPlayerRemoveItem(cid,5914,10) and doPlayerRemoveItem(cid,5910,10) and doPlayerRemoveItem(cid,5909,25) and doPlayerRemoveItem(cid,5879,10) and doPlayerRemoveItem(cid,5878,40) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 273, 2) doPlayerAddAddon(cid, 270, 2) end else selfSay('Descupe, voce nao tem os items!') end [color="#FF00FF"]-- Demonhunter elseif msgcontains(msg, 'demonhunter 1') then selfSay('Poderia trazer 15 magic sulphur, 15 blue piece of cloth, 15 yellow piece of cloth, 15 green piece of cloth, 15 white piece of cloth, 15 red piece of cloth, 15 spider silk yarns, 15 fish fins, 15 demon dust, 15 vampire dust ?') talk_state = 38 talk_start = os.clock() elseif talk_state == 38 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6547) >= 15 and getPlayerItemCount(cid,5912) >= 10 and getPlayerItemCount(cid,5914) >= 15 and getPlayerItemCount(cid,5910) >= 15 and getPlayerItemCount(cid,5886) >= 15 and getPlayerItemCount(cid,5909) >= 15 and getPlayerItemCount(cid,5911) >= 15 and getPlayerItemCount(cid,5895) >= 15 and getPlayerItemCount(cid,5906) >= 15 and getPlayerItemCount(cid,5905) >= 15 then if doPlayerRemoveItem(cid,6547,15) and doPlayerRemoveItem(cid,5912,15) and doPlayerRemoveItem(cid,5914,15) and doPlayerRemoveItem(cid,5910,15) and doPlayerRemoveItem(cid,5886,15) and doPlayerRemoveItem(cid,5909,15) and doPlayerRemoveItem(cid,5911,15) and doPlayerRemoveItem(cid,5895,15) and doPlayerRemoveItem(cid,5906,15) and doPlayerRemoveItem(cid,5905,15) then selfSay('Parabens! Voce conseguiu o Demon Hunter 1') doPlayerAddAddon(cid, 288, 1) doPlayerAddAddon(cid, 289, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'demonhunter 2') then selfSay('Poderia trazer 15 magic sulphur, 15 blue piece of cloth, 15 yellow piece of cloth, 15 green piece of cloth, 15 white piece of cloth, 15 red piece of cloth, 15 spider silk yarns, 15 fish fins, 15 demon dust, 15 vampire dust ?') talk_state = 38 talk_start = os.clock() elseif talk_state == 39 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6547) >= 20 and getPlayerItemCount(cid,5912) >= 20 and getPlayerItemCount(cid,5914) >= 20 and getPlayerItemCount(cid,5910) >= 20 and getPlayerItemCount(cid,5886) >= 20 and getPlayerItemCount(cid,5909) >= 20 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5895) >= 20 and getPlayerItemCount(cid,5906) >= 20 and getPlayerItemCount(cid,5905) >= 20 then if doPlayerRemoveItem(cid,6547,20) and doPlayerRemoveItem(cid,5912,20) and doPlayerRemoveItem(cid,5914,20) and doPlayerRemoveItem(cid,5910,20) and doPlayerRemoveItem(cid,5886,20) and doPlayerRemoveItem(cid,5909,20) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5895,20) and doPlayerRemoveItem(cid,5906,20) and doPlayerRemoveItem(cid,5905,20) then selfSay('Parabens! Voce conseguiu o Demon Hunter 2') doPlayerAddAddon(cid, 288, 2) doPlayerAddAddon(cid, 289, 2) end else selfSay('Descupe, voce nao tem os items!') end [/color] elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Bye ' .. getCreatureName(cid) .. ', Come back.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'kashfeioyorgheklçguyio') then selfSay('What?') talk_state = 0 end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end O script ai em cima foi testado no Ares 8.10 e deu certo. Para as pessoas que tentarem e nao conseguirem cola este daki de baixo! OBS : Se seu cliente for Menor que 8.30 vc retira a parte do DemonHunter local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and focus == 0) and getDistanceToCreature(cid) < 4 then selfSay('Ola ' .. getCreatureName(cid) .. '! Eu vendo addons diga exemplo: Mage 1, Assassin 2.') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! Eu falo com voce em um minuto.') -- Citizen elseif msgcontains(msg, 'citizen 1') then selfSay('Poderia trazer 100 minotaur leathers?') talk_state = 1 talk_start = os.clock() elseif talk_state == 1 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5878) >= 100 then if doPlayerRemoveItem(cid,5878,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 136, 1) doPlayerAddOutfit(cid, 128, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'citizen 2') then selfSay('Poderia trazer 100 chicken feathers, 50 honeycombs and the legion helmet?') talk_state = 2 talk_start = os.clock() elseif talk_state == 2 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5890) >= 100 and getPlayerItemCount(cid,5902) >= 50 and getPlayerItemCount(cid,2480) >= 1 then if doPlayerRemoveItem(cid,5890,100) and doPlayerRemoveItem(cid,5902,50) and doPlayerRemoveItem(cid,2480,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 136, 2) doPlayerAddOutfit(cid, 128, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Mage elseif msgcontains(msg, 'mage 1') then selfSay('Poderia trazer um Ferumbras Hat ?') talk_state = 3 talk_start = os.clock() elseif talk_state == 3 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5903) >= 1 then if doPlayerRemoveItem(cid,5903,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 130, 1) doPlayerAddOutfit(cid, 138, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'mage 2') then selfSay('You are have the 1 Soul Stone, 20 Ankh, 10 Magic Sulphur, Todas RODs WANDs?') talk_state = 4 talk_start = os.clock() elseif talk_state == 4 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5809) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,6547) >= 10 and getPlayerItemCount(cid,2193) >= 20 then if doPlayerRemoveItem(cid,5809,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,6547,10) and doPlayerRemoveItem(cid,2193,20) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 130, 2) doPlayerAddOutfit(cid, 138, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Hunter elseif msgcontains(msg, 'hunter 1') then selfSay('Poderia trazer the engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel?') talk_state = 5 talk_start = os.clock() elseif talk_state == 5 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5947) >= 1 and getPlayerItemCount(cid,5876) >= 100 and getPlayerItemCount(cid,5948) >= 100 and getPlayerItemCount(cid,5891) >= 5 and getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5888) >= 1 and getPlayerItemCount(cid,5889) then if doPlayerRemoveItem(cid,5947,1) and doPlayerRemoveItem(cid,5876,100) and doPlayerRemoveItem(cid,5948,100) and doPlayerRemoveItem(cid,5891,5) and doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5888,1) and doPlayerRemoveItem(cid,5889,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 129, 1) doPlayerAddOutfit(cid, 137, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'hunter 2') then selfSay('You are have the Sniper Gloves needs for addon?') talk_state = 6 talk_start = os.clock() elseif talk_state == 6 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5875) >= 1 then if doPlayerRemoveItem(cid,5875,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 129, 2) doPlayerAddOutfit(cid, 137, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Knight elseif msgcontains(msg, 'knight 1') then selfSay('Poderia trazer the chunk of crude iron and 100 iron ores?') talk_state = 7 talk_start = os.clock() elseif talk_state == 7 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 131, 1) doPlayerAddOutfit(cid, 139, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'knight 2') then selfSay('Poderia trazer 100 behemoth fangs, the damaged steel helmet, warrior\'s sweat, and royal steel?') talk_state = 8 talk_start = os.clock() elseif talk_state == 8 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5893) >= 100 and getPlayerItemCount(cid,5924) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5887) >= 1 then if doPlayerRemoveItem(cid,5893,100) and doPlayerRemoveItem(cid,5924,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5887,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 131, 2) doPlayerAddOutfit(cid, 139, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Wizard elseif msgcontains(msg, 'wizard 1') then selfSay('Poderia trazer medusa shield, a dragon scale mail, a ring of the sky and crown legs?') talk_state = 9 talk_start = os.clock() elseif talk_state == 9 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2536) >= 1 then if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2536,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 145, 1) doPlayerAddOutfit(cid, 149, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'wizard 2') then selfSay('Poderia trazer 50 holy orchids?') talk_state = 10 talk_start = os.clock() elseif talk_state == 10 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5922) >= 50 then if doPlayerRemoveItem(cid,5922,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 145, 2) doPlayerAddOutfit(cid, 149, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Warrior elseif msgcontains(msg, 'warrior 1') then selfSay('Poderia trazer 100 hardened bones, 100 turtle shells, fighting spirit and a dragon claw?') talk_state = 11 talk_start = os.clock() elseif talk_state == 11 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5919) >= 1 then if doPlayerRemoveItem(cid,5919,1) and doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 134, 1) doPlayerAddOutfit(cid, 142, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'warrior 2') then selfSay('Poderia trazer 100 iron ores and royal steel?') talk_state = 12 talk_start = os.clock() elseif talk_state == 12 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5887) >= 1 then if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5887,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 134, 2) doPlayerAddOutfit(cid, 142, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Summoner elseif msgcontains(msg, 'summoner 1') then selfSay('Poderia trazer um bilhete de loteria premiado ?') talk_state = 13 talk_start = os.clock() elseif talk_state == 13 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5958) >= 1 then if doPlayerRemoveItem(cid,5958,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 133, 1) doPlayerAddOutfit(cid, 141, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'summoner 2') then selfSay('Poderia trazer 70 bat wings, 20 red pieces of cloth, 40 ape fur, 35 holy orchid, 10 spools of spider silk yarn, 60 lizard scales, 40 red dragon scales, 15 magic sulphurs and 30 vampire dusts?') talk_state = 14 talk_start = os.clock() elseif talk_state == 14 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5894) >= 70 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5883) >= 40 and getPlayerItemCount(cid,5922) >= 35 and getPlayerItemCount(cid,5886) >= 10 and getPlayerItemCount(cid,5881) >= 60 and getPlayerItemCount(cid,5882) >= 40 and getPlayerItemCount(cid,5904) >= 15 and getPlayerItemCount(cid,5905) >= 30 then if doPlayerRemoveItem(cid,5894,70) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5883,40) and doPlayerRemoveItem(cid,5922,35) and doPlayerRemoveItem(cid,5886,10) and doPlayerRemoveItem(cid,5881,60) and doPlayerRemoveItem(cid,5882,40) and doPlayerRemoveItem(cid,5904,15) and doPlayerRemoveItem(cid,5905,30) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 133, 2) doPlayerAddOutfit(cid, 141, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Oriental elseif msgcontains(msg, 'oriental 1') then selfSay('Poderia trazer um mermaid comb?') talk_state = 15 talk_start = os.clock() elseif talk_state == 15 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5945) >= 1 then if doPlayerRemoveItem(cid,5945,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 146, 1) doPlayerAddOutfit(cid, 150, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'oriental 2') then selfSay('Poderia trazer 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth?') talk_state = 16 talk_start = os.clock() elseif talk_state == 16 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5883) >= 100 and getPlayerItemCount(cid,5895) >= 100 and getPlayerItemCount(cid,5891) >= 2 and getPlayerItemCount(cid,5912) >= 100 then if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveItem(cid,5895,100) and doPlayerRemoveItem(cid,5891,2) and doPlayerRemoveItem(cid,5912,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 146, 2) doPlayerAddOutfit(cid, 150, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Druid elseif msgcontains(msg, 'druid 1') then selfSay('Poderia trazer 50 wolf paws and 50 bear paws?') talk_state = 17 talk_start = os.clock() elseif talk_state == 17 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 144, 1) doPlayerAddOutfit(cid, 148, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'druid 2') then selfSay('You are have the 100 Demon Dust needs for addon?') talk_state = 18 talk_start = os.clock() elseif talk_state == 18 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5906) >= 100 then if doPlayerRemoveItem(cid,5906,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 144, 2) doPlayerAddOutfit(cid, 148, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Barbarian elseif msgcontains(msg, 'barbarian 1') then selfSay('Poderia trazer o fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns?') talk_state = 19 talk_start = os.clock() elseif talk_state == 19 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5885) >= 1 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5886) >= 10 then if doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5885,1) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5886,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 143, 1) doPlayerAddOutfit(cid, 147, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'barbarian 2') then selfSay('Poderia trazer 100 iron ore, 1 chunk of crude iron, 50 behemoth fangs and 50 lizard leathers?') talk_state = 20 talk_start = os.clock() elseif talk_state == 20 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5876) >= 50 then if doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5876,50) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 143, 2) doPlayerAddOutfit(cid, 147, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Nobleman elseif msgcontains(msg, 'nobleman 1') then selfSay('You are have the 150k needs for addon?') talk_state = 21 talk_start = os.clock() elseif talk_state == 21 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 15 then if doPlayerRemoveItem(cid,2160,15) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 132, 1) doPlayerAddOutfit(cid, 140, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'nobleman 2') then selfSay('You are have the 150k needs for addon?') talk_state = 22 talk_start = os.clock() elseif talk_state == 22 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 15 then if doPlayerRemoveItem(cid,2160,15) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 132, 2) doPlayerAddOutfit(cid, 140, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Assassin elseif msgcontains(msg, 'assassin 1') then selfSay('Poderia trazer 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat?') talk_state = 23 talk_start = os.clock() elseif talk_state == 23 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5898) >= 30 and getPlayerItemCount(cid,5882) >= 10 and getPlayerItemCount(cid,5881) >= 30 and getPlayerItemCount(cid,5895) >= 20 and getPlayerItemCount(cid,5905) >= 20 and getPlayerItemCount(cid,5906) >= 10 and getPlayerItemCount(cid,5885) >= 1 then if doPlayerRemoveItem(cid,5898,30) and doPlayerRemoveItem(cid,5882,10) and doPlayerRemoveItem(cid,5881,30) and doPlayerRemoveItem(cid,5895,20) and doPlayerRemoveItem(cid,5905,20) and doPlayerRemoveItem(cid,5906,10) and doPlayerRemoveItem(cid,5885,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 152, 1) doPlayerAddOutfit(cid, 156, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'assassin 2') then selfSay('Poderia trazer 50 blue piece of cloth, 50 green piece of cloth, 50 red piece of cloth, 50 brown piece of cloth, 50 yellow piece of cloth, 50 white piece of cloth and 10 spider silk yarns?') talk_state = 24 talk_start = os.clock() elseif talk_state == 24 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5909) >= 50 and getPlayerItemCount(cid,5910) >= 50 and getPlayerItemCount(cid,5911) >= 50 and getPlayerItemCount(cid,5912) >= 50 and getPlayerItemCount(cid,5913) >= 50 and getPlayerItemCount(cid,5914) >= 50 and getPlayerItemCount(cid,5886) >= 10 then if doPlayerRemoveItem(cid,5909,50) and doPlayerRemoveItem(cid,5910,50) and doPlayerRemoveItem(cid,5911,50) and doPlayerRemoveItem(cid,5912,50) and doPlayerRemoveItem(cid,5913,50) and doPlayerRemoveItem(cid,5914,50) and doPlayerRemoveItem(cid,5886,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 152, 2) doPlayerAddOutfit(cid, 156, 2) end else selfSay('Descupe, voce nao tem os items!') end --Beggar elseif msgcontains(msg, 'beggar 1') then selfSay('Poderia trazer 100 ape furs and 20000 gold coins?') talk_state = 25 talk_start = os.clock() elseif talk_state == 25 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2160) >= 20 and getPlayerItemCount(cid,5883) >= 100 then if doPlayerRemoveItem(cid,2160,20) and doPlayerRemoveItem(cid,5883,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddAddon(cid, 153, 1) doPlayerAddAddon(cid, 157, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'beggar 2') then selfSay('Poderia trazer Simon\'s favourite staff?') talk_state = 26 talk_start = os.clock() elseif talk_state == 26 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6107) >= 1 then if doPlayerRemoveItem(cid,6107,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 153, 2) doPlayerAddOutfit(cid, 157, 2) end else selfSay('Descupe, voce nao tem os items!') end --Norseman elseif msgcontains(msg, 'norseman 1') then selfSay('Poderia trazer 5 Shards?') talk_state = 27 talk_start = os.clock() elseif talk_state == 27 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,7290) >= 5 then if doPlayerRemoveItem(cid,7290,5) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 251, 1) doPlayerAddOutfit(cid, 252, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'norseman 2') then selfSay('Poderia trazer 10 Shards?') talk_state = 28 talk_start = os.clock() elseif talk_state == 28 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,7290) >= 10 then if doPlayerRemoveItem(cid,7290,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 251, 2) doPlayerAddOutfit(cid, 252, 2) end else selfSay('Descupe, voce nao tem os items!') end --Pirate elseif msgcontains(msg, 'pirate 1') then selfSay('Poderia trazer 100 eye patches, 100 peg legs and 100 hooks?') talk_state = 29 talk_start = os.clock() elseif talk_state == 29 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6126) >= 100 and getPlayerItemCount(cid,6097) >= 100 and getPlayerItemCount(cid,6098) >= 100 then if doPlayerRemoveItem(cid,6126,100) and doPlayerRemoveItem(cid,6097,100) and doPlayerRemoveItem(cid,6098,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 151, 1) doPlayerAddOutfit(cid, 155, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'pirate 2') then selfSay('Poderia trazer Ron the Ripper\'s sabre, Deadeye Devious\' eye patch, Lethal Lissy\'s shirt, Brutus Bloodbeard\'s hat?') talk_state = 30 talk_start = os.clock() elseif talk_state == 30 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6099) >= 1 and getPlayerItemCount(cid,6100) >= 1 and getPlayerItemCount(cid,6101) >= 1 and getPlayerItemCount(cid,6102) >= 1 then if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 151, 2) doPlayerAddOutfit(cid, 155, 2) end else selfSay('Descupe, voce nao tem os items!') end --Shaman elseif msgcontains(msg, 'shaman 1') then selfSay('Eu preciso 10 vampire dust') talk_state = 31 talk_start = os.clock() elseif talk_state == 31 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5905) >= 10 then if doPlayerRemoveItem(cid,5905,10) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 154, 1) doPlayerAddOutfit(cid, 158, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'shaman 2') then selfSay('Eu preciso 30 vampire dust') talk_state = 32 talk_start = os.clock() elseif talk_state == 32 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5905) >= 30 then if doPlayerRemoveItem(cid,5905,30) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 154, 2) doPlayerAddOutfit(cid, 158, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Nightmare elseif msgcontains(msg, 'nightmare 1') then selfSay('Poderia trazer 100 Demonic essences?') talk_state = 33 talk_start = os.clock() elseif talk_state == 33 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 100 then if doPlayerRemoveItem(cid,6500,100) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 268, 1) doPlayerAddOutfit(cid, 269, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'nightmare 2') then selfSay('Poderia trazer 200 Demonic essences?') talk_state = 34 talk_start = os.clock() elseif talk_state == 34 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 200 then if doPlayerRemoveItem(cid,6500,200) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 268, 2) doPlayerAddOutfit(cid, 269, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Brotherwood elseif msgcontains(msg, 'brotherwood 1') then selfSay('Poderia trazer 500 Demonic essences?') talk_state = 35 talk_start = os.clock() elseif talk_state == 35 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 500 then if doPlayerRemoveItem(cid,6500,500) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 278, 1) doPlayerAddOutfit(cid, 279, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'brotherwood 2') then selfSay('Poderia trazer 1500 Demonic essences?') talk_state = 36 talk_start = os.clock() elseif talk_state == 36 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6500) >= 1500 then if doPlayerRemoveItem(cid,6500,1500) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 278, 2) doPlayerAddOutfit(cid, 279, 2) end else selfSay('Descupe, voce nao tem os items!') end -- Jester elseif msgcontains(msg, 'jester 1') then selfSay('Poderia trazer 1 red piece of cloth, 1 blue piece of cloth, 1 yellow piece of cloth, 1 green piece of cloth, 5 white piece of cloth, 1 giant spider silk and 4 minotaur leather?') talk_state = 37 talk_start = os.clock() elseif talk_state == 37 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5911) >= 1 and getPlayerItemCount(cid,5912) >= 1 and getPlayerItemCount(cid,5914) >= 1 and getPlayerItemCount(cid,5910) >= 1 and getPlayerItemCount(cid,5909) >= 5 and getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then if doPlayerRemoveItem(cid,5911,1) and doPlayerRemoveItem(cid,5912,1) and doPlayerRemoveItem(cid,2160,1) and doPlayerRemoveItem(cid,5910,1) and doPlayerRemoveItem(cid,5909,5) and doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 273, 1) doPlayerAddOutfit(cid, 270, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'jester 2') then selfSay('Poderia trazer 10 red piece of cloth, 10 blue piece of cloth, 10 yellow piece of cloth, 10 green piece of cloth, 25 white piece of cloth, 10 giant spider silk and 40 minotaur leather?') talk_state = 38 talk_start = os.clock() elseif talk_state == 38 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,5911) >= 10 and getPlayerItemCount(cid,5912) >= 10 and getPlayerItemCount(cid,5914) >= 10 and getPlayerItemCount(cid,5910) >= 10 and getPlayerItemCount(cid,5909) >= 25 and getPlayerItemCount(cid,5879) >= 10 and getPlayerItemCount(cid,5878) >= 40 then if doPlayerRemoveItem(cid,5911,10) and doPlayerRemoveItem(cid,5912,10) and doPlayerRemoveItem(cid,5914,10) and doPlayerRemoveItem(cid,5910,10) and doPlayerRemoveItem(cid,5909,25) and doPlayerRemoveItem(cid,5879,10) and doPlayerRemoveItem(cid,5878,40) then selfSay('Congrations! You have acquired a new addon!') doPlayerAddOutfit(cid, 273, 2) doPlayerAddOutfit(cid, 270, 2) end else selfSay('Descupe, voce nao tem os items!') end [color="#FF00FF"]-- Demonhunter elseif msgcontains(msg, 'demonhunter 1') then selfSay('Poderia trazer 15 magic sulphur, 15 blue piece of cloth, 15 yellow piece of cloth, 15 green piece of cloth, 15 white piece of cloth, 15 red piece of cloth, 15 spider silk yarns, 15 fish fins, 15 demon dust, 15 vampire dust ?') talk_state = 38 talk_start = os.clock() elseif talk_state == 38 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6547) >= 15 and getPlayerItemCount(cid,5912) >= 10 and getPlayerItemCount(cid,5914) >= 15 and getPlayerItemCount(cid,5910) >= 15 and getPlayerItemCount(cid,5886) >= 15 and getPlayerItemCount(cid,5909) >= 15 and getPlayerItemCount(cid,5911) >= 15 and getPlayerItemCount(cid,5895) >= 15 and getPlayerItemCount(cid,5906) >= 15 and getPlayerItemCount(cid,5905) >= 15 then if doPlayerRemoveItem(cid,6547,15) and doPlayerRemoveItem(cid,5912,15) and doPlayerRemoveItem(cid,5914,15) and doPlayerRemoveItem(cid,5910,15) and doPlayerRemoveItem(cid,5886,15) and doPlayerRemoveItem(cid,5909,15) and doPlayerRemoveItem(cid,5911,15) and doPlayerRemoveItem(cid,5895,15) and doPlayerRemoveItem(cid,5906,15) and doPlayerRemoveItem(cid,5905,15) then selfSay('Parabens! Voce conseguiu o Demon Hunter 1') doPlayerAddOutfit(cid, 288, 1) doPlayerAddOutfit(cid, 289, 1) end else selfSay('Descupe, voce nao tem os items!') end elseif msgcontains(msg, 'demonhunter 2') then selfSay('Poderia trazer 15 magic sulphur, 15 blue piece of cloth, 15 yellow piece of cloth, 15 green piece of cloth, 15 white piece of cloth, 15 red piece of cloth, 15 spider silk yarns, 15 fish fins, 15 demon dust, 15 vampire dust ?') talk_state = 38 talk_start = os.clock() elseif talk_state == 39 and msgcontains(msg, 'yes') then if getPlayerItemCount(cid,6547) >= 20 and getPlayerItemCount(cid,5912) >= 20 and getPlayerItemCount(cid,5914) >= 20 and getPlayerItemCount(cid,5910) >= 20 and getPlayerItemCount(cid,5886) >= 20 and getPlayerItemCount(cid,5909) >= 20 and getPlayerItemCount(cid,5911) >= 20 and getPlayerItemCount(cid,5895) >= 20 and getPlayerItemCount(cid,5906) >= 20 and getPlayerItemCount(cid,5905) >= 20 then if doPlayerRemoveItem(cid,6547,20) and doPlayerRemoveItem(cid,5912,20) and doPlayerRemoveItem(cid,5914,20) and doPlayerRemoveItem(cid,5910,20) and doPlayerRemoveItem(cid,5886,20) and doPlayerRemoveItem(cid,5909,20) and doPlayerRemoveItem(cid,5911,20) and doPlayerRemoveItem(cid,5895,20) and doPlayerRemoveItem(cid,5906,20) and doPlayerRemoveItem(cid,5905,20) then selfSay('Parabens! Voce conseguiu o Demon Hunter 2') doPlayerAddOutfit(cid, 288, 2) doPlayerAddOutfit(cid, 289, 2) end else selfSay('Descupe, voce nao tem os items!') end[/color] elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then selfSay('Bye ' .. getCreatureName(cid) .. ', Come back.') focus = 0 talk_start = 0 elseif msgcontains(msg, 'kashfeioyorgheklçguyio') then selfSay('What?') talk_state = 0 end end function onCreatureChangeOutfit(creature) end function onThink() doNpcSetCreatureFocus(focus) if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next...') end focus = 0 talk_start = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good Bye') focus = 0 talk_start = 0 end end end O lugar que esta de Rosa e o addon que eu adicionei que estava faltando que era o Demon Hunter. Obs: Quase todos os otserver nao dava para fazer o "Summoner Female" nesse da pede as msm coisas que o Male mais ta funfando... Tomei a liberdade de Traduzir um pouco para "br". hehe Creditos: Renato Qualquer coisa comenta ai. Espero que gostem. Pois demorei para fazer xD .
  • Quem Está Navegando   0 membros estão online

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