-
Total de itens
267 -
Registro em
-
Última visita
-
Dias Ganhos
1
Tudo que MarcolinoGOD postou
-
Fireworks Rocket! Criatividade Ao Extremo...
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
Obrigado a todos por comentar! Posso fazer uma pergunta!? Ninguem testou não? Porque tinha um erro ali e não ia funcionar nunca, porém ja concertei! Espero que gostem e se der eu posto um gif dela ai para vocês :smile_positivo: -
Fireworks Rocket! Criatividade Ao Extremo...
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
Acredito que todos saibam disso meu caro amigo! Essa é uma versão alternativa, ou seja, usa quem quer! E eu gostei dela porque é mais "real" Obrigado por comentar. Feliz ano novo!!! -
Fireworks Rocket! Criatividade Ao Extremo...
um tópico no fórum postou MarcolinoGOD Actions e Talkactions
Encontrei essa action na net e achei muito interessante e espero que gostem. Primeiramente os créditos vão para slawkens! Como isto funciona? Simples, você colocar um firework (Id: 6576) sobre um fire field, e automaticamente começa a contagem, e depois de 5 segundos "BOOM"... Vamos trabalhar?! actions/scripts/fireworks.lua Adicione a seguinte tag em actions/actions.xml Agora vamos para as movements: movements/script/fireworksrocket.lua Agora em movements.xml adicione a tag: Agora uma das partes mais importantes! Abra seu global.lua ou function.lua e adicione isto! (Tome muito cuidado ao editar esse arquivo e aconcelho vocês a fazer uma copia do mesmo antes de edita-lo!!!) Pronto agora só você entrar em seu ot e comemorar o ano novo em grande estilo! Atenção; para um funcionamento correto você precisa ter a função "doRemoveItemFromPos" e caso você não tenha abra seu global.lua ou function.lua e adicione o seguinte: Feliz ano novo e não esqueçam de comentar! -
[8.4] Enchant System And Rainbow Shield
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
Uia nervosinha em aeuheau function onStepIn(cid, item, pos) local ice = {x=794, y=473, z=5} local fire = {x=1202, y=754, z=15} local energy = {x=1723, y=844, z=7} local earth = {x=1202, y=829, z=7} if getPlayerLookDir(cid) == 0 then newdir = 2 elseif getPlayerLookDir(cid) == 1 then newdir = 3 elseif getPlayerLookDir(cid) == 2 then newdir = 0 else newdir = 1 end if item.actionid == 7801 then if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then doTeleportThing(cid,ice) doSendMagicEffect(ice,10) else doCreatureSay(cid,"Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1) doMoveCreature(cid, newdir) end elseif item.actionid == 7802 then if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then doTeleportThing(cid,earth) doSendMagicEffect(earth,10) else doCreatureSay(cid,"Only Premium Druids of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1) doMoveCreature(cid, newdir) end elseif item.actionid == 7803 then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then doTeleportThing(cid,fire) doSendMagicEffect(fire,10) else doCreatureSay(cid,"Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1) doMoveCreature(cid, newdir) end elseif item.actionid == 7804 then if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 and getPlayerLevel(cid) >= 30 and isPremium(cid) == TRUE then doTeleportThing(cid,energy) doSendMagicEffect(energy,10) else doCreatureSay(cid,"Only Premium Sorcerers of level 30 or higher are able to enter this portal", TALKTYPE_ORANGE_1) doMoveCreature(cid, newdir) end end end Esse foi o arquivo que você me mandou e o unico que tenho aqui que esta com seu msn registrado Oo! Tipow esse script peguei no Otfans num comentario do richi~! Feliz Ano Novo para você tambem brow e to esperando a Dreams em!? :smile_positivo: -
[pedido] Npc Que Fala Sozinho;
tópico respondeu ao Thunder Sandex de MarcolinoGOD em Lixeira Pública
autosay.lua Se quiser adicionar mais alguma mensagem adicione essa tag nº: Coloque na ordem (1,2,3...) MSG: Mensagem desejada. E o 3 você muda conforme quantas falas você colocar! Esperto ter ajudado!!! -
[8.4] Enchant System And Rainbow Shield
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
Biba você me passo foi os teleport que manda para os lugar onde encanta, esse aqui peguei em um forum ai! Abraços. -
[8.4] Enchant System And Rainbow Shield
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
O TFS que mencionei é 8.4... Ué ai depende se o Rainbow Shield esta ou não bugado no distro! Edit: Update Script! -
[8.4] Enchant System And Rainbow Shield
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Actions e Talkactions
Eu testei no TFS Mystic Spirit Rev.22 e Funcionou perfeitamente! Existem alguns ots em que o Rainbow Shield vem bugado em um dos estados de encantamento e infelizmente ainda não descobri como resolver tal problema, mas nos servidores em que isto não ocorre acredito que o script funcione normalmente. Obrigado por comentar~ -
Os Melhores Demonios Dos Elementos ...
tópico respondeu ao bolas de MarcolinoGOD em NPCs, monsters e raids
Meu caro RINOXX, estes monstros estão muito ruins e acredito que se você procurase dexa-los menos bizarros com esses hits/exp/life e tenta-se pegar como base os monstros ja existentes no tibia (Eu não disse copiar) acredito que gostariam mais de seus monstros!!! A não ser que seja um server em que todos são GM's estes tipos de monstros só servem para encher "linguiça" e com a noção "lógica" do jogo! Boa sorte nos próximos. Sem mais... -
The Demon Oak Quest 2.1 (tfs 0.4)
tópico respondeu ao tibiaa4e de MarcolinoGOD em Actions e Talkactions
Se alguem quiser o script para encantar o Rainbow Shield: [8.4] Enchant System And Rainbow Shield, Creditos: Keraxel Adiciona para galera ai no tópico tibiaa4e!? Abraços. -
[8.4] Enchant System And Rainbow Shield
um tópico no fórum postou MarcolinoGOD Actions e Talkactions
Muitos ja devem ter o sistema de encantamento em seu ot, que é encantar gemas em altares do tipo fire/poison/ice/energy e este faz o mesmo só que é atualizado e conta com a possibilidade de encantar o Rainbow Shield. Rainbow Shield Notas: Encantável (cada encanto dura 20 minutos). Com os encantos você pode conseguir: Sparking Rainbow Shield aumenta sua velocidade em 10 levels e possui defesa 36. Fiery Rainbow Shield aumenta seu shielding skill em 3 e possui defesa 36. Icy Rainbow Shield possui defesa 39. Terran Rainbow Shield aumenta sua velocidade de regeneração e possui defesa 37. Chega de explicações qualquer duvida ou erro é só reportar! Vamos la: :soudado: enchant.lua --by Richi~ -- function onUse(cid, item, frompos, item2, topos) local gems = {2146, 2147, 2149, 2150} local egems = {7759, 7760, 7761, 7762} local altars = {{7508, 7509, 7510, 7511}, {7504, 7505, 7506, 7507}, {7516, 7517, 7518, 7519}, {7512, 7513, 7514, 7515}} local weapons = {2383, 7384, 7389, 7406, 7402, 2429, 2430, 2435, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905} local eweapons = {{7763, 7744, 7854, 7869}, {7765, 7746, 7856, 7871}, {7770, 7751, 7861, 7876}, {7766, 7747, 7857, 7872}, {7767, 7748, 7858, 7873}, {7768, 7749, 7859, 7874}, {7769, 7750, 7860, 7875}, {7770, 7751, 7861, 7876}, {7771, 7752, 7862, 7877}, {7772, 7753, 7863, 7878}, {7773, 7754, 7864, 7879}, {7774, 7755, 7865, 7880}, {7775, 7756, 7866, 7881}, {7776, 7757, 7867, 7882}, {7777, 7758, 7868, 7883}, {7839, 7840, 7838, 7850}, {8907, 8906, 8909, 8908}} local type = item.type if type == 0 then type = 1 end local mana = 300 * type local soul = 2 * type if isInArray(gems, item.itemid)== TRUE then for aa=1, #gems do if item.itemid == gems[aa] then a=aa end end if isInArray(altars[a], item2.itemid)== TRUE then if getPlayerMana(cid) >= mana and getPlayerSoul(cid) >= soul then doTransformItem(item.uid,egems[a]) doPlayerAddMana(cid,-mana) doPlayerAddSoul(cid,-soul) doSendMagicEffect(frompos,39) else doPlayerSendCancel(cid,"You dont have mana or soul points.") end else return 2 end elseif isInArray(egems, item.itemid)== TRUE then for bb=1, #egems do if item.itemid == egems[bb] then b=bb end end if isInArray(weapons, item2.itemid)== TRUE then for cc=1, #weapons do if item2.itemid == weapons[cc] then c=cc end end doTransformItem(item2.uid,eweapons[c][b],1000) doSendMagicEffect(frompos,39) doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,"You can't enchanted this.") end else return 0 end return 1 end actions.xml Espero que gostem!!! Creditos: richiadicct -
[npc] Pack Para Tfs ~ Last Update 28/12
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em NPCs, monsters e raids
Galera no pack contem o Npc que faz addons através de itens é que infelizmente ele é tão grande que o spoiler e o codebox não o suportaram!!! @UP: Você foi rapido em aeuheua! Fico feliz em ter ajudado. Reservado para futuros Npcs! -
[npc] Pack Para Tfs ~ Last Update 28/12
um tópico no fórum postou MarcolinoGOD NPCs, monsters e raids
Espero que gostem deste pack que encontrem rodando pela net e que possam entender minha tradução que embora não esteja totalmente coerente ao texto original, esta bem "legivel"! Créditos: Sentielo 95% (Arquivos .lua) Albert José 5% (Base dos npcs, tradução, looktype tibia rl, adicionar fotos e organização do tópico) Agora é a hora que você escolhe se vai ter o trabalho de copiar e colar tudo isso abaixo ou simplesmente baixar o pack feito por mim!? Download (Escolha o host de sua preferencia!): Ele tambem se encontra em anexo no tópico! (tibiaa4e pronto querido)[ 4Shared Speedy Share Scan: (Obrigado Phgsoares) http://www.virustotal.com/pt/analisis/680f...2383610e1c2c014 Olá, Hoje, eu estava trabalhando em meu OT e decidi publicar meus npcs para vcs, espero que sejam uteis para vocês tambem. Irei postar mais NPCs Assim que for concluindo os mesmos. Aqui esta: .Este npc vende bags,backpacks e alguns tools como ropes, shovels etc. Lubo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Lubo" script="data/npc/scripts/Tools.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="1" body="39" legs="96" feet="120" addons="3"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello, are you looking for adventure |PLAYERNAME]! I sell things you probably need to get in deep dungeons, just ask me for a {trade}." /> <parameter key="message_farewell" value="Goodbye, good luck on your adventure |PLAYERNAME|." /> <parameter key="message_walkaway" value="Kidd, please watch out for the deeper dungeons!" /> </parameters> </npc> Tools.lua 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) shopModule:addBuyableItem({'brown bag'}, 1987, 20, 'brown bag') shopModule:addBuyableItem({'brown backpack'}, 1988, 20, 'brown backpack') shopModule:addBuyableItem({'basket'}, 1989, 6, 'basket') shopModule:addBuyableItem({'present box'}, 1990, 20, 'present box') shopModule:addBuyableItem({'green bag'}, 1991, 5, 'green bag') shopModule:addBuyableItem({'yellow bag'}, 1992, 5, 'yellow bag') shopModule:addBuyableItem({'red bag'}, 1993, 5, 'red bag') shopModule:addBuyableItem({'purple bag'}, 1994, 5, 'purple bag') shopModule:addBuyableItem({'blue bag'}, 1995, 5, 'blue bag') shopModule:addBuyableItem({'grey bag'}, 1996, 5, 'grey bag') shopModule:addBuyableItem({'golden bag'}, 1997, 5, 'golden bag') shopModule:addBuyableItem({'green backpack'}, 1998, 20, 'green backpack') shopModule:addBuyableItem({'yellow backpack'}, 1999, 20, 'yellow backpack') shopModule:addBuyableItem({'red backpack'}, 2000, 20, 'red backpack') shopModule:addBuyableItem({'purple backpack'}, 2001, 20, 'purple backpack') shopModule:addBuyableItem({'blue backpack'}, 2002, 20, 'blue backpack') shopModule:addBuyableItem({'grey backpack'}, 2003, 20, 'grey backpack') shopModule:addBuyableItem({'golden backpack'}, 2004, 20, 'golden backpack') shopModule:addBuyableItem({'beach backpack'}, 5949, 20, 'beach backpack') shopModule:addBuyableItem({'beach bag'}, 5950, 20, 'beach bag') shopModule:addBuyableItem({'camouflage bag'}, 3939, 20, 'camouflage bag') shopModule:addBuyableItem({'camouflage backpack'}, 3940, 20, 'camouflage backpack') shopModule:addBuyableItem({'pirate backpack'}, 5926, 20, 'pirate backpack') shopModule:addBuyableItem({'pirate bag'}, 5927, 5, 'pirate bag') shopModule:addBuyableItem({'fur backpack'}, 7342, 20, 'fur backpack') shopModule:addBuyableItem({'fur bag'}, 7343, 20, 'fur bag') shopModule:addBuyableItem({'rope'}, 2120, 50, 'rope') shopModule:addBuyableItem({'scythe'}, 2550, 50, 'scythe') shopModule:addBuyableItem({'pick'}, 2553, 50, 'pick') shopModule:addBuyableItem({'shovel'}, 2554, 50, 'shovel') shopModule:addBuyableItem({'fishing rod'}, 2580, 150, 'fishing rod') shopModule:addBuyableItem({'worms'}, 3976, 1, 'worms') shopModule:addBuyableItem({'torch'}, 2150, 2, 'torch') shopModule:addBuyableItem({'football'}, 2190, 111, 'football') shopModule:addBuyableItem({'watch'}, 2036, 20, 'watch') shopModule:addSellableItem({'rope'}, 2120, 8, 'rope') shopModule:addSellableItem({'shovel'}, 2554, 8, 'shovel') shopModule:addSellableItem({'scythe'}, 2550, 10, 'scythe') shopModule:addSellableItem({'pick'}, 2553, 15, 'pick') shopModule:addSellableItem({'fishing rod'}, 2580, 40, 'fishing rod') shopModule:addSellableItem({'watch'}, 2036, 6, 'watch') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Um npc que vende todos tipos dos alimentos e um cookbook pela causa , porém não cosinha! Frodo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Frodo" script="data/npc/scripts/Food.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="58" body="68" legs="129" feet="115" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hi |PLAYERNAME]. Ask me for a {trade} if you want to buy some food." /> <parameter key="message_farewell" value="Goodbye and bon a petit! |PLAYERNAME|." /> <parameter key="message_walkaway" value="Bye... Don't you like my food?" /> </parameters> </npc> Food.lua 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) shopModule:addBuyableItem({'meat'}, 2666, 5, 'meat') shopModule:addBuyableItem({'fish'}, 2667, 5, 'fish') shopModule:addBuyableItem({'salmon'}, 2668, 5, 'salmon') shopModule:addBuyableItem({'ham'}, 2671, 8, 'ham') shopModule:addBuyableItem({'dragon ham'}, 2672, 25, 'dragon ham') shopModule:addBuyableItem({'pear'}, 2673, 4, 'pear') shopModule:addBuyableItem({'red apple'}, 2674, 3, 'red apple') shopModule:addBuyableItem({'orange'}, 2675, 10, 'orange') shopModule:addBuyableItem({'banana'}, 2676, 3, 'banana') shopModule:addBuyableItem({'blueberry'}, 2677, 1, 'blueberry') shopModule:addBuyableItem({'cherry'}, 2679, 1, 'cherry') shopModule:addBuyableItem({'strawberry'}, 2680, 1, 'strawberry') shopModule:addBuyableItem({'grape'}, 2680, 3, 'grape') shopModule:addBuyableItem({'melon'}, 2682, 8, 'melon') shopModule:addBuyableItem({'pumpkin'}, 2683, 10, 'pumpkin') shopModule:addBuyableItem({'carrot'}, 2684, 3, 'carrot') shopModule:addBuyableItem({'tomato'}, 2685, 5, 'tomato') shopModule:addBuyableItem({'corncob'}, 2686, 3, 'corncob') shopModule:addBuyableItem({'cookie'}, 2687, 2, 'cookie') shopModule:addBuyableItem({'bread'}, 2689, 4, 'bread') shopModule:addBuyableItem({'roll'}, 2690, 2, 'roll') shopModule:addBuyableItem({'brown bread'}, 2691, 3, 'brown bread') shopModule:addBuyableItem({'egg'}, 2695, 2, 'egg') shopModule:addBuyableItem({'cheese'}, 2696, 2, 'cheese') shopModule:addBuyableItem({'white mushroom'}, 2787, 6, 'white mushroom') shopModule:addBuyableItem({'red mushroom'}, 2788, 12, 'red mushroom') shopModule:addBuyableItem({'brown mushroom'}, 2789, 10, 'brown mushroom') shopModule:addBuyableItem({'valentine cake'}, 6393, 6, 'valentine cake') shopModule:addBuyableItem({'cookbook'}, 2347, 150, 'cookbook') shopModule:addSellableItem({'meat'}, 2666, 2, 'meat') shopModule:addSellableItem({'salmon'}, 2668, 2, 'salmon') shopModule:addSellableItem({'bread'}, 2689, 2, 'bread') shopModule:addSellableItem({'ham'}, 2671, 4, 'ham') shopModule:addBuyableItem({'blueberry'}, 2677, 1, 5, 'blueberry') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Este troca itens Ps¹:Não foi feito por mim, mas adicionei a obsidian knife A Sweaty Cyclops.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="A Sweaty Cyclops" script="data/npc/scripts/Exchanger.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="22" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hi little one. I am an A Sweaty Cyclops. Need some {help} to know exactly what I am exchanging?" /> <parameter key="message_farewell" value="Goodbye. Have fun on your adventure little one." /> <parameter key="message_walkaway" value="You are just so little..." /> </parameters> </npc> Exchanger.lua 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".') elseif msgcontains(msg, 'spider silk yarn') then if getPlayerItemCount(cid,5879) >= 10 then selfSay('Did you bring me the 10 Giant Silks ?') 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.') 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.') 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, '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?') talk_state = 9 else selfSay('I need 100 empty vials, to give you a lottery ticket. Come back when you have them.') 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, '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 ?') 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.') 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?') talk_state = 4 else selfSay('I need 4 warrior helmets, to give you the warrior sweat. Come back when you have them.') 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 sulpher') 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?') talk_state = 5 else selfSay('I need 3 fire swords, to give you the magic sulpher. Come back when you have them.') 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?') talk_state = 6 else selfSay('I need boots of haste, to give you the enchanted chicken wing. Come back when you have them.') 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 ?') 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.') 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) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Devil Helmet ?') 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.') 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?') talk_state = 9 else selfSay('I need a 15 demon horns, to give you the engraved crossbow. Come back when you have them.') 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?') talk_state = 10 else selfSay('I need a 2 Royal Helmets, to give you the Fighting Spirit. Come back when you have them.') 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?') talk_state = 11 else selfSay('I need a Soul Orb, to give you the 2 Infernal Bolts. Come back when you have them.') 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,2) 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 ?') talk_state = 12 else selfSay('I need a Mystic Turban, to give you the Blue Piece of Cloth. Come back when you have them.') 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 ?') talk_state = 13 else selfSay('I need a Green Tunic, to give you the Green Piece of Cloth. Come back when you have them.') 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 ?') talk_state = 14 else selfSay('I need a Red Robe, to give you the Red Piece of Cloth. Come back when you have them.') 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?') 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.') 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, '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 end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Este npc vende weapons, armors, shields, helmets e legs Norma.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Norma" script="data/npc/scripts/Equipment.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="78" body="95" legs="110" feet="96" addons="2"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Welcome |PLAYERNAME]! My name is Norma and I sell and buy equipments, just ask me for a {trade} if your are interested." /> <parameter key="message_farewell" value="Goodbye, I will see you around sometimes |PLAYERNAME|." /> <parameter key="message_walkaway" value="Aren't we saying goodbye anymore?" /> </parameters> </npc> Equipment.lua 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) shopModule:addBuyableItem({'steel helmet'}, 2457, 580, 'steel helmet') shopModule:addBuyableItem({'chain helmet'}, 2458, 52, 'chain helmet') shopModule:addBuyableItem({'iron helmet'}, 2459, 390, 'iron helmet') shopModule:addBuyableItem({'brass helmet'}, 2460, 120, 'brass helmet') shopModule:addBuyableItem({'leather helmet'}, 2461, 12, 'leather helmet') shopModule:addBuyableItem({'viking helmet'}, 2473, 265, 'viking helmet') shopModule:addBuyableItem({'soldier helmet'}, 2481, 110, 'soldier helmet') shopModule:addBuyableItem({'studded helmet'}, 2482, 63, 'studded helmet') shopModule:addBuyableItem({'chain armor'}, 2464, 200, 'chain armor') shopModule:addBuyableItem({'brass armor'}, 2465, 450, 'brass armor') shopModule:addBuyableItem({'leather armor'}, 2467, 35, 'leather armor') shopModule:addBuyableItem({'brass legs'}, 2478, 195, 'brass legs') shopModule:addBuyableItem({'chain legs'}, 2648, 80, 'chain legs') shopModule:addBuyableItem({'leather legs'}, 2649, 10, 'leather legs') shopModule:addBuyableItem({'steel shield'}, 2509, 240, 'steel shield') shopModule:addBuyableItem({'plate shield'}, 2510, 125, 'plate shield') shopModule:addBuyableItem({'brass shield'}, 2511, 16, 'brass shield') shopModule:addBuyableItem({'wooden shield'}, 2512, 15, 'wooden shield') shopModule:addBuyableItem({'dwarven shield'}, 2525, 500, 'dwarven shield') shopModule:addBuyableItem({'sword'}, 2376, 85, 'sword') shopModule:addBuyableItem({'two handed sword'}, 2377, 950, 'two handed sword') shopModule:addBuyableItem({'dagger'}, 2379, 5, 'dagger') shopModule:addBuyableItem({'rapier'}, 2384, 15, 'rapier') shopModule:addBuyableItem({'sabre'}, 2385, 35, 'sabre') shopModule:addBuyableItem({'carlin sword'}, 2395, 473, 'carlin sword') shopModule:addBuyableItem({'club'}, 2382, 5, 'club') shopModule:addBuyableItem({'morning star'}, 2394, 430, 'morning star') shopModule:addBuyableItem({'mace'}, 2398, 90, 'mace') shopModule:addBuyableItem({'battle hammer'}, 2417, 350, 'battle hammer') shopModule:addBuyableItem({'clerical mace'}, 2423, 540, 'clerical mace') shopModule:addBuyableItem({'battle axe'}, 2378, 235, 'battle axe') shopModule:addBuyableItem({'hand axe'}, 2380, 8, 'hand axe') shopModule:addBuyableItem({'axe'}, 2386, 20, 'axe') shopModule:addBuyableItem({'barbarian axe'}, 2429, 590, 'barbarian axe') shopModule:addSellableItem({'battle axe'}, 2378, 80, 'battle axe') shopModule:addSellableItem({'hand axe'}, 2380, 4, 'hand axe') shopModule:addSellableItem({'halberd'}, 2381, 400, 'halberd') shopModule:addSellableItem({'axe'}, 2386, 8, 'axe') shopModule:addSellableItem({'double axe'}, 2387, 260, 'double axe') shopModule:addSellableItem({'barbarian axe'}, 2429, 185, 'barbarian axe') shopModule:addSellableItem({'steel helmet'}, 2457, 190, 'steel helmet') shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet') shopModule:addSellableItem({'iron helmet'}, 2459, 145, 'iron helmet') shopModule:addSellableItem({'brass helmet'}, 2460, 30, 'brass helmet') shopModule:addSellableItem({'leather helmet'}, 2461, 4, 'leather helmet') shopModule:addSellableItem({'viking helmet'}, 2473, 66, 'viking helmet') shopModule:addSellableItem({'legion helmet'}, 2480, 22, 'legion helmet') shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 'soldier helmet') shopModule:addSellableItem({'plate armor'}, 2463, 400, 'plate armor') shopModule:addSellableItem({'chain armor'}, 2464, 70, 'chain armor') shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor') shopModule:addSellableItem({'leather armor'}, 2467, 12, 'leather armor') shopModule:addSellableItem({'scale armor'}, 2483, 75, 'scale armor') shopModule:addSellableItem({'studded armor'}, 2484, 70, 'studded armor') shopModule:addSellableItem({'brass legs'}, 2478, 49, 'brass legs') shopModule:addSellableItem({'plate legs'}, 2647, 115, 'plate legs') shopModule:addSellableItem({'chain legs'}, 2648, 25, 'chain legs') shopModule:addSellableItem({'leather legs'}, 2649, 2, 'leather legs') shopModule:addSellableItem({'steel shield'}, 2509, 80, 'steel shield') shopModule:addSellableItem({'plate shield'}, 2510, 45, 'plate shield') shopModule:addSellableItem({'brass shield'}, 2511, 16, 'brass shield') shopModule:addSellableItem({'wooden shield'}, 2512, 5, 'wooden shield') shopModule:addSellableItem({'battle shield'}, 2513, 95, 'battle shield') shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 'dwarven shield') shopModule:addSellableItem({'sentinel shield'}, 3974, 120, 'sentinel shield') shopModule:addSellableItem({'salamander shield'}, 3975, 280, 'salamander shield') shopModule:addSellableItem({'tusk shield'}, 3973, 850, 'tusk shield') shopModule:addSellableItem({'sword'}, 2376, 25, 'sword') shopModule:addSellableItem({'two handed sword'}, 2377, 450, 'two handed sword') shopModule:addSellableItem({'dagger'}, 2379, 2, 'dagger') shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier') shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre') shopModule:addSellableItem({'carlin sword'}, 2395, 118, 'carlin sword') shopModule:addSellableItem({'short sword'}, 2406, 10, 'short sword') shopModule:addSellableItem({'club'}, 2382, 1, 'club') shopModule:addSellableItem({'morning star'}, 2394, 90, 'morning star') shopModule:addSellableItem({'mace'}, 2398, 30, 'mace') shopModule:addSellableItem({'battle hammer'}, 2417, 120, 'battle hammer') shopModule:addSellableItem({'giant smithhammer'}, 2321, 250, 'giant smithhammer') shopModule:addSellableItem({'clerical mace'}, 2423, 170, 'clerical mace') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Um npc que vende munições: Elane.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Elane" script="data/npc/scripts/Distance.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="137" head="113" body="101" legs="121" feet="120" addons="3"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Welcome |PLAYERNAME]! This is my ammunition shop for paladins, just ask me for a {trade}." /> <parameter key="message_farewell" value="Goodbye and I hope you love my ammunition, |PLAYERNAME|." /> <parameter key="message_walkaway" value="Don't you like my ammunition?" /> </parameters> </npc> Distance.lua 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) shopModule:addBuyableItem({'bow'}, 2456, 400, 'bow') shopModule:addBuyableItem({'crossbow'}, 2455, 500, 'crossbow') shopModule:addBuyableItem({'royal spear'}, 7378, 15, 'royal spear') shopModule:addBuyableItem({'spear'}, 2389, 10, 'spear') shopModule:addBuyableItem({'arrow'}, 2544, 3, 'arrow') shopModule:addBuyableItem({'sniper arrow'}, 7364, 5, 'sniper arrow') shopModule:addBuyableItem({'bolt'}, 2543, 4, 'bolt') shopModule:addBuyableItem({'earth arrow'}, 7851, 5, 'earth arrow') shopModule:addBuyableItem({'flaming arrow'}, 7840, 5, 'flaming arrow') shopModule:addBuyableItem({'flash arrow'}, 7838, 5, 'flash arrow') shopModule:addBuyableItem({'onyx arrow'}, 7365, 7, 'onyx arrow') shopModule:addBuyableItem({'power bolt'}, 2547, 7, 'power bolt') shopModule:addBuyableItem({'throwing star'}, 2399, 42, 'throwing star') shopModule:addBuyableItem({'shiver arrow'}, 7839, 5, 'shiver arrow') shopModule:addBuyableItem({'piercing bolt'}, 7362, 5, 'piercing bolt') shopModule:addBuyableItem({'assassin star'}, 7368, 100, 'assassin star') shopModule:addBuyableItem({'throwing knife'}, 2410, 25, 'throwing knife') shopModule:addSellableItem({'bow'}, 2456, 130, 'bow') shopModule:addSellableItem({'crossbow'}, 2455, 160, 'crossbow') shopModule:addSellableItem({'spear'}, 2389, 3, 'spear') shopModule:addSellableItem({'hunting spear'}, 3965, 25, 'hunting spear') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Blessing Seller; Script feito por Ninkobi, Obrigado! Eremo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Eremo" script="data/npc/scripts/Blessing.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="0" body="109" legs="128" feet="95" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello |PLAYERNAME]! My name is Eremo and I sells the 5 blessings in a row, when you just say {blessings}." /> <parameter key="message_farewell" value="Eremo Blessings! |PLAYERNAME|." /> <parameter key="message_walkaway" value="Good bye..." /> </parameters> </npc> Blessing.lua 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 onSay(cid, words, param) if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then doPlayerSendCancel(cid,'You have already got one or more blessings!') else if doPlayerRemoveMoney(cid, 50000) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!') else doPlayerSendCancel(cid, "You need five crystal coin to get blessed!") end end return 1 end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Rune Seller; Neste é possivel comprar runas, bp runes e wands/rods. Frans.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Frans" script="data/npc/scripts/Runes.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look typeex="2229"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hiah |PLAYERNAME]! My name is Frans, Ask me for a {trade} if you want to buy some runes, wands or fluids." /> <parameter key="message_farewell" value="Thanks for doing business |PLAYERNAME|." /> <parameter key="message_walkaway" value="Biah!" /> </parameters> </npc> Runes.lua 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) shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook') shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand') shopModule:addBuyableItem({'small health'}, 8704, 20, 'small health potion') shopModule:addBuyableItem({'health potion'}, 7618, 45, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 'mana potion') shopModule:addBuyableItem({'strong health'}, 7588, 100, 'strong health potion') shopModule:addBuyableItem({'strong mana'}, 7589, 80, 'strong mana potion') shopModule:addBuyableItem({'great health'}, 7591, 190, 'great health potion') shopModule:addBuyableItem({'great mana'}, 7590, 120, 'great mana potion') shopModule:addBuyableItem({'great spirit'}, 8472, 190, 'great spirit potion') shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 'ultimate health potion') shopModule:addBuyableItem({'antidote potion'}, 8474, 50, 'antidote potion') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addBuyableItem({'blank rune'}, 2260, 10, 'blank rune') shopModule:addBuyableItem({'animate dead'}, 2316, 375, 'animate dead rune') shopModule:addBuyableItem({'antidote'}, 2266, 65, 'antidote rune') shopModule:addBuyableItem({'avalanche'}, 2274, 180, 'avalanche rune') shopModule:addBuyableItem({'chameleon'}, 2291, 210, 'chameleon rune') shopModule:addBuyableItem({'convince creature'}, 2290, 80, 'convince creature rune') shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 'desintegrate rune') shopModule:addBuyableItem({'destroy field'}, 2261, 45, 'destroy field') shopModule:addBuyableItem({'energy bomb'}, 2262, 325, 'energy bomb rune') shopModule:addBuyableItem({'energy field'}, 2277, 115, 'energy field') shopModule:addBuyableItem({'energy wall'}, 2279, 340, 'energy wall rune') shopModule:addBuyableItem({'explosion'}, 2313, 190, 'explosion rune') shopModule:addBuyableItem({'fire bomb'}, 2305, 235, 'fire bomb rune') shopModule:addBuyableItem({'fire field'}, 2301, 85, 'fire field rune') shopModule:addBuyableItem({'fire wall'}, 2303, 245, 'fire wall rune') shopModule:addBuyableItem({'fireball'}, 2302, 150, 'fire ball') shopModule:addBuyableItem({'great fireball'}, 2304, 180, 'great fireball rune') shopModule:addBuyableItem({'heavy magic missile'}, 2311, 120, 'heavy magic missile rune') shopModule:addBuyableItem({'icicle'}, 2271, 150, 'icicle rune') shopModule:addBuyableItem({'intense healing'}, 2265, 95, 'intense healing rune') shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 'light magic missile rune') shopModule:addBuyableItem({'magic wall'}, 2293, 350, 'magic wall rune') shopModule:addBuyableItem({'paralyze'}, 2278, 700, 'paralyze rune') shopModule:addBuyableItem({'poison bomb'}, 2286, 170, 'poison bomb rune') shopModule:addBuyableItem({'poison field'}, 2285, 65, 'poison field') shopModule:addBuyableItem({'poison wall'}, 2289, 210, 'poison wall rune') shopModule:addBuyableItem({'soulfire'}, 2308, 140, 'soulfire rune') shopModule:addBuyableItem({'stalagmite'}, 2292, 120, 'stalagmite rune') shopModule:addBuyableItem({'stone shower'}, 2288, 150, 'stoneshower rune') shopModule:addBuyableItem({'sudden death'}, 2268, 325, 'sudden death rune') shopModule:addBuyableItem({'thunderstorm'}, 2268, 150, 'thunderstorm rune') shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 'ultimate healing rune') shopModule:addBuyableItem({'wild growth'}, 2269, 320, 'wild growth rune') shopModule:addBuyableItemContainer({'bp blank rune'}, 1988, 2260, 220, 'bp blank rune') shopModule:addBuyableItemContainer({'bp animate dead'}, 1998, 2316, 7520, 'bp animate dead rune') shopModule:addBuyableItemContainer({'bp antidote'}, 2003, 2266, 1320, 'bp antidote rune') shopModule:addBuyableItemContainer({'bp avalanche'}, 2002, 2274, 3620, 'bp avalanche rune') shopModule:addBuyableItemContainer({'bp chameleon'}, 1998, 2291, 4220, 'bp chameleon rune') shopModule:addBuyableItemContainer({'bp convince creature'}, 1998, 2290, 1620, 'bp convince creature rune') shopModule:addBuyableItemContainer({'bp desintegrate'}, 2001, 2310, 1620, 'bp desintegrate rune') shopModule:addBuyableItemContainer({'bp destroy field'}, 2003, 2261, 920, 'bp destroy field') shopModule:addBuyableItemContainer({'bp energy bomb'}, 2003, 2262, 6520, 'bp energy bomb rune') shopModule:addBuyableItemContainer({'bp energy field'}, 1998, 2277, 2320, 'bp energy field') shopModule:addBuyableItemContainer({'bp energy wall'}, 2002, 2279, 6820, 'bp energy wall rune') shopModule:addBuyableItemContainer({'bp explosion'}, 2001, 2313, 3820, 'bp explosion rune') shopModule:addBuyableItemContainer({'bp fire bomb'}, 2000, 2305, 4720, 'bp fire bomb rune') shopModule:addBuyableItemContainer({'bp fire field'}, 2000, 2301, 1720, 'bp fire field rune') shopModule:addBuyableItemContainer({'bp fire wall'}, 2000, 2303, 4920, 'bp fire wall rune') shopModule:addBuyableItemContainer({'bp fireball'}, 2000, 2302, 3020, 'bp fire ball') shopModule:addBuyableItemContainer({'bp great fireball'}, 2000, 2304, 3620, 'bp great fireball rune') shopModule:addBuyableItemContainer({'bp heavy magic missile'}, 2001, 2311, 2420, 'bp heavy magic missile rune') shopModule:addBuyableItemContainer({'bp icicle'}, 2002, 2271, 3020, 'bp icicle rune') shopModule:addBuyableItemContainer({'bp intense healing'}, 2003, 2265, 1920, 'bp intense healing rune') shopModule:addBuyableItemContainer({'bp light magic missile'}, 1998, 2287, 820, 'bp light magic missile rune') shopModule:addBuyableItemContainer({'bp magic wall'}, 1999, 2293, 7020, 'bp magic wall rune') shopModule:addBuyableItemContainer({'bp paralyze'}, 2002, 2278, 1420, 'bp paralyze rune') shopModule:addBuyableItemContainer({'bp poison bomb'}, 1998, 2286, 3420, 'bp poison bomb rune') shopModule:addBuyableItemContainer({'bp poison field'}, 1998, 2285, 1320, 'bp poison field') shopModule:addBuyableItemContainer({'bp poison wall'}, 1998, 2289, 4220, 'bp poison wall rune') shopModule:addBuyableItemContainer({'bp soulfire'}, 2000, 2308, 2820, 'bp soulfire rune') shopModule:addBuyableItemContainer({'bp stalagmite'}, 1998, 2292, 2400, 'bp stalagmite rune') shopModule:addBuyableItemContainer({'bp stone shower'}, 1999, 2288, 3020, 'bp stoneshower rune') shopModule:addBuyableItemContainer({'bp sudden death'}, 2003, 2268, 6520, 'bp sudden death rune') shopModule:addBuyableItemContainer({'bp thunderstorm'}, 1999, 2268, 3020, 'bp thunderstorm rune') shopModule:addBuyableItemContainer({'bp ultimate healing'}, 2002, 2273, 3520, 'bp ultimate healing rune') shopModule:addBuyableItemContainer({'bp wild growth'}, 2002, 2269, 6420, 'bp wild growth rune') shopModule:addBuyableItemContainer({'bp health potion'}, 2000, 7618, 45, 'bp health potion') shopModule:addBuyableItemContainer({'bp mana potion'}, 2001, 7620, 50, 'bp mana potion') shopModule:addBuyableItemContainer({'bp strong health'}, 2000, 7588, 100, 'bp strong health potion') shopModule:addBuyableItemContainer({'bp strong mana'}, 2001, 7589, 80, 'bp strong mana potion') shopModule:addBuyableItemContainer({'bp great health'}, 2000, 7591, 190, 'bp great health potion') shopModule:addBuyableItemContainer({'bp great mana'}, 2001, 7590, 120, 'bp great mana potion') shopModule:addBuyableItemContainer({'bp great spirit'}, 1988, 8472, 190, 'bp great spirit potion') shopModule:addBuyableItemContainer({'bp ultimate health'}, 2000, 8473, 310, 'bp ultimate health potion') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex') shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 'wand of dragonbreath') shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay') shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 'wand of draconia') shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 'wand of cosmic energy') shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno') shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod') shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod') shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod') shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod') shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod') shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 'hailstorm rod') shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod') shopModule:addSellableItem({'wand of vortex', 'vortex'}, 2190, 250, 'wand of vortex') shopModule:addSellableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 500, 'wand of dragonbreath') shopModule:addSellableItem({'wand of decay', 'decay'}, 2188, 2500, 'wand of decay') shopModule:addSellableItem({'wand of draconia', 'draconia'}, 8921, 3750, 'wand of draconia') shopModule:addSellableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 5000, 'wand of cosmic energy') shopModule:addSellableItem({'wand of inferno', 'inferno'},2187, 7500, 'wand of inferno') shopModule:addSellableItem({'wand of starstorm', 'starstorm'}, 8920, 9000, 'wand of starstorm') shopModule:addSellableItem({'wand of voodoo', 'voodoo'}, 8922, 11000, 'wand of voodoo') shopModule:addSellableItem({'snakebite rod', 'snakebite'}, 2182, 250,'snakebite rod') shopModule:addSellableItem({'moonlight rod', 'moonlight'}, 2186, 500, 'moonlight rod') shopModule:addSellableItem({'necrotic rod', 'necrotic'}, 2185, 2500, 'necrotic rod') shopModule:addSellableItem({'northwind rod', 'northwind'}, 8911, 3750, 'northwind rod') shopModule:addSellableItem({'terra rod', 'terra'}, 2181, 5000, 'terra rod') shopModule:addSellableItem({'hailstorm rod', 'hailstorm'}, 2183, 7500, 'hailstorm rod') shopModule:addSellableItem({'springsprout rod', 'springsprout'}, 8912, 9000, 'springsprout rod') shopModule:addSellableItem({'underworld rod', 'underworld'}, 8910, 11000, 'underworld rod') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182} if(msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand')) then if(isSorcerer(cid) or isDruid(cid)) then if(getPlayerStorageValue(cid, 30002) == -1) then selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid) talkState[talkUser] = 1 else selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid) end else selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid) end elseif(msgcontains(msg, 'yes')) then if(talkState[talkUser] == 1) then doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1) selfSay('Here you are young adept, take care yourself.', cid) setPlayerStorageValue(cid, 30002, 1) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then selfSay('Ok then.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Este é os djinns do tibia Global reunidos em um npc só: Nah'Bob.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Nah'Bob" script="data/npc/scripts/Djinn.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="80" head="20" body="30" legs="40" feet="50" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello|PLAYERNAME]! I sell the djinn items. Just ask me for a {trade}." /> <parameter key="message_farewell" value="Goodbye. Thanks for trading with me |PLAYERNAME|." /> <parameter key="message_walkaway" value="Goodbye." /> </parameters> </npc> Djinn.lua 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) shopModule:addBuyableItem({'beholder shield'}, 2518, 7000, 'beholder shield') shopModule:addBuyableItem({'noble armor'}, 2486, 8000, 'noble armor') shopModule:addBuyableItem({'spike sword'}, 2383, 8000, 'spike sword') shopModule:addBuyableItem({'war hammer'}, 2391, 10000, 'war hammer') shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 'beholder shield') shopModule:addSellableItem({'crown shield'}, 2519, 8000, 'crown shield') shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 'dragon shield') shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 'guardian shield') shopModule:addSellableItem({'phoenix shield'}, 2539, 16000, 'phoenix shield') shopModule:addSellableItem({'blue robe'}, 2656, 10000, 'blue rope') shopModule:addSellableItem({'crown armor'}, 2487, 12000, 'crown armor') shopModule:addSellableItem({'noble armor'}, 2486, 900, 'noble armor') shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 'boots of haste') shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword') shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 'dragon lance') shopModule:addSellableItem({'fire axe'}, 2432, 8000, 'fire axe') shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword') shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 'ice rapier') shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 'obsidian lance') shopModule:addSellableItem({'spike sword'}, 2383, 1000, 'spike sword') shopModule:addSellableItem({'war hammer'}, 2391200, 'war hammer') shopModule:addSellableItem({'crown helmet'}, 2492500, 'crown helmet') shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 'crusader helmet') shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 'royal helmet') shopModule:addSellableItem({'crown legs'}, 2488, 12000, 'crown legs') shopModule:addSellableItem({'earth spike sword'}, 7854, 1000, 'spike sword') shopModule:addSellableItem({'energy spike sword'}, 7869, 1000, 'spike sword') shopModule:addSellableItem({'fiery spike sword'}, 7744, 1000, 'spike sword') shopModule:addSellableItem({'icy spike sword'}, 7763, 1000, 'spike sword') shopModule:addSellableItem({'earth war hammer'}, 7868, 1200, 'war hammer') shopModule:addSellableItem({'energy war hammer'}, 7883, 1200, 'war hammer') shopModule:addSellableItem({'fiery war hammer'}, 7758, 1200, 'war hammer') shopModule:addSellableItem({'icy war hammer'}, 7777, 1200, 'war hammer') shopModule:addSellableItem({'wand of vortex'}, 2190, 100, 'wand of vortex') shopModule:addSellableItem({'wand of dragonbreath'}, 219200, 'wand of dragonbreath') shopModule:addSellableItem({'wand of decay'}, 2188, 1000, 'wand of decay') shopModule:addSellableItem({'wand of draconia'}, 8921500, 'wand of draconia') shopModule:addSellableItem({'wand of cosmic energy'}, 2189, 2000, 'wand of casmic energy') shopModule:addSellableItem({'wand of inferno'}, 2187, 3000, 'wand of inferno') shopModule:addSellableItem({'wand of starstorm'}, 8920, 3600, 'wand of starstorm') shopModule:addSellableItem({'wand of voodoo'}, 8922, 4400, 'wand of voodoo') shopModule:addSellableItem({'life crystal'}, 2177, 50, 'life crystal') shopModule:addSellableItem({'magic light wand'}, 2162, 35, 'magic light wand') shopModule:addSellableItem({'mind stone'}, 2178, 100, 'mind stone') shopModule:addSellableItem({'orb'}, 2176, 750, 'orb') shopModule:addBuyableItem({'magic light wand'}, 2162, 120, 'magic light wand') shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 'dragon hammer') shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword') shopModule:addSellableItem({'knight axe'}, 2430, 2000, 'knight axe') shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger') shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar') shopModule:addSellableItem({'serpent sword'}, 2409, 900, 'serpent sword') shopModule:addSellableItem({'skull staff'}, 2436, 6000, 'skull staff') shopModule:addSellableItem({'dark armor'}, 2489, 400, 'dark armor') shopModule:addSellableItem({'knight armor'}, 2476, 5000, 'knight armor') shopModule:addSellableItem({'dark helmet'}, 2490, 250, 'dark helmet') shopModule:addSellableItem({'mystic turban'}, 2663, 150, 'mystic turban') shopModule:addSellableItem({'strange helmet'}, 2479, 500, 'strange helmet') shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 'warrior helmet') shopModule:addSellableItem({'knight legs'}, 2477, 5000, 'knight legs') shopModule:addSellableItem({'ancient shield'}, 2532, 900, 'ancient shield') shopModule:addSellableItem({'black shield'}, 2529, 800, 'black shield') shopModule:addSellableItem({'tower shield'}, 2528, 8000, 'tower shield') shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 'vamire shield') shopModule:addBuyableItem({'ice rapier'}, 2396, 5000, 'ice rapier') shopModule:addBuyableItem({'serpent sword'}, 2409, 6000, 'serpent sword') shopModule:addBuyableItem({'dark armor'}, 2489, 1500, 'dark armor') shopModule:addBuyableItem({'dark helmet'}, 2490, 1000, 'dark helmet') shopModule:addBuyableItem({'ancient shield'}, 2532, 5000, 'ancient shield') shopModule:addSellableItem({'snakebite rod'}, 2182, 100, 'snakebite rod') shopModule:addSellableItem({'moonlight rod'}, 2186, 200, 'moonlight rod') shopModule:addSellableItem({'necrotic rod'}, 2185, 1000, 'necrotic rod') shopModule:addSellableItem({'northwind rod'}, 8911, 1500, 'northwind rod') shopModule:addSellableItem({'terra rod'}, 2181, 2000, 'terra rod') shopModule:addSellableItem({'hailstorm rod'}, 2183, 3000, 'hailstorm rod') shopModule:addSellableItem({'springsprout rod'}, 8912, 3600, 'springsprout rod') shopModule:addSellableItem({'underworld rod'}, 8910, 4400, 'underworld rod') shopModule:addSellableItem({'ankh'}, 2193, 100, 'ankh') shopModule:addSellableItem({'mysterious fetish'}, 2194, 50, 'mysterious fetish') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Jewelry Seller; Nesta npc é possivel vender jóias: Chantalle.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Chantalle" script="data/npc/scripts/Jewelry.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="140" head="79" body="34" legs="56" feet="111" addons="1"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hi my name is Chantalle, |PLAYERNAME]! I could offer you jewelry, just ask me to {trade}." /> <parameter key="message_farewell" value="Goodbye, do you also love jewelry? |PLAYERNAME|." /> <parameter key="message_walkaway" value="See you around with my jewelry I hope." /> </parameters> </npc> Jewelry.lua 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) shopModule:addSellableItem({'white pearl'}, 2143, 160, 'white pearl') shopModule:addSellableItem({'black pearl'}, 2144, 280, 'black pearl') shopModule:addSellableItem({'small diamond'}, 2145, 300, 'small diamond') shopModule:addSellableItem({'small sapphire'}, 2146, 250, 'small sapphire') shopModule:addSellableItem({'small ruby'}, 2147, 250, 'small ruby') shopModule:addSellableItem({'small emerald'}, 2149, 250, 'small emerald') shopModule:addSellableItem({'small amethyst'}, 2150, 200, 'small amethyst') shopModule:addSellableItem({'talon'}, 2151, 320, 'talon') shopModule:addBuyableItem({'white pearl'}, 2143, 320, 'white pearl') shopModule:addBuyableItem({'black pearl'}, 2144, 560, 'black pearl') shopModule:addBuyableItem({'small diamond'}, 2145, 600, 'small diamond') shopModule:addBuyableItem({'small sapphire'}, 2146, 500, 'small sapphire') shopModule:addBuyableItem({'small ruby'}, 2147, 500, 'small ruby') shopModule:addBuyableItem({'small emerald'}, 2149, 500, 'small emerald') shopModule:addBuyableItem({'small amethyst'}, 2150, 400, 'small amethyst') shopModule:addBuyableItem({'bronze goblet'}, 5807, 2000, 'bronze goblet') shopModule:addBuyableItem({'silver goblet'}, 5806, 3000, 'silver goblet') shopModule:addBuyableItem({'golden goblet'}, 5805, 5000, 'golden goblet') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Necklaces Seller; Nesta npc é possivel comprar amulets: Billy.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Billy" script="data/npc/scripts/necklaces.lua" walkinterval="0" floorchange="0"> <health now="100" max="100"/> <look type="153" head="97" body="121" legs="97" feet="115" addons="1"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Welcome |PLAYERNAME]! My name is Billy. May I help you with a {trade}?" /> <parameter key="message_farewell" value="Goodbye and good luck with your necklaces, |PLAYERNAME|." /> <parameter key="message_walkaway" value="Goodbye and good luck with your necklaces." /> </parameters> </npc> Necklaces.lua 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) shopModule:addBuyableItem({'amulet of loss'}, 2173, 50000, 'amulet of loss') shopModule:addBuyableItem({'protection amulet'}, 2200, 700, 'protection amulet') shopModule:addBuyableItem({'ruby necklace'}, 2133, 3560, 'ruby necklace') shopModule:addBuyableItem({'dragon necklace'}, 2201, 1000, 'dragon necklace') shopModule:addBuyableItem({'garlic necklace'}, 2199, 100, 'garlic necklace') shopModule:addBuyableItem({'golden amulet'}, 2130, 6600, 'golden amulet') shopModule:addBuyableItem({'scarf'}, 2661, 15, 'scarf') shopModule:addBuyableItem({'bronze amulet'}, 2172, 100, 'bronze amulet') shopModule:addBuyableItem({'elven amulet'}, 2198, 500, 'elven amulet') shopModule:addBuyableItem({'protection amulet'}, 2200, 700, 'protection amulet') shopModule:addBuyableItem({'silver amulet'}, 2198, 100, 'silver amulet') shopModule:addBuyableItem({'strange talisman'}, 2161, 100, 'strange talisman') shopModule:addSellableItem({'crystal necklace'}, 2123, 400, 'crystal necklace') shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 'ruby necklace') shopModule:addSellableItem({'dragon necklace'}, 2201, 100, 'dragon necklace') shopModule:addSellableItem({'garlic necklace'}, 2199, 50, 'garlic necklace') shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 'ancient amulet') shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 'demonbone amulet') shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 'scarab amulet') shopModule:addSellableItem({'bronze amulet'}, 2172, 50, 'bronze amulet') shopModule:addSellableItem({'elven amulet'}, 2198, 100, 'elven amulet') shopModule:addSellableItem({'glacier amulet'}, 7888, 1500, 'glacier amulet') shopModule:addSellableItem({'protection amulet'}, 2200, 100, 'protection amulet') shopModule:addSellableItem({'silver amulet'}, 2170, 50, 'silver amulet') shopModule:addSellableItem({'strange talisman'}, 2161, 30, 'strange talisman') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Atenção! Eu não pude testa-los ainda! Eu farei isto quando meu OT estiver rodando, mas esses Npcs são basicos e acredito que funcionarão perfeitamente. Eles poder ser muito bem copiados, os npcs podem ser colacados em seu server junto aos npcs basicos. Espero que gostem! Eles podem ser melhorados assim que me repassarem os bugs. Em poucos dias estarei hostiando meu server, e você podera testar os npcs . Eu desejo-lhes uma boa sorte com os npcs! Assim que novos npcs forem adicionados no tópico original eu vou atualizando para vocês! Agradeço a atenção... Bom Proveito!!! npc.rar -
Eu sei que se trata do Yorots mas não gosto dessas edições noobs que colocam mudando o tema como gelo, desert, etc. E não sei se vão concordar comigo mas quem joga ot a um tempo ja deve tar de saco cheio de Yorots =/
-
Ambos os mapas estão precarios! Eu não participo desses concursos porque até agora não entendi oque o usuario ganha além de criticas de alguem que se diz melhor do que ele! Acredito que seria mais produtivo que eles postassem os mapas e todos poderiam avaliar! A propósito quem avalia os mapas? É apenas uma pessoa?
-
Não seria melhor parar com as discuções no tópico!? Se for para bringar é melhor usar Mp para que todos não precisem ver a este "espetaculo"... E o Shynzo esta certo! É proibido a postagem/divulgação do nome de outros foruns no XTibia, procure ler as regras! @Topic Mapa muito mal feito! Não gostei... Boa sorte e pode melhorar.
-
[npc] Pack Para Tfs ~ Last Update 27/12
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Lixeira Pública
Reservado para futuros npcs! -
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 shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 1, 'dragon scale mail') shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 1, 'dwarven armor') shopModule:addSellableItem({'glacier rope'}, 7897, 11000, 1, 'glacier rope') shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1, 'golden armor') shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1, 'hibiscus dress') shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 1, 'leopard armor') shopModule:addSellableItem({'lightning robe'}, 7898, 11000, 1, 'lightning robe') shopModule:addSellableItem({'magma coat'}, 7899, 11000, 1, 'magma coat') shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 1, 'mammoth fur cape') shopModule:addSellableItem({'paladin armor'}, 8891, 15000, 1, 'paladin armor') shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 1, 'pirate shirt') shopModule:addSellableItem({'skullcracker armor'}, 8889, 18000, 1, 'skullcracker armor') shopModule:addSellableItem({'terra mantle'}, 7884, 11000, 1, 'terra mantle') shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1, 'glacier kilt') shopModule:addSellableItem({'ligtning legs'}, 7895, 11000, 1, 'lightning legs') shopModule:addSellableItem({'magma legs'}, 7894, 11000, 1, 'magma legs') shopModule:addSellableItem({'mammoth fur short'}, 7464, 850, 1, 'mammoth fur shorts') shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1, 'pirate knee breeches') shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1, 'terra legs') shopModule:addSellableItem({'bone shield'}, 2541, 80, 1, 'bone shield') shopModule:addSellableItem({'dark shield'}, 2521, 400, 1, 'dark shield') shopModule:addSellableItem({'demon shield'}, 2520, 30000, 1, 'demon shield') shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1, 'medusa shield') shopModule:addSellableItem({'nore shield'}, 7460, 1500, 1, 'norse shield') shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 1, 'scarab shield') shopModule:addSellableItem({'spellbook of enlightenment'}, 4000, 8900, 1, 'spellbook of enlightenment') shopModule:addSellableItem({'tortoise shield'}, 6131, 150, 1, 'tortoise shield') shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 1, 'beholder helmet') shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1, 'devil helmet') shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1, 'glacier mask') shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1, 'krimhorn helmet') shopModule:addSellableItem({'lightning headband'}, 7901, 2500, 1, 'lightning headband') shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1, 'magma monocle') shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1, 'pirate hat') shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1, 'ragnir helmet') shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1, 'skull helmet') shopModule:addSellableItem({'terra hood'}, 7903, , 1, 'terra hood') shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 1, 'crocodile boots') shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1, 'fur boots') shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1, 'glacier shoes') shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1, 'lightning boots') shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1, 'magma boots') shopModule:addSellableItem({'patched boots'}, 2641, 2000, 1, 'patched boots') shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 1, 'pirate boots') shopModule:addSellableItem({'steel boots'}, 2645, 30000, 1, 'steel boots') shopModule:addSellableItem({'terra boots'}, 7886, 2500, 1, 'terra boots') shopModule:addSellableItem({'amber staff'}, 7426, 8000, 1, 'amber staff') shopModule:addSellableItem({'beatslayer axe'}, 3962, 1500, 1, 'beatslayer axe') shopModule:addSellableItem({'brutetamer's staff'}, 7379, 1500, 1, 'brutetamer's staff') shopModule:addSellableItem({'chaos mace'}, 7427, 12000, 1, 'chaos mace') shopModule:addSellableItem({'cranial basher'}, 7415, 30000, 1, 'cranial basher') shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1, 'crystal sword') shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 1, 'daramanian mace') shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 1, 'daramanian waraxe') shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 1, 'demonrage sword') shopModule:addSellableItem({'diamond sceptre'}, 7387, 3000, 1, 'diamond sceptre') shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'dragonbone staff'}, 7430, 3000, 1, 'dragonbone staff') shopModule:addSellableItem({'dreaded cleaver'}, 7419, 10000, 1, 'dreaded cleaver') shopModule:addSellableItem({'furry club'}, 7432, 1000, 1, 'furry club') shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1, 'guardian halberd') shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1, 'heavy machete') shopModule:addSellableItem({'heroic axe'}, 7389, 30000, 1, 'heroic axe') shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1, 'lunar staff') shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 1, 'mammoth whopper') shopModule:addSellableItem({'mercenary sword'}, 7386, 12000, 1, 'mercenary sword') shopModule:addSellableItem({'mystic blade'}, 7384, 30000, 1, 'mystic blade') shopModule:addSellableItem({'nightmare blade'}, 7418, 35000, 1, 'nightmare blade') shopModule:addSellableItem({'noble axe'}, 7456, 6000, 1, 'noble axe') shopModule:addSellableItem({'ornamented axe'}, , 11000, 1, 'ornamented axe') shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1, 'relic sword') shopModule:addSellableItem({'ornamented axe'}, 7411, 11000, 1, 'ornamented axe') shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 1, 'sapphire hammer') shopModule:addSellableItem({'silver dagger'}, 2402, 500, 1, 'silver dagger') shopModule:addSellableItem({'taurus mace'}, 7425, 500, 1, 'taurus mace') shopModule:addSellableItem({'war axe'}, 2454, 9000, 1, 'war axe') shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 1, 'wyvern fang') shopModule:addSellableItem({'earth dragon slayer'}, 7858, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'energy dragon slayer'}, 7873, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'fiery dragon slayer'}, 7748, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'icy dragon slayer'}, 7767, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'earth mystic blade'}, 7856, 30000, 1, 'mystic blade') shopModule:addSellableItem({'energy mystic blade'}, 7871, 30000, 1, 'mystic blade') shopModule:addSellableItem({'fiery mystic blade'}, 7746, 30000, 1, 'mystic blade') shopModule:addSellableItem({'icy mystic blade'}, 7765, 30000, 1, 'mystic blade') shopModule:addSellableItem({'earth war axe'}, 2863, 9000, 1, 'war axe') shopModule:addSellableItem({'energy war axe'}, 2878, 9000, 1, 'war axe') shopModule:addSellableItem({'fiery war axe'}, 2753, 9000, 1, 'war axe') shopModule:addSellableItem({'icy war axe'}, 2772, 9000, 1, 'war axe') shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 1, 'ancient amulet') shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 1, 'crystal necklace') shopModule:addSellableItem({'crystal ring'}, 2124, 250, 1, 'crystal ring') shopModule:addSellableItem({'death ring'}, 6300, 1000, 1, 'death ring') shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 1, 'demonbone amulet') shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 1, 'emerald bangle') shopModule:addSellableItem({'golden ring'}, 2179, 8000, 1, 'golden ring') shopModule:addSellableItem({'platinum amulet'}, 2171, 2500, 1, 'platinum amulet') shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 1, 'ring of the sky') shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 1, 'ruby necklace') shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 1, 'scarab amulet') shopModule:addSellableItem({'silver brooch'}, 2134, 150, 1, 'silver brooch') shopModule:addSellableItem({'light shovel'}, 5710, 300, 1, 'light shovel') shopModule:addSellableItem({'doll'},2100 , 200, 1, 'doll') shopModule:addSellableItem({'pirate voodoo doll'}, 5810, 500, 1, 'pirate voodoo doll') shopModule:addSellableItem({'voodoo doll'}, 3955, 400, 1, 'voodoo doll') local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Créditos: Sentielo Este modelo segue o usado atualmente pelo Tfs! Veja mais aqui: http://www.xtibia.com/forum/npc-Pack-Tfs-U...12-t103541.html
-
[8.40]rme-remere's (ot Server)map Editor
tópico respondeu ao ivan-filho de MarcolinoGOD em Lixeira Pública
Ja existe um tópico fixo do Tio JV com o mesmo contéudo com eu disse no outro tópico! Procure procurar antes de postar... Reportado~ -
Ja existe um tópico fixo do Tio JV com o mesmo contéudo! Reportado~
-
Resultado do Teste: Seus pontos: 43 Voce é viciado no XTibia! seu coco!!! Eitah!!! Sou um dos mais viciado... Teste ta meio pequeno e sem noção!?
-
[npc] Pack Para Tfs ~ Last Update 27/12
tópico respondeu ao MarcolinoGOD de MarcolinoGOD em Lixeira Pública
.Este é os djinns do tibia Global reunidos em um npc só: Nah'Bob.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Nah'Bob" script="data/npc/scripts/Djinn.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="80" head="20" body="30" legs="40" feet="50" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello|PLAYERNAME]! I sell the djinn items. Just ask me for a {trade}." /> <parameter key="message_farewell" value="Goodbye. Thanks for trading with me |PLAYERNAME|." /> <parameter key="message_walkaway" value="Goodbye." /> </parameters> </npc> Djinn.lua 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 shopModule:addBuyableItem({'beholder shield'}, 2518, 7000, 1, 'beholder shield') shopModule:addBuyableItem({'noble armor'}, 2486, 8000, 1, 'noble armor') shopModule:addBuyableItem({'spike sword'}, 2383, 8000, 1, 'spike sword') shopModule:addBuyableItem({'war hammer'}, 2391, 10000, 1, 'war hammer') shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 1, 'beholder shield') shopModule:addSellableItem({'crown shield'}, 2519, 8000, 1, 'crown shield') shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 1, 'dragon shield') shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 1, 'guardian shield') shopModule:addSellableItem({'phoenix shield'}, 2539, 16000, 1, 'phoenix shield') shopModule:addSellableItem({'blue robe'}, 2656, 10000, 1, 'blue rope') shopModule:addSellableItem({'crown armor'}, 2487, 12000, 1, 'crown armor') shopModule:addSellableItem({'noble armor'}, 2486, 900, 1, 'noble armor') shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 1, 'boots of haste') shopModule:addSellableItem({'broad sword'}, 2413, 500, 1, 'broad sword') shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 1, 'dragon lance') shopModule:addSellableItem({'fire axe'}, 2432, 8000, 1, 'fire axe') shopModule:addSellableItem({'fire sword'}, 2392, 4000, 1, 'fire sword') shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 1, 'ice rapier') shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 1, 'obsidian lance') shopModule:addSellableItem({'spike sword'}, 2383, 1000, 1, 'spike sword') shopModule:addSellableItem({'war hammer'}, 2391, 1200, 1, 'war hammer') shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 1, 'crown helmet') shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 1, 'crusader helmet') shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 1, 'royal helmet') shopModule:addSellableItem({'crown legs'}, 2488, 12000, 1, 'crown legs') shopModule:addSellableItem({'earth spike sword'}, 7854, 1000, 1, 'spike sword') shopModule:addSellableItem({'energy spike sword'}, 7869, 1000, 1, 'spike sword') shopModule:addSellableItem({'fiery spike sword'}, 7744, 1000, 1, 'spike sword') shopModule:addSellableItem({'icy spike sword'}, 7763, 1000, 1, 'spike sword') shopModule:addSellableItem({'earth war hammer'}, 7868, 1200, 1, 'war hammer') shopModule:addSellableItem({'energy war hammer'}, 7883, 1200, 1, 'war hammer') shopModule:addSellableItem({'fiery war hammer'}, 7758, 1200, 1, 'war hammer') shopModule:addSellableItem({'icy war hammer'}, 7777, 1200, 1, 'war hammer') shopModule:addSellableItem({'wand of vortex'}, 2190, 100, 1, 'wand of vortex') shopModule:addSellableItem({'wand of dragonbreath'}, 2191, 200, 1, 'wand of dragonbreath') shopModule:addSellableItem({'wand of decay'}, 2188, 1000, 1, 'wand of decay') shopModule:addSellableItem({'wand of draconia'}, 8921, 1500, 1, 'wand of draconia') shopModule:addSellableItem({'wand of cosmic energy'}, 2189, 2000, 1, 'wand of casmic energy') shopModule:addSellableItem({'wand of inferno'}, 2187, 3000, 1, 'wand of inferno') shopModule:addSellableItem({'wand of starstorm'}, 8920, 3600, 1, 'wand of starstorm') shopModule:addSellableItem({'wand of voodoo'}, 8922, 4400, 1, 'wand of voodoo') shopModule:addSellableItem({'life crystal'}, 2177, 50, 1, 'life crystal') shopModule:addSellableItem({'magic light wand'}, 2162, 35, 1, 'magic light wand') shopModule:addSellableItem({'mind stone'}, 2178, 100, 1, 'mind stone') shopModule:addSellableItem({'orb'}, 2176, 750, 1, 'orb') shopModule:addBuyableItem({'magic light wand'}, 2162, 120, 1, 'magic light wand') shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 1, 'dragon hammer') shopModule:addSellableItem({'giant sword'}, 2393, 17000, 1, 'giant sword') shopModule:addSellableItem({'knight axe'}, 2430, 2000, 1, 'knight axe') shopModule:addSellableItem({'poison dagger'}, 2411, 50, 1, 'poison dagger') shopModule:addSellableItem({'scimitar'}, 2419, 150, 1, 'scimitar') shopModule:addSellableItem({'serpent sword'}, 2409, 900, 1, 'serpent sword') shopModule:addSellableItem({'skull staff'}, 2436, 6000, 1, 'skull staff') shopModule:addSellableItem({'dark armor'}, 2489, 400, 1, 'dark armor') shopModule:addSellableItem({'knight armor'}, 2476, 5000, 1, 'knight armor') shopModule:addSellableItem({'dark helmet'}, 2490, 250, 1, 'dark helmet') shopModule:addSellableItem({'mystic turban'}, 2663, 150, 1, 'mystic turban') shopModule:addSellableItem({'strange helmet'}, 2479, 500, 1, 'strange helmet') shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 1, 'warrior helmet') shopModule:addSellableItem({'knight legs'}, 2477, 5000, 1, 'knight legs') shopModule:addSellableItem({'ancient shield'}, 2532, 900, 1, 'ancient shield') shopModule:addSellableItem({'black shield'}, 2529, 800, 1, 'black shield') shopModule:addSellableItem({'tower shield'}, 2528, 8000, 1, 'tower shield') shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 1, 'vamire shield') shopModule:addBuyableItem({'ice rapier'}, 2396, 5000, 1, 'ice rapier') shopModule:addBuyableItem({'serpent sword'}, 2409, 6000, 1, 'serpent sword') shopModule:addBuyableItem({'dark armor'}, 2489, 1500, 1, 'dark armor') shopModule:addBuyableItem({'dark helmet'}, 2490, 1000, 1, 'dark helmet') shopModule:addBuyableItem({'ancient shield'}, 2532, 5000, 1, 'ancient shield') shopModule:addSellableItem({'snakebite rod'}, 2182, 100, 1, 'snakebite rod') shopModule:addSellableItem({'moonlight rod'}, 2186, 200, 1, 'moonlight rod') shopModule:addSellableItem({'necrotic rod'}, 2185, 1000, 1, 'necrotic rod') shopModule:addSellableItem({'northwind rod'}, 8911, 1500, 1, 'northwind rod') shopModule:addSellableItem({'terra rod'}, 2181, 2000, 1, 'terra rod') shopModule:addSellableItem({'hailstorm rod'}, 2183, 3000, 1, 'hailstorm rod') shopModule:addSellableItem({'springsprout rod'}, 8912, 3600, 1, 'springsprout rod') shopModule:addSellableItem({'underworld rod'}, 8910, 4400, 1, 'underworld rod') shopModule:addSellableItem({'ankh'}, 2193, 100, 1, 'ankh') shopModule:addSellableItem({'mysterious fetish'}, 2194, 50, 1, 'mysterious fetish') local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Assim que novos npcs forem adicionados no tópico original eu vou atualizando para vocês! Estou tentando criar os arquivos bases para os npcs com os looktypes originais! Agradeço a atenção... Bom Proveito!!! -
Espero que gostem deste pack que encontrem rodando pela net e que possam entender minha tradução que embora não esteja totalmente coerente ao texto original, esta bem "legivel"! Créditos: Sentielo 95% (Arquivos .lua) Albert José 5% (Base dos npcs, tradução, looktype tibia rl, adicionar fotos e organização do tópico) Agora é a hora que você escolhe se vai ter o trabalho de copiar e colar tudo isso abaixo ou simplesmente baixar o pack feito por mim!? Não vou colocar Scan, assim que alguem o fizer edito o tópico colocando o mesmo aqui. Download (Escolha o host de sua preferencia!): 4Shared XTibia Downloads Speedy Share Olá, Hoje, eu estava trabalhando em meu OT e decidi publicar meus npcs para vcs, espero que sejam uteis para vocês tambem. Irei postar mais NPCs Assim que for concluindo os mesmos. Aqui esta: .Este npc vende bags,backpacks e alguns tools como ropes, shovels etc. Lubo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Lubo" script="data/npc/scripts/Tools.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="1" body="39" legs="96" feet="120" addons="3"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hello, are you looking for adventure |PLAYERNAME]! I sell things you probably need to get in deep dungeons, just ask me for a {trade}." /> <parameter key="message_farewell" value="Goodbye, good luck on your adventure |PLAYERNAME|." /> <parameter key="message_walkaway" value="Kidd, please watch out for the deeper dungeons!" /> </parameters> </npc> Tools.lua 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) shopModule:addBuyableItem({'brown bag'}, 1987, 20, 1, 'brown bag') shopModule:addBuyableItem({'brown backpack'}, 1988, 20, 1, 'brown backpack') shopModule:addBuyableItem({'basket'}, 1989, 6, 1, 'basket') shopModule:addBuyableItem({'present box'}, 1990, 20, 1, 'present box') shopModule:addBuyableItem({'green bag'}, 1991, 5, 1, 'green bag') shopModule:addBuyableItem({'yellow bag'}, 1992, 5, 1, 'yellow bag') shopModule:addBuyableItem({'red bag'}, 1993, 5, 1, 'red bag') shopModule:addBuyableItem({'purple bag'}, 1994, 5, 1, 'purple bag') shopModule:addBuyableItem({'blue bag'}, 1995, 5, 1, 'blue bag') shopModule:addBuyableItem({'grey bag'}, 1996, 5, 1, 'grey bag') shopModule:addBuyableItem({'golden bag'}, 1997, 5, 1, 'golden bag') shopModule:addBuyableItem({'green backpack'}, 1998, 20, 1, 'green backpack') shopModule:addBuyableItem({'yellow backpack'}, 1999, 20, 1, 'yellow backpack') shopModule:addBuyableItem({'red backpack'}, 2000, 20, 1, 'red backpack') shopModule:addBuyableItem({'purple backpack'}, 2001, 20, 1, 'purple backpack') shopModule:addBuyableItem({'blue backpack'}, 2002, 20, 1, 'blue backpack') shopModule:addBuyableItem({'grey backpack'}, 2003, 20, 1, 'grey backpack') shopModule:addBuyableItem({'golden backpack'}, 2004, 20, 1, 'golden backpack') shopModule:addBuyableItem({'beach backpack'}, 5949, 20, 1, 'beach backpack') shopModule:addBuyableItem({'beach bag'}, 5950, 20, 1, 'beach bag') shopModule:addBuyableItem({'camouflage bag'}, 3939, 20, 1, 'camouflage bag') shopModule:addBuyableItem({'camouflage backpack'}, 3940, 20, 1, 'camouflage backpack') shopModule:addBuyableItem({'pirate backpack'}, 5926, 20, 1, 'pirate backpack') shopModule:addBuyableItem({'pirate bag'}, 5927, 5, 1, 'pirate bag') shopModule:addBuyableItem({'fur backpack'}, 7342, 20, 1, 'fur backpack') shopModule:addBuyableItem({'fur bag'}, 7343, 20, 1, 'fur bag') shopModule:addBuyableItem({'rope'}, 2120, 50, 1, 'rope') shopModule:addBuyableItem({'scythe'}, 2550, 50, 1, 'scythe') shopModule:addBuyableItem({'pick'}, 2553, 50, 1, 'pick') shopModule:addBuyableItem({'shovel'}, 2554, 50, 1, 'shovel') shopModule:addBuyableItem({'fishing rod'}, 2580, 150, 1, 'fishing rod') shopModule:addBuyableItem({'worms'}, 3976, 1, 1, 'worms') shopModule:addBuyableItem({'torch'}, 2150, 2, 1, 'torch') shopModule:addBuyableItem({'football'}, 2190, 111, 1, 'football') shopModule:addBuyableItem({'watch'}, 2036, 20, 1, 'watch') shopModule:addSellableItem({'rope'}, 2120, 8, 1, 'rope') shopModule:addSellableItem({'shovel'}, 2554, 8, 1, 'shovel') shopModule:addSellableItem({'scythe'}, 2550, 10, 1, 'scythe') shopModule:addSellableItem({'pick'}, 2553, 15, 1, 'pick') shopModule:addSellableItem({'fishing rod'}, 2580, 40, 1, 'fishing rod') shopModule:addSellableItem({'watch'}, 2036, 6, 1, 'watch') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Um npc que vende todos tipos dos alimentos e um cookbook pela causa , porém não cosinha! Frodo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Frodo" script="data/npc/scripts/Food.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="58" body="68" legs="129" feet="115" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hi |PLAYERNAME]. Ask me for a {trade} if you want to buy some food." /> <parameter key="message_farewell" value="Goodbye and bon a petit! |PLAYERNAME|." /> <parameter key="message_walkaway" value="Bye... Don't you like my food?" /> </parameters> </npc> Food.lua 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) shopModule:addBuyableItem({'meat'}, 2666, 5, 1, 'meat') shopModule:addBuyableItem({'fish'}, 2667, 5, 1, 'fish') shopModule:addBuyableItem({'salmon'}, 2668, 5, 1, 'salmon') shopModule:addBuyableItem({'ham'}, 2671, 8, 1, 'ham') shopModule:addBuyableItem({'dragon ham'}, 2672, 25, 1, 'dragon ham') shopModule:addBuyableItem({'pear'}, 2673, 4, 1, 'pear') shopModule:addBuyableItem({'red apple'}, 2674, 3, 1, 'red apple') shopModule:addBuyableItem({'orange'}, 2675, 10, 1, 'orange') shopModule:addBuyableItem({'banana'}, 2676, 3, 1, 'banana') shopModule:addBuyableItem({'blueberry'}, 2677, 1, 1, 'blueberry') shopModule:addBuyableItem({'cherry'}, 2679, 1, 1, 'cherry') shopModule:addBuyableItem({'strawberry'}, 2680, 1, 1, 'strawberry') shopModule:addBuyableItem({'grape'}, 2680, 3, 1, 'grape') shopModule:addBuyableItem({'melon'}, 2682, 8, 1, 'melon') shopModule:addBuyableItem({'pumpkin'}, 2683, 10, 1, 'pumpkin') shopModule:addBuyableItem({'carrot'}, 2684, 3, 1, 'carrot') shopModule:addBuyableItem({'tomato'}, 2685, 5, 1, 'tomato') shopModule:addBuyableItem({'corncob'}, 2686, 3, 1, 'corncob') shopModule:addBuyableItem({'cookie'}, 2687, 2, 1, 'cookie') shopModule:addBuyableItem({'bread'}, 2689, 4, 1, 'bread') shopModule:addBuyableItem({'roll'}, 2690, 2, 1, 'roll') shopModule:addBuyableItem({'brown bread'}, 2691, 3, 1, 'brown bread') shopModule:addBuyableItem({'egg'}, 2695, 2, 1, 'egg) shopModule:addBuyableItem({'cheese'}, 2696, 2, 1, 'cheese') shopModule:addBuyableItem({'white mushroom'}, 2787, 6, 1, 'white mushroom') shopModule:addBuyableItem({'red mushroom'}, 2788, 12, 1, 'red mushroom') shopModule:addBuyableItem({'brown mushroom'}, 2789, 10, 1, 'brown mushroom') shopModule:addBuyableItem({'valentine cake'}, 6393, 6, 1, 'valentine cake') shopModule:addBuyableItem({'cookbook'}, 2347, 150, 1, 'cookbook') shopModule:addSellableItem({'meat'}, 2666, 2, 1, 'meat') shopModule:addSellableItem({'salmon'}, 2668, 2, 1, 'salmon') shopModule:addSellableItem({'bread'}, 2689, 2, 1, 'bread') shopModule:addSellableItem({'ham'}, 2671, 4, 1, 'ham') shopModule:addBuyableItem({'blueberry'}, 2677, 1, 5, 'blueberry') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Um Npc que vende addons por itens e compra blessed wooden stake. Kalvin.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Kalvin" script="data/npc/scripts/Kalvin.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="132" head="115" body="121" legs="120" feet="126" addons="3"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Welcome |PLAYERNAME]! I am Verkhall and I sell all {addons}." /> <parameter key="message_farewell" value="Goodbye |PLAYERNAME|. I hope I improved your outfit." /> <parameter key="message_walkaway" value="Goodbye." /> </parameters> </npc> Addonpiece.lua keywordHandler = KeywordHandler:new() npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- Storage IDs -- citizen = 22001 hunter = 22003 mage = 22005 knight = 22007 nobleman = 22009 summoner = 22011 warrior = 22013 barbarian = 22015 druid = 22017 wizard = 22019 oriental = 22021 pirate = 22023 assassin = 22025 beggar = 22027 shaman = 22029 norseman = 22031 nightmare = 22033 jester = 22035 brotherhood = 22037 yalaharian = 22039 newaddon = 'Here you are, enjoy your brand new addon!' noitems = 'You do not have all the required items.' noitems2 = 'You do not have all the required items or you do not have the first addon, which by the way, is a requirement for this addon.' already = 'It seems you already have this addon, don\'t you try to mock me son!' -- CITIZEN START -- function CitizenFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,citizen) if addon == -1 then if getPlayerItemCount(cid,5878) >= 100 then if doPlayerRemoveItem(cid,5878,100) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 128, 1) doPlayerAddOutfit(cid, 136, 1) setPlayerStorageValue(cid,citizen,1) end else selfSay(noitems) end else selfSay(already) end end end function CitizenSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,citizen+1) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 128, 2) doPlayerAddOutfit(cid, 136, 2) setPlayerStorageValue(cid,citizen+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- CITIZEN END -- -- HUNTER START -- function HunterFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,hunter) if addon == -1 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) >= 1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 129, 1) doPlayerAddOutfit(cid, 137, 2) setPlayerStorageValue(cid,hunter,1) end else selfSay(noitems) end else selfSay(already) end end end function HunterSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,hunter+1) if addon == -1 then if getPlayerItemCount(cid,5875) >= 1 then if doPlayerRemoveItem(cid,5875,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 129, 2) doPlayerAddOutfit(cid, 137, 1) setPlayerStorageValue(cid,hunter+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- HUNTER END -- -- MAGE START -- function MageFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,mage) if addon == -1 then if getPlayerSex(cid) == 0 then if getPlayerItemCount(cid,5958) >= 1 then if doPlayerRemoveItem(cid,5958,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 141, 1) doPlayerAddOutfit(cid, 130, 1) setPlayerStorageValue(cid,mage,1) end else selfSay(noitems) end elseif getPlayerSex(cid) == 1 then if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 130, 1) doPlayerAddOutfit(cid, 141, 1) setPlayerStorageValue(cid,mage,1) end else selfSay(noitems) end end else selfSay(already) end end end function MageSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,mage+1) if addon == -1 then if getPlayerSex(cid) == 0 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 141, 2) doPlayerAddOutfit(cid, 130, 2) setPlayerStorageValue(cid,mage+1,1) end else selfSay(noitems) end elseif getPlayerSex(cid) == 1 then if getPlayerItemCount(cid,5903) >= 1 then if doPlayerRemoveItem(cid,5903,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 130, 2) doPlayerAddOutfit(cid, 141, 2) setPlayerStorageValue(cid,mage+1,1) end else selfSay(noitems) end end else selfSay(already) end end end -- MAGE END -- -- KNIGHT START -- function KnightFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,knight) if addon == -1 then if getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5880) >= 100 then if doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5880,100) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 131, 1) doPlayerAddOutfit(cid, 139, 1) setPlayerStorageValue(cid,knight,1) end else selfSay(noitems) end else selfSay(already) end end end function KnightSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,knight+1) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 131, 2) doPlayerAddOutfit(cid, 139, 2) setPlayerStorageValue(cid,knight+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- KNIGHT END -- -- NOBLEMAN START -- function NoblemanFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if isPremium(cid) then addon = getPlayerStorageValue(cid,nobleman) if addon == -1 then if player_money >= 150000 then if doPlayerRemoveMoney(cid,150000) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 132, 1) doPlayerAddOutfit(cid, 140, 1) setPlayerStorageValue(cid,nobleman,1) end else selfSay(noitems) end else selfSay(already) end end end function NoblemanSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if isPremium(cid) then addon = getPlayerStorageValue(cid,nobleman+1) if addon == -1 then if player_money >= 150000 then if doPlayerRemoveMoney(cid,150000) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 132, 2) doPlayerAddOutfit(cid, 140, 2) setPlayerStorageValue(cid,nobleman+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- NOBLEMAN END -- -- YALAHARIAN START -- function YalaharianFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if isPremium(cid) then addon = getPlayerStorageValue(cid,yalaharian) if addon == -1 then if player_money >= 150000 then if doPlayerRemoveMoney(cid,150000) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 325, 1) doPlayerAddOutfit(cid, 324, 1) setPlayerStorageValue(cid,yalaharian,1) end else selfSay(noitems) end else selfSay(already) end end end function YalaharianSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if isPremium(cid) then addon = getPlayerStorageValue(cid,yalaharian+1) if addon == -1 then if player_money >= 150000 then if doPlayerRemoveMoney(cid,150000) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 325, 2) doPlayerAddOutfit(cid, 324, 2) setPlayerStorageValue(cid,yalaharian+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- YALAHARIAN end -- -- SUMMONER START -- function SummonerFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,summoner) if addon == -1 then if getPlayerSex(cid) == 1 then if getPlayerItemCount(cid,5958) >= 1 then if doPlayerRemoveItem(cid,5958,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 133, 1) doPlayerAddOutfit(cid, 138, 1) setPlayerStorageValue(cid,summoner,1) end else selfSay(noitems) end elseif getPlayerSex(cid) == 0 then if getPlayerItemCount(cid,2181) >= 1 and getPlayerItemCount(cid,2182) >= 1 and getPlayerItemCount(cid,2183) >= 1 and getPlayerItemCount(cid,2185) >= 1 and getPlayerItemCount(cid,2186) >= 1 and getPlayerItemCount(cid,2187) >= 1 and getPlayerItemCount(cid,2188) >= 1 and getPlayerItemCount(cid,2189) >= 1 and getPlayerItemCount(cid,2190) >= 1 and getPlayerItemCount(cid,2191) >= 1 and getPlayerItemCount(cid,5904) >= 10 and getPlayerItemCount(cid,2193) >= 20 and getPlayerItemCount(cid,5809) >= 1 then if doPlayerRemoveItem(cid,2181,1) and doPlayerRemoveItem(cid,2182,1) and doPlayerRemoveItem(cid,2183,1) and doPlayerRemoveItem(cid,2185,1) and doPlayerRemoveItem(cid,2186,1) and doPlayerRemoveItem(cid,2187,1) and doPlayerRemoveItem(cid,2188,1) and doPlayerRemoveItem(cid,2189,1) and doPlayerRemoveItem(cid,2190,1) and doPlayerRemoveItem(cid,2191,1) and doPlayerRemoveItem(cid,5904,10) and doPlayerRemoveItem(cid,2193,20) and doPlayerRemoveItem(cid,5809,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 133, 1) doPlayerAddOutfit(cid, 138, 1) setPlayerStorageValue(cid,summoner,1) end else selfSay(noitems) end end else selfSay(already) end end end function SummonerSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,summoner+1) if addon == -1 then if getPlayerSex(cid) == 1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 133, 2) doPlayerAddOutfit(cid, 138, 2) setPlayerStorageValue(cid,summoner+1,1) end else selfSay(noitems) end elseif getPlayerSex(cid) == 0 then if getPlayerItemCount(cid,5903) >= 1 then if doPlayerRemoveItem(cid,5903,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 133, 2) doPlayerAddOutfit(cid, 138, 2) setPlayerStorageValue(cid,summoner+1,1) end else selfSay(noitems) end end else selfSay(already) end end end -- SUMMONER END -- -- WARRIOR START -- function WarriorFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,warrior) if addon == -1 then if getPlayerItemCount(cid,5925) >= 100 and getPlayerItemCount(cid,5899) >= 100 and getPlayerItemCount(cid,5884) >= 1 and getPlayerItemCount(cid,5919) >= 1 then if doPlayerRemoveItem(cid,5925,100) and doPlayerRemoveItem(cid,5899,100) and doPlayerRemoveItem(cid,5884,1) and doPlayerRemoveItem(cid,5919,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 134, 1) doPlayerAddOutfit(cid, 142, 1) setPlayerStorageValue(cid,warrior,1) end else selfSay(noitems) end else selfSay(already) end end end function WarriorSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,warrior+1) if addon == -1 then if getPlayerItemCount(cid,5887) >= 1 and getPlayerItemCount(cid,5880) >= 100 then if doPlayerRemoveItem(cid,5887,1) and doPlayerRemoveItem(cid,5880,100) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 134, 2) doPlayerAddOutfit(cid, 142, 2) setPlayerStorageValue(cid,warrior+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- WARRIOR END -- -- BARBARIAN START -- function BarbarianFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,barbarian) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 143, 2) doPlayerAddOutfit(cid, 147, 2) setPlayerStorageValue(cid,barbarian,1) end else selfSay(noitems) end else selfSay(already) end end end function BarbarianSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,barbarian+1) if addon == -1 then if getPlayerItemCount(cid,5880) >= 100 and getPlayerItemCount(cid,5892) >= 1 and getPlayerItemCount(cid,5893) >= 50 and getPlayerItemCount(cid,5876) >= 50 and getPlayerStorageValue(cid,barbarian) then if doPlayerRemoveItem(cid,5880,100) and doPlayerRemoveItem(cid,5892,1) and doPlayerRemoveItem(cid,5893,50) and doPlayerRemoveItem(cid,5876,50) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 143, 1) doPlayerAddOutfit(cid, 147, 1) setPlayerStorageValue(cid,barbarian+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- BARBARIAN END -- -- DRUID START -- function DruidFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,druid) if addon == -1 then if getPlayerItemCount(cid,5897) >= 50 and getPlayerItemCount(cid,5896) >= 50 then if doPlayerRemoveItem(cid,5897,50) and doPlayerRemoveItem(cid,5896,50) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 144, 1) doPlayerAddOutfit(cid, 148, 1) setPlayerStorageValue(cid,druid,1) end else selfSay(noitems) end else selfSay(already) end end end function DruidSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,druid+1) if addon == -1 then if getPlayerItemCount(cid,5937) >= 1 and getPlayerItemCount(cid,5938) >= 1 and getPlayerItemCount(cid,5906) >= 100 and getPlayerItemCount(cid,5942) >= 1 and getPlayerItemCount(cid,5940) >= 1 then if doPlayerRemoveItem(cid,5937,1) and doPlayerRemoveItem(cid,5938,1) and doPlayerRemoveItem(cid,5906,100) and doPlayerRemoveItem(cid,5942,1) and doPlayerRemoveItem(cid,5940,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 144, 2) doPlayerAddOutfit(cid, 148, 2) setPlayerStorageValue(cid,druid+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- DRUID END -- -- WIZARD START -- function WizardFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,wizard) if addon == -1 then if getPlayerItemCount(cid,2488) >= 1 and getPlayerItemCount(cid,2123) >= 1 and getPlayerItemCount(cid,2492) >= 1 and getPlayerItemCount(cid,2536) >= 1 then if doPlayerRemoveItem(cid,2488,1) and doPlayerRemoveItem(cid,2123,1) and doPlayerRemoveItem(cid,2492,1) and doPlayerRemoveItem(cid,2536,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 145, 2) doPlayerAddOutfit(cid, 149, 2) setPlayerStorageValue(cid,wizard,1) end else selfSay(noitems) end else selfSay(already) end end end function WizardSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,wizard+1) if addon == -1 then if getPlayerItemCount(cid,5922) >= 50 and getPlayerStorageValue(cid,wizard) then if doPlayerRemoveItem(cid,5922,50) and getPlayerStorageValue(cid,wizard) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 145, 1) doPlayerAddOutfit(cid, 149, 1) setPlayerStorageValue(cid,wizard+1,1) end else selfSay(noitems2) end else selfSay(already) end end end -- WIZARD END -- -- ORIENTAL START -- function OrientalFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,oriental) if addon == -1 then if getPlayerItemCount(cid,5945) >= 1 then if doPlayerRemoveItem(cid,5945,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 146, 1) doPlayerAddOutfit(cid, 150, 1) setPlayerStorageValue(cid,oriental,1) end else selfSay(noitems) end else selfSay(already) end end end function OrientalSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,oriental+1) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 146, 2) doPlayerAddOutfit(cid, 150, 2) setPlayerStorageValue(cid,oriental+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- ORIENTAL END -- -- PIRATE START -- function PirateFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,pirate) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 151, 1) doPlayerAddOutfit(cid, 155, 1) setPlayerStorageValue(cid,pirate,1) end else selfSay(noitems) end else selfSay(already) end end end function PirateSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,pirate+1) if addon == -1 then if getPlayerItemCount(cid,2385) >= 1 and getPlayerItemCount(cid,6098) >= 1 and getPlayerItemCount(cid,6095) >= 1 and getPlayerItemCount(cid,6096) >= 1 then if doPlayerRemoveItem(cid,6099,1) and doPlayerRemoveItem(cid,6100,1) and doPlayerRemoveItem(cid,6101,1) and doPlayerRemoveItem(cid,6102,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 151, 2) doPlayerAddOutfit(cid, 155, 2) setPlayerStorageValue(cid,pirate+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- PIRATE END -- -- ASSASSIN START -- function AssassinFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,assassin) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 152, 1) doPlayerAddOutfit(cid, 156, 1) setPlayerStorageValue(cid,assassin,1) end else selfSay(noitems) end else selfSay(already) end end end function AssassinSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,assassin+1) if addon == -1 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(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 152, 2) doPlayerAddOutfit(cid, 156, 2) setPlayerStorageValue(cid,assassin+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- ASSASSIN END -- -- BEGGAR START -- function BeggarFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if isPremium(cid) then addon = getPlayerStorageValue(cid,beggar) if addon == -1 then if getPlayerItemCount(cid,5883) >= 100 and player_money >= 20000 then if doPlayerRemoveItem(cid,5883,100) and doPlayerRemoveMoney(cid,20000) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 153, 1) doPlayerAddOutfit(cid, 157, 1) setPlayerStorageValue(cid,beggar,1) end else selfSay(noitems) end else selfSay(already) end end end function BeggarSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,beggar+1) if addon == -1 then if getPlayerItemCount(cid,6107) >= 1 then if doPlayerRemoveItem(cid,6107,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 153, 2) doPlayerAddOutfit(cid, 157, 2) setPlayerStorageValue(cid,beggar+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- BEGGAR END -- -- SHAMAN START -- function ShamanFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,shaman) if addon == -1 then if getPlayerItemCount(cid,3955) >= 5 and getPlayerItemCount(cid,5015) >= 1 then if doPlayerRemoveItem(cid,3955,5) and doPlayerRemoveItem(cid,5015,1) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 154, 2) doPlayerAddOutfit(cid, 158, 2) setPlayerStorageValue(cid,shaman,1) end else selfSay(noitems) end else selfSay(already) end end end function ShamanSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,shaman+1) if addon == -1 then if getPlayerItemCount(cid,3966) >= 5 and getPlayerItemCount(cid,3967) >= 5 then if doPlayerRemoveItem(cid,3966,5) and doPlayerRemoveItem(cid,3967,5) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 154, 1) doPlayerAddOutfit(cid, 158, 1) setPlayerStorageValue(cid,shaman+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- SHAMAN END -- -- NORSEMAN START -- function NorsemanFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,norseman) if addon == -1 then if getPlayerItemCount(cid,7290) >= 5 then if doPlayerRemoveItem(cid,7290,5) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 251, 1) doPlayerAddOutfit(cid, 252, 1) setPlayerStorageValue(cid,norseman,1) end else selfSay(noitems) end else selfSay(already) end end end function NorsemanSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,norseman+1) if addon == -1 then if getPlayerItemCount(cid,7290) >= 10 then if doPlayerRemoveItem(cid,7290,10) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 251, 2) doPlayerAddOutfit(cid, 252, 2) setPlayerStorageValue(cid,norseman+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- NORSEMAN END -- -- NIGHTMARE START -- function NightmareFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,nightmare) if addon == -1 then if getPlayerItemCount(cid,6500) >= 500 then if doPlayerRemoveItem(cid,6500,500) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 268, 1) doPlayerAddOutfit(cid, 269, 1) setPlayerStorageValue(cid,nightmare,1) end else selfSay(noitems) end else selfSay(already) end end end function NightmareSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,nightmare+1) if addon == -1 then if getPlayerItemCount(cid,6500) >= 1500 then if doPlayerRemoveItem(cid,6500,1500) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 268, 2) doPlayerAddOutfit(cid, 269, 2) setPlayerStorageValue(cid,nightmare+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- NIGHTMARE END -- -- JESTER START -- function JesterFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,jester) if addon == -1 then if getPlayerItemCount(cid,5879) >= 1 and getPlayerItemCount(cid,5878) >= 4 then if doPlayerRemoveItem(cid,5879,1) and doPlayerRemoveItem(cid,5878,4) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 273, 1) doPlayerAddOutfit(cid, 270, 1) setPlayerStorageValue(cid,jester,1) end else selfSay(noitems) end else selfSay(already) end end end function JesterSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,jester+1) if addon == -1 then if getPlayerItemCount(cid,5909) >= 5 then if doPlayerRemoveItem(cid,5909,5) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 273, 2) doPlayerAddOutfit(cid, 270, 2) setPlayerStorageValue(cid,jester+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- JESTER END -- -- BROTHERHOOD START -- function BrotherhoodFirst(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,brotherhood) if addon == -1 then if getPlayerItemCount(cid,6500) >= 500 then if doPlayerRemoveItem(cid,6500,500) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 278, 1) doPlayerAddOutfit(cid, 279, 1) setPlayerStorageValue(cid,brotherhood,1) end else selfSay(noitems) end else selfSay(already) end end end function BrotherhoodSecond(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if isPremium(cid) then addon = getPlayerStorageValue(cid,brotherhood+1) if addon == -1 then if getPlayerItemCount(cid,6500) >= 1500 then if doPlayerRemoveItem(cid,6500,1500) then selfSay(newaddon) doSendMagicEffect(getCreaturePosition(cid), 13) doPlayerAddOutfit(cid, 278, 2) doPlayerAddOutfit(cid, 279, 2) setPlayerStorageValue(cid,brotherhood+1,1) end else selfSay(noitems) end else selfSay(already) end end end -- BROTHERHOOD END -- keywordHandler:addKeyword({'addons'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can offer you first & second addons of the following outfits: Citizen, Hunter, Mage, Knight, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman, Nightmare, Jester, Brotherhood & Yalaharian."}) keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "What you do is that you type 'first hunter addon' or 'second hunter addon' where you replace 'hunter' with whatever outfit you'd like to achieve the addons for. Assuming that you already collected all the required pieces, say 'yes' and voíla - you got yourself an addon!"}) node1 = keywordHandler:addKeyword({'first citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first citizen addon you need to give me 100 minotaur leathers. Do you have them with you?'}) node1:addChildKeyword({'yes'}, CitizenFirst, {}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node2 = keywordHandler:addKeyword({'second citizen addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me 100 chicken feathers, 50 honeycombs and a legion helmet. Do you have them with you?'}) node2:addChildKeyword({'yes'}, CitizenSecond, {}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node3 = keywordHandler:addKeyword({'first hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first hunter addon you need to give me an engraved crossbow, 100 lizard leathers, 100 red dragon leather, 5 enchanted chicken wings, royal steel, hell steel and draconian steel. Do you have them with you?'}) node3:addChildKeyword({'yes'}, HunterFirst, {}) node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node4 = keywordHandler:addKeyword({'second hunter addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second hunter addon you need to give me a pair of sniper gloves. Do you have them with you?'}) node4:addChildKeyword({'yes'}, HunterSecond, {}) node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node5 = keywordHandler:addKeyword({'first mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first mage addon you need to give me a winning lottery ticket if you are a female. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'}) node5:addChildKeyword({'yes'}, MageFirst, {}) node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node6 = keywordHandler:addKeyword({'second mage addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second mage addon you need to give me 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 if you are a female. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'}) node6:addChildKeyword({'yes'}, MageSecond, {}) node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node7 = keywordHandler:addKeyword({'first knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first knight addon you need to give me a chunk of crude iron and 100 iron ores. Do you have it with you?'}) node7:addChildKeyword({'yes'}, KnightFirst, {}) node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node8 = keywordHandler:addKeyword({'second knight addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second knight addon you need to give me 100 perfect behemoth fangs, a damaged steel helmet, warrior\'s sweat and a royal steel. Do you have them with you?'}) node8:addChildKeyword({'yes'}, KnightSecond, {}) node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node9 = keywordHandler:addKeyword({'first nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nobleman addon you need to give me 150,000 gold pieces. Do you have it with you?'}) node9:addChildKeyword({'yes'}, NoblemanFirst, {}) node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node10 = keywordHandler:addKeyword({'second nobleman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nobleman addon you need to give me 150,000 gold pieces. Do you have them with you?'}) node10:addChildKeyword({'yes'}, NoblemanSecond, {}) node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node11 = keywordHandler:addKeyword({'first summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first summoner addon you need to give me a winning lottery ticket if you are a male. Otherwise, you need to give me all kind of wands and rods, 10 magic sulphurs, 20 ankhs and a soul stone. Do you have it with you?'}) node11:addChildKeyword({'yes'}, SummonerFirst, {}) node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node12 = keywordHandler:addKeyword({'second summoner addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second summoner addon you need to give me 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 if you are a male. Otherwise, you need to give me a ferumbras\' hat. Do you have them with you?'}) node12:addChildKeyword({'yes'}, SummonerSecond, {}) node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node13 = keywordHandler:addKeyword({'first warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first warrior addon you need to give me 100 hardened bones, 100 turtle shells, a fighting spirit and a dragon claw. Do you have it with you?'}) node13:addChildKeyword({'yes'}, WarriorFirst, {}) node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node14 = keywordHandler:addKeyword({'second warrior addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second warrior addon you need to give me 100 iron ores and a piece of royal steel. Do you have them with you?'}) node14:addChildKeyword({'yes'}, WarriorSecond, {}) node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node15 = keywordHandler:addKeyword({'first barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first barbarian addon you need to give me a fighting spirit, the warrior\'s sweat, 50 red pieces of cloth, 50 green pieces of cloth and 10 spider silk yarns. Do you have them with you?'}) node15:addChildKeyword({'yes'}, BarbarianFirst, {}) node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node16 = keywordHandler:addKeyword({'second barbarian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second barbarian addon you need to give me 100 iron ore, a chunk of crude iron, 50 behemoth fangs and 50 lizard leathers. Do you have them with you?'}) node16:addChildKeyword({'yes'}, BarbarianSecond, {}) node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node17 = keywordHandler:addKeyword({'first druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first druid addon you need to give me 50 wolf paws and 50 bear paws. Do you have them with you?'}) node17:addChildKeyword({'yes'}, DruidFirst, {}) node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node18 = keywordHandler:addKeyword({'second druid addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second druid addon you need to give me Griffinclaw flower sample, water from the hydra cave, 100 demon dusts, a blessed wooden stake and Ceirons wolf tooth chain. Do you have them with you?'}) node18:addChildKeyword({'yes'}, DruidSecond, {}) node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node19 = keywordHandler:addKeyword({'first wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first wizard addon you need to give me a dragon scale mail, a pair of crown legs, a medusa shield and a ring of the sky. Do you have them with you?'}) node19:addChildKeyword({'yes'}, WizardFirst, {}) node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node20 = keywordHandler:addKeyword({'second wizard addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second wizard addon you need to give me 50 holy orchids. Do you have them with you?'}) node20:addChildKeyword({'yes'}, WizardSecond, {}) node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node21 = keywordHandler:addKeyword({'first oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first oriental addon you need to give me a mermaid comb. Do you have it with you?'}) node21:addChildKeyword({'yes'}, OrientalFirst, {}) node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node22 = keywordHandler:addKeyword({'second oriental addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second oriental addon you need to give me 100 ape furs, 100 fish fins, 2 enchanted chicken wings and 100 blue pieces of cloth. Do you have them with you?'}) node22:addChildKeyword({'yes'}, OrientalSecond, {}) node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node23 = keywordHandler:addKeyword({'first pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first pirate addon you need to give me 100 hooks, 100 peg legs and 100 eye patches. Do you have them with you?'}) node23:addChildKeyword({'yes'}, PirateFirst, {}) node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node24 = keywordHandler:addKeyword({'second pirate addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second pirate addon you need to give me brutus bloodbeard\'s hat, lethal lissy\'s shirt, ron the ripper\'s sabre and deadeye devious\' eye patch. Do you have them with you?'}) node24:addChildKeyword({'yes'}, PirateSecond, {}) node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node25 = keywordHandler:addKeyword({'first assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first assassin addon you need to give me 30 beholder eyes, 10 red dragon scales, 30 lizard scales, 20 fish fins, 20 vampire dusts, 10 demon dusts and Warrior\'s sweat. Do you have them with you?'}) node25:addChildKeyword({'yes'}, AssassinFirst, {}) node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node26 = keywordHandler:addKeyword({'second assassin addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second assassin addon you need to give me 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. Do you have them with you?'}) node26:addChildKeyword({'yes'}, AssassinSecond, {}) node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node27 = keywordHandler:addKeyword({'first beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first beggar addon you need to give me 100 ape furs and 20,000 gold pieces. Do you have them with you?'}) node27:addChildKeyword({'yes'}, BeggarFirst, {}) node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node28 = keywordHandler:addKeyword({'second beggar addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second beggar addon you need to give me simon the beggar\'s staff. Do you have it with you?'}) node28:addChildKeyword({'yes'}, BeggarSecond, {}) node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node29 = keywordHandler:addKeyword({'first shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first shaman addon you need to give me 5 dworf voodoo dolls and a mandrake. Do you have them with you?'}) node29:addChildKeyword({'yes'}, ShamanFirst, {}) node29:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node30 = keywordHandler:addKeyword({'second shaman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second shaman addon you need to give me 5 banana staffs and 5 tribal masks. Do you have them with you?'}) node30:addChildKeyword({'yes'}, ShamanSecond, {}) node30:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node31 = keywordHandler:addKeyword({'first norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first norseman addon you need to give me 5 shards. Do you have them with you?'}) node31:addChildKeyword({'yes'}, NorsemanFirst, {}) node31:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node32 = keywordHandler:addKeyword({'second norseman addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second norseman addon you need to give me 10 shards. Do you have them with you?'}) node32:addChildKeyword({'yes'}, NorsemanSecond, {}) node32:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node33 = keywordHandler:addKeyword({'first nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first nightmare addon you need to give me 500 demonic essences. Do you have them with you?'}) node33:addChildKeyword({'yes'}, NightmareFirst, {}) node33:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node34 = keywordHandler:addKeyword({'second nightmare addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second nightmare addon you need to give me 1500 demonic essences. Do you have them with you?'}) node34:addChildKeyword({'yes'}, NightmareSecond, {}) node34:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node35 = keywordHandler:addKeyword({'first jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first jester addon you need to give me a giant spider silk and 4 minotaur leathers. Do you have them with you?'}) node35:addChildKeyword({'yes'}, JesterFirst, {}) node35:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node36 = keywordHandler:addKeyword({'second jester addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second jester addon you need to give me 5 white piece of cloth. Do you have them with you?'}) node36:addChildKeyword({'yes'}, JesterSecond, {}) node36:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node37 = keywordHandler:addKeyword({'first brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first brotherhood addon you need to give me 500 demonic essences. Do you have them with you?'}) node37:addChildKeyword({'yes'}, BrotherhoodFirst, {}) node37:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node38 = keywordHandler:addKeyword({'second brotherhood addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second brotherhood addon you need to give me 1500 demonic essences. Do you have them with you?'}) node38:addChildKeyword({'yes'}, BrotherhoodSecond, {}) node38:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node39 = keywordHandler:addKeyword({'first yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the first yalaharian addon you need to give me 150000 gold coins. do you have them with you?'}) node39:addChildKeyword({'yes'}, YalaharianFirst, {}) node39:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) node40 = keywordHandler:addKeyword({'second yalaharian addon'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'To achieve the second yalaharian addon you need to give me 300000 gold coins. do you have them with you?'}) node40:addChildKeyword({'yes'}, YalaharianSecond, {}) node40:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then. Come back when you got all neccessary items.', reset = true}) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Este troca itens Ps¹:Não foi feito por mim, mas adicionei a obsidian knife A Sweaty Cyclops.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="A Sweaty Cyclops" script="data/npc/scripts/Exchanger.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="22" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Hi little one. I am an exchanger npc. Need some {help} to know exactly what I am exchanging?" /> <parameter key="message_farewell" value="Goodbye. Have fun on your adventure little one." /> <parameter key="message_walkaway" value="You are just so little..." /> </parameters> </npc> Exchanger.lua 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".') elseif msgcontains(msg, 'spider silk yarn') then if getPlayerItemCount(cid,5879) >= 10 then selfSay('Did you bring me the 10 Giant Silks ?') 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.') 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.') 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, '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?') talk_state = 9 else selfSay('I need 100 empty vials, to give you a lottery ticket. Come back when you have them.') 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)6 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, '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 ?') 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.') 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?') talk_state = 4 else selfSay('I need 4 warrior helmets, to give you the warrior sweat. Come back when you have them.') 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 sulpher') 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?') talk_state = 5 else selfSay('I need 3 fire swords, to give you the magic sulpher. Come back when you have them.') 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?') talk_state = 6 else selfSay('I need boots of haste, to give you the enchanted chicken wing. Come back when you have them.') 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 ?') 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.') 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) >= 1 and getPlayerItemCount(cid,3983) >= 1 and getPlayerItemCount(cid,3983) >= 1 then selfSay('Did you bring me the 3 Bast Skirts and Devil Helmet ?') 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.') 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?') talk_state = 9 else selfSay('I need a 15 demon horns, to give you the engraved crossbow. Come back when you have them.') 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?') talk_state = 10 else selfSay('I need a 2 Royal Helmets, to give you the Fighting Spirit. Come back when you have them.') 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?') talk_state = 11 else selfSay('I need a Soul Orb, to give you the 2 Infernal Bolts. Come back when you have them.') 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,2) 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 ?') talk_state = 12 else selfSay('I need a Mystic Turban, to give you the Blue Piece of Cloth. Come back when you have them.') 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 ?') talk_state = 13 else selfSay('I need a Green Tunic, to give you the Green Piece of Cloth. Come back when you have them.') 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 ?') talk_state = 14 else selfSay('I need a Red Robe, to give you the Red Piece of Cloth. Come back when you have them.') 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?') 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.') 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, '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()) ___________________________________________________________________________ .Este npc vende weapons, armors, shields, helmets e legs Norma.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Norma" script="data/npc/scripts/Equipment.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="78" body="95" legs="110" feet="96" addons="2"/> <parameters> <parameter key="module_shop" value="3" /> <parameter key="message_greet" value="Welcome |PLAYERNAME]! My name is Equip and I sell and buy equipments, just ask me for a {trade} if your are interested." /> <parameter key="message_farewell" value="Goodbye, I will see you around sometimes |PLAYERNAME|." /> <parameter key="message_walkaway" value="Aren't we saying goodbye anymore?" /> </parameters> </npc> Equipment.lua 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) shopModule:addBuyableItem({'steel helmet'}, 2457, 580, 1, 'steel helmet') shopModule:addBuyableItem({'chain helmet'}, 2458, 52, 1, 'chain helmet') shopModule:addBuyableItem({'iron helmet'}, 2459, 390, 1, 'iron helmet') shopModule:addBuyableItem({'brass helmet'}, 2460, 120, 1, 'brass helmet') shopModule:addBuyableItem({'leather helmet'}, 2461, 12, 1, 'leather helmet') shopModule:addBuyableItem({'viking helmet'}, 2473, 265, 1, 'viking helmet') shopModule:addBuyableItem({'soldier helmet'}, 2481, 110, 1, 'soldier helmet') shopModule:addBuyableItem({'studded helmet'}, 2482, 63, 1, 'studded helmet') shopModule:addBuyableItem({'chain armor'}, 2464, 200, 1, 'chain armor') shopModule:addBuyableItem({'brass armor'}, 2465, 450, 1, 'brass armor') shopModule:addBuyableItem({'leather armor'}, 2467, 35, 1, 'leather armor') shopModule:addBuyableItem({'brass legs'}, 2478, 195, 1, 'brass legs') shopModule:addBuyableItem({'chain legs'}, 2648, 80, 1, 'chain legs') shopModule:addBuyableItem({'leather legs'}, 2649, 10, 1, 'leather legs') shopModule:addBuyableItem({'steel shield'}, 2509, 240, 1, 'steel shield') shopModule:addBuyableItem({'plate shield'}, 2510, 125, 1, 'plate shield') shopModule:addBuyableItem({'brass shield'}, 2511, 16, 1, 'brass shield') shopModule:addBuyableItem({'wooden shield'}, 2512, 15, 1, 'wooden shield') shopModule:addBuyableItem({'dwarven shield'}, 2525, 500, 1, 'dwarven shield') shopModule:addBuyableItem({'sword'}, 2376, 85, 1, 'sword') shopModule:addBuyableItem({'two handed sword'}, 2377, 950, 1, 'two handed sword') shopModule:addBuyableItem({'dagger'}, 2379, 5, 1, 'dagger') shopModule:addBuyableItem({'rapier'}, 2384, 15, 1, 'rapier') shopModule:addBuyableItem({'sabre'}, 2385, 35, 1, 'sabre') shopModule:addBuyableItem({'carlin sword'}, 2395, 473, 1, 'carlin sword') shopModule:addBuyableItem({'club'}, 2382, 5, 1, 'club') shopModule:addBuyableItem({'morning star'}, 2394, 430, 1, 'morning star') shopModule:addBuyableItem({'mace'}, 2398, 90, 1, 'mace') shopModule:addBuyableItem({'battle hammer'}, 2417, 350, 1, 'battle hammer') shopModule:addBuyableItem({'clerical mace'}, 2423, 540, 1, 'clerical mace') shopModule:addBuyableItem({'battle axe'}, 2378, 235, 1, 'battle axe') shopModule:addBuyableItem({'hand axe'}, 2380, 8, 1, 'hand axe') shopModule:addBuyableItem({'axe'}, 2386, 20, 1, 'axe') shopModule:addBuyableItem({'barbarian axe'}, 2429, 590, 1, 'barbarian axe') shopModule:addSellableItem({'battle axe'}, 2378, 80, 1, 'battle axe') shopModule:addSellableItem({'hand axe'}, 2380, 4, 1, 'hand axe') shopModule:addSellableItem({'halberd'}, 2381, 400, 1, 'halberd') shopModule:addSellableItem({'axe'}, 2386, 8, 1, 'axe') shopModule:addSellableItem({'double axe'}, 2387, 260, 1, 'double axe') shopModule:addSellableItem({'barbarian axe'}, 2429, 185, 1, 'barbarian axe') shopModule:addSellableItem({'steel helmet'}, 2457, 190, 1, 'steel helmet') shopModule:addSellableItem({'chain helmet'}, 2458, 17, 1, 'chain helmet') shopModule:addSellableItem({'iron helmet'}, 2459, 145, 1, 'iron helmet') shopModule:addSellableItem({'brass helmet'}, 2460, 30, 1, 'brass helmet') shopModule:addSellableItem({'leather helmet'}, 2461, 4, 1, 'leather helmet') shopModule:addSellableItem({'viking helmet'}, 2473, 66, 1, 'viking helmet') shopModule:addSellableItem({'legion helmet'}, 2480, 22, 1, 'legion helmet') shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 1, 'soldier helmet') shopModule:addSellableItem({'plate armor'}, 2463, 400, 1, 'plate armor') shopModule:addSellableItem({'chain armor'}, 2464, 70, 1, 'chain armor') shopModule:addSellableItem({'brass armor'}, 2465, 150, 1, 'brass armor') shopModule:addSellableItem({'leather armor'}, 2467, 12, 1, 'leather armor') shopModule:addSellableItem({'scale armor'}, 2483, 75, 1, 'scale armor') shopModule:addSellableItem({'studded armor'}, 2484, 70, 1, 'studded armor') shopModule:addSellableItem({'brass legs'}, 2478, 49, 1, 'brass legs') shopModule:addSellableItem({'plate legs'}, 2647 115, 1, 'plate legs') shopModule:addSellableItem({'chain legs'}, 2648, 25, 1, 'chain legs') shopModule:addSellableItem({'leather legs'}, 2649, 2, 1, 'leather legs') shopModule:addSellableItem({'steel shield'}, 2509, 80, 1, 'steel shield') shopModule:addSellableItem({'plate shield'}, 2510, 45, 1, 'plate shield') shopModule:addSellableItem({'brass shield'}, 2511, 16, 1, 'brass shield') shopModule:addSellableItem({'wooden shield'}, 2512, 5, 1, 'wooden shield') shopModule:addSellableItem({'battle shield'}, 2513, 95, 1, 'battle shield') shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 1, 'dwarven shield') shopModule:addSellableItem({'sentinel shield'}, 3974, 120, 1, 'sentinel shield') shopModule:addSellableItem({'salamander shield'}, 3975, 280, 1, 'salamander shield') shopModule:addSellableItem({'tusk shield'}, 3973, 850, 1, 'tusk shield') shopModule:addSellableItem({'sword'}, 2376, 25, 1, 'sword') shopModule:addSellableItem({'two handed sword'}, 2377, 450, 1, 'two handed sword') shopModule:addSellableItem({'dagger'}, 2379, 2, 1, 'dagger') shopModule:addSellableItem({'rapier'}, 2384, 5, 1, 'rapier') shopModule:addSellableItem({'sabre'}, 2385, 12, 1, 'sabre') shopModule:addSellableItem({'carlin sword'}, 2395, 118, 1, 'carlin sword') shopModule:addSellableItem({'short sword'}, 2406, 10, 1, 'short sword') shopModule:addSellableItem({'club'}, 2382, 1, 1, 'club') shopModule:addSellableItem({'morning star'}, 2394, 90, 1, 'morning star') shopModule:addSellableItem({'mace'}, 2398, 30, 1, 'mace') shopModule:addSellableItem({'battle hammer'}, 2417, 120, 1, 'battle hammer') shopModule:addSellableItem({'giant smithhammer'}, 2321, 250, 1, 'giant smithhammer') shopModule:addSellableItem({'clerical mace'}, 2423, 170, 1, 'clerical mace') npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Um npc que vende munições: Elane.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Elane" script="data/npc/scripts/Distance.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="137" head="113" body="101" legs="121" feet="120" addons="3"/> </npc> Distance.lua 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 shopModule:addBuyableItem({'bow'}, 2456, 400, 1, 'bow') shopModule:addBuyableItem({'crossbow'}, 2455, 500, 1, 'crossbow') shopModule:addBuyableItem({'royal spear'}, 7378, 15, 1, 'royal spear') shopModule:addBuyableItem({'spear'}, 2389, 10, 1, 'spear') shopModule:addBuyableItem({'arrow'}, 2544, 3, 1, 'arrow') shopModule:addBuyableItem({'sniper arrow'}, 7364, 5, 1, 'sniper arrow') shopModule:addBuyableItem({'bolt'}, 2543, 4, 1, 'bolt') shopModule:addBuyableItem({'earth arrow'}, 7851, 5, 1, 'earth arrow') shopModule:addBuyableItem({'flaming arrow'}, 7840, 5, 1, 'flaming arrow') shopModule:addBuyableItem({'flash arrow'}, 7838, 5, 1, 'flash arrow') shopModule:addBuyableItem({'onyx arrow'}, 7365, 7, 1, 'onyx arrow') shopModule:addBuyableItem({'power bolt'}, 2547, 7, 1, 'power bolt') shopModule:addBuyableItem({'throwing star'}, 2399, 42, 1, 'throwing star') shopModule:addBuyableItem({'shiver arrow'}, 7839, 5, 1, 'shiver arrow') shopModule:addBuyableItem({'piercing bolt'}, 7362, 5, 1, 'piercing bolt') shopModule:addBuyableItem({'assassin star'}, 7368, 100, 1, 'assassin star') shopModule:addBuyableItem({'throwing knife'}, 2410, 25, 1, 'throwing knife') shopModule:addSellableItem({'bow'}, 2456, 130, 1, 'bow') shopModule:addSellableItem({'crossbow'}, 2455, 160, 1, 'crossbow') shopModule:addSellableItem({'spear'}, 2389, 3, 1, 'spear') shopModule:addSellableItem({'hunting spear'}, 3965, 25, 1, 'hunting spear') local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Blessing Seller; Script feito por Ninkobi, Obrigado! Eremo.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Eremo" script="data/npc/scripts/Blessing.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="0" body="109" legs="128" feet="95" addons="0"/> </npc> Blessing.lua 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 onSay(cid, words, param) if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then doPlayerSendCancel(cid,'You have already got one or more blessings!') else if doPlayerRemoveMoney(cid, 50000) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE) doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!') else doPlayerSendCancel(cid, "You need five crystal coin to get blessed!") end end return 1 end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Promote Seller; Não foi feito por mim... King Tibianus.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="King Tibianus" script="data/npc/scripts/Promote.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="0" body="109" legs="128" feet="95" addons="0"/> </npc> Promote.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Rune Seller; Neste é possivel comprar runas, bp runes e wands/rods. Frans.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Frans" script="data/npc/scripts/Runes.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look typeex="2229"/> </npc> Runes.lua ---------holy missile------------ 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 shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook') shopModule:addBuyableItem({'magic lightwand'}, 2163, 400, 'magic lightwand') shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion') shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion') shopModule:addBuyableItem({'strong health'}, 7588, 100, 1, 'strong health potion') shopModule:addBuyableItem({'strong mana'}, 7589, 80, 1, 'strong mana potion') shopModule:addBuyableItem({'great health'}, 7591, 190, 1, 'great health potion') shopModule:addBuyableItem({'great mana'}, 7590, 120, 1, 'great mana potion') shopModule:addBuyableItem({'great spirit'}, 8472, 190, 1, 'great spirit potion') shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion') shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5, 'empty small potion flask') shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 10, 'empty strong potion flask') shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 15, 'empty great potion flask') shopModule:addBuyableItem({'blank rune'}, 2260, 10, 'blank rune') shopModule:addBuyableItem({'animate dead'}, 2316, 375, 1, 'animate dead rune') shopModule:addBuyableItem({'antidote'}, 2266, 65, 1, 'antidote rune') shopModule:addBuyableItem({'avalanche'}, 2274, 180, 4, 'avalanche rune') shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune') shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune') shopModule:addBuyableItem({'desintegrate'}, 2310, 80, 3, 'desintegrate rune') shopModule:addBuyableItem({'destroy field'}, 2261, 45, 3, 'destroy field') shopModule:addBuyableItem({'energy bomb'}, 2262, 325, 2, 'energy bomb rune') shopModule:addBuyableItem({'energy field''}, 2277, 115, 3, 'energy field') shopModule:addBuyableItem({'energy wall'}, 2279, 340, 4, 'energy wall rune') shopModule:addBuyableItem({'explosion'}, 2313, 190, 6, 'explosion rune') shopModule:addBuyableItem({'fire bomb'}, 2305, 235, 2, 'fire bomb rune') shopModule:addBuyableItem({'fire field'}, 2301, 85, 3, 'fire field rune') shopModule:addBuyableItem({'fire wall'}, 2303, 245, 4, 'fire wall rune') shopModule:addBuyableItem({'fireball'}, 2302, 150, 5, 'fire ball') shopModule:addBuyableItem({'great fireball'}, 2304, 180, 4, 'great fireball rune') shopModule:addBuyableItem({'heavy magic missile'}, 2311, 120, 10, 'heavy magic missile rune') shopModule:addBuyableItem({'icicle'}, 2271, 150, 5, 'icicle rune') shopModule:addBuyableItem({'intense healing'}, 2265, 95, 1, 'intense healing rune') shopModule:addBuyableItem({'light magic missile'}, 2287, 40, 10, 'light magic missile rune') shopModule:addBuyableItem({'magic wall'}, 2293, 350, 3, 'magic wall rune') shopModule:addBuyableItem({'paralyze'}, 2278, 700, 1, 'paralyze rune') shopModule:addBuyableItem({'poison bomb'}, 2286, 170, 2, 'poison bomb rune') shopModule:addBuyableItem({'poison field'}, 2285, 65, 3, 'poison field') shopModule:addBuyableItem({'poison wall'}, 2289, 210, 4, 'poison wall rune') shopModule:addBuyableItem({'soulfire'}, 2308, 140, 3, 'soulfire rune') shopModule:addBuyableItem({'stalagmite'}, 2292, 120, 10, 'stalagmite rune') shopModule:addBuyableItem({'stone shower'}, 2288, 150, 4, 'stoneshower rune') shopModule:addBuyableItem({'sudden death'}, 2268, 325, 3, 'sudden death rune') shopModule:addBuyableItem({'thunderstorm'}, 2268, 150, 4, 'thunderstorm rune') shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune') shopModule:addBuyableItem({'wild growth'}, 2269, 320, 2, 'wild growth rune') shopModule:addBuyableItemContainer({'bp blank rune'}, 1988, 2260, 220, 1 'bp blank rune') shopModule:addBuyableItemContainer({'bp animate dead'}, 1998, 2316, 7520, 1, 'bp animate dead rune') shopModule:addBuyableItemContainer({'bp antidote'}, 2003, 2266, 1320, 1, 'bp antidote rune') shopModule:addBuyableItemContainer({'bp avalanche'}, 2002, 2274, 3620, 4, 'bp avalanche rune') shopModule:addBuyableItemContainer({'bp chameleon'}, 1998, 2291, 4220, 1, 'bp chameleon rune') shopModule:addBuyableItemContainer({'bp convince creature'}, 1998, 2290, 1620, 1, 'bp convince creature rune') shopModule:addBuyableItemContainer({'bp desintegrate'}, 2001, 2310, 1620, 3, 'bp desintegrate rune') shopModule:addBuyableItemContainer({'bp destroy field'}, 2003, 2261, 920, 3, 'bp destroy field') shopModule:addBuyableItemContainer({'bp energy bomb'}, 2003, 2262, 6520, 2, 'bp energy bomb rune') shopModule:addBuyableItemContainer({'bp energy field''}, 1998, 2277, 2320, 3, 'bp energy field') shopModule:addBuyableItemContainer({'bp energy wall'}, 2002, 2279, 6820, 4, 'bp energy wall rune') shopModule:addBuyableItemContainer({'bp explosion'}, 2001, 2313, 3820, 6, 'bp explosion rune') shopModule:addBuyableItemContainer({'bp fire bomb'}, 2000, 2305, 4720, 2, 'bp fire bomb rune') shopModule:addBuyableItemContainer({'bp fire field'}, 2000, 2301, 1720, 3, 'bp fire field rune') shopModule:addBuyableItemContainer({'bp fire wall'}, 2000, 2303, 4920, 4, 'bp fire wall rune') shopModule:addBuyableItemContainer({'bp fireball'}, 2000, 2302, 3020, 5, 'bp fire ball') shopModule:addBuyableItemContainer({'bp great fireball'}, 2000, 2304, 3620, 4, 'bp great fireball rune') shopModule:addBuyableItemContainer({'bp heavy magic missile'}, 2001, 2311, 2420, 10, 'bp heavy magic missile rune') shopModule:addBuyableItemContainer({'bp icicle'}, 2002, 2271, 3020, 5, 'bp icicle rune') shopModule:addBuyableItemContainer({'bp intense healing'}, 2003, 2265, 1920, 1, 'bp intense healing rune') shopModule:addBuyableItemContainer({'bp light magic missile'}, 1998, 2287, 820, 10, 'bp light magic missile rune') shopModule:addBuyableItemContainer({'bp magic wall'}, 1999, 2293, 7020, 3, 'bp magic wall rune') shopModule:addBuyableItemContainer({'bp paralyze'}, 2002, 2278, 1420, 1, 'bp paralyze rune') shopModule:addBuyableItemContainer({'bp poison bomb'}, 1998, 2286, 3420, 2, 'bp poison bomb rune') shopModule:addBuyableItemContainer({'bp poison field'}, 1998, 2285, 1320, 3, 'bp poison field') shopModule:addBuyableItemContainer({'bp poison wall'}, 1998, 2289, 4220, 4, 'bp poison wall rune') shopModule:addBuyableItemContainer({'bp soulfire'}, 2000, 2308, 2820, 3, 'bp soulfire rune') shopModule:addBuyableItemContainer({'bp stalagmite'}, 1998, 2292, 2400, 10, 'bp stalagmite rune') shopModule:addBuyableItemContainer({'bp stone shower'}, 1999, 2288, 3020, 4, 'bp stoneshower rune') shopModule:addBuyableItemContainer({'bp sudden death'}, 2003, 2268, 6520, 3, 'bp sudden death rune') shopModule:addBuyableItemContainer({'bp thunderstorm'}, 1999, 2268, 3020, 4, 'bp thunderstorm rune') shopModule:addBuyableItemContainer({'bp ultimate healing'}, 2002, 2273, 3520, 1, 'bp ultimate healing rune') shopModule:addBuyableItemContainer({'bp wild growth'}, 2002, 2269, 6420, 2, 'bp wild growth rune') shopModule:addBuyableItemContainer({'bp health potion'}, 2000, 7618, 45, 1, 'bp health potion') shopModule:addBuyableItemContainer({'bp mana potion'}, 2001, 7620, 50, 1, 'bp mana potion') shopModule:addBuyableItemContainer({'bp strong health'}, 2000, 7588, 100, 1, 'bp strong health potion') shopModule:addBuyableItemContainer({'bp strong mana'}, 2001, 7589, 80, 1, 'bp strong mana potion') shopModule:addBuyableItemContainer({'bp great health'}, 2000, 7591, 190, 1, 'bp great health potion') shopModule:addBuyableItemContainer({'bp great mana'}, 2001, 7590, 120, 1, 'bp great mana potion') shopModule:addBuyableItemContainer({'bp great spirit'}, 1988, 8472, 190, 1, 'bp great spirit potion') shopModule:addBuyableItemContainer({'bp ultimate health'}, 2000, 8473, 310, 1, 'bp ultimate health potion') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex') shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 'wand of dragonbreath') shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay') shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 'wand of draconia') shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 'wand of cosmic energy') shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 'wand of inferno') shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 'snakebite rod') shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod') shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod') shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod') shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod') shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 'hailstorm rod') shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod') shopModule:addSellableItem({'wand of vortex', 'vortex'}, 2190, 500, 'wand of vortex') shopModule:addSellableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 'wand of dragonbreath') shopModule:addSellableItem({'wand of decay', 'decay'}, 2188, 5000, 'wand of decay') shopModule:addSellableItem({'wand of draconia', 'draconia'}, 8921, 7500, 'wand of draconia') shopModule:addSellableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 'wand of cosmic energy') shopModule:addSellableItem({'wand of inferno', 'inferno'},2187, 15000, 'wand of inferno') shopModule:addSellableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 'wand of starstorm') shopModule:addSellableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 'wand of voodoo') shopModule:addSellableItem({'snakebite rod', 'snakebite'}, 2182, 500,'snakebite rod') shopModule:addSellableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 'moonlight rod') shopModule:addSellableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 'necrotic rod') shopModule:addSellableItem({'northwind rod', 'northwind'}, 8911, 7500, 'northwind rod') shopModule:addSellableItem({'terra rod', 'terra'}, 2181, 10000, 'terra rod') shopModule:addSellableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 'hailstorm rod') shopModule:addSellableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 'springsprout rod') shopModule:addSellableItem({'underworld rod', 'underworld'}, 8910, 22000, 'underworld rod') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local items = {[1] = 2190, [2] = 2182, [5] = 2190, [6] = 2182} if(msgcontains(msg, 'first rod') or msgcontains(msg, 'first wand')) then if(isSorcerer(cid) or isDruid(cid)) then if(getPlayerStorageValue(cid, 30002) == -1) then selfSay('So you ask me for a {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '} to begin your advanture?', cid) talkState[talkUser] = 1 else selfSay('What? I have already gave you one {' .. getItemNameById(items[getPlayerVocation(cid)]) .. '}!', cid) end else selfSay('Sorry, you aren\'t a druid either a sorcerer.', cid) end elseif(msgcontains(msg, 'yes')) then if(talkState[talkUser] == 1) then doPlayerAddItem(cid, items[getPlayerVocation(cid)], 1) selfSay('Here you are young adept, take care yourself.', cid) setPlayerStorageValue(cid, 30002, 1) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then selfSay('Ok then.', cid) talkState[talkUser] = 0 end return true end local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ___________________________________________________________________________ .Rashid igual ao da cipsoft: Rashid.xml <?xml version="1.0" encoding="UTF-8"?> <npc name="Rashid" script="data/npc/scripts/Rashid.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="146" head="115" body="101" legs="123" feet="115" addons="2"/> </npc> Rashid.lua 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 shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 1, 'dragon scale mail') shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 1, 'dwarven armor') shopModule:addSellableItem({'glacier rope'}, 7897, 11000, 1, 'glacier rope') shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1, 'golden armor') shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1, 'hibiscus dress') shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 1, 'leopard armor') shopModule:addSellableItem({'lightning robe'}, 7898, 11000, 1, 'lightning robe') shopModule:addSellableItem({'magma coat'}, 7899, 11000, 1, 'magma coat') shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 1, 'mammoth fur cape') shopModule:addSellableItem({'paladin armor'}, 8891, 15000, 1, 'paladin armor') shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 1, 'pirate shirt') shopModule:addSellableItem({'skullcracker armor'}, 8889, 18000, 1, 'skullcracker armor') shopModule:addSellableItem({'terra mantle'}, 7884, 11000, 1, 'terra mantle') shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1, 'glacier kilt') shopModule:addSellableItem({'ligtning legs'}, 7895, 11000, 1, 'lightning legs') shopModule:addSellableItem({'magma legs'}, 7894, 11000, 1, 'magma legs') shopModule:addSellableItem({'mammoth fur short'}, 7464, 850, 1, 'mammoth fur shorts') shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1, 'pirate knee breeches') shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1, 'terra legs') shopModule:addSellableItem({'bone shield'}, 2541, 80, 1, 'bone shield') shopModule:addSellableItem({'dark shield'}, 2521, 400, 1, 'dark shield') shopModule:addSellableItem({'demon shield'}, 2520, 30000, 1, 'demon shield') shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1, 'medusa shield') shopModule:addSellableItem({'nore shield'}, 7460, 1500, 1, 'norse shield') shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 1, 'scarab shield') shopModule:addSellableItem({'spellbook of enlightenment'}, 4000, 8900, 1, 'spellbook of enlightenment') shopModule:addSellableItem({'tortoise shield'}, 6131, 150, 1, 'tortoise shield') shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 1, 'beholder helmet') shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1, 'devil helmet') shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1, 'glacier mask') shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1, 'krimhorn helmet') shopModule:addSellableItem({'lightning headband'}, 7901, 2500, 1, 'lightning headband') shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1, 'magma monocle') shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1, 'pirate hat') shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1, 'ragnir helmet') shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1, 'skull helmet') shopModule:addSellableItem({'terra hood'}, 7903, , 1, 'terra hood') shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 1, 'crocodile boots') shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1, 'fur boots') shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1, 'glacier shoes') shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1, 'lightning boots') shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1, 'magma boots') shopModule:addSellableItem({'patched boots'}, 2641, 2000, 1, 'patched boots') shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 1, 'pirate boots') shopModule:addSellableItem({'steel boots'}, 2645, 30000, 1, 'steel boots') shopModule:addSellableItem({'terra boots'}, 7886, 2500, 1, 'terra boots') shopModule:addSellableItem({'amber staff'}, 7426, 8000, 1, 'amber staff') shopModule:addSellableItem({'beatslayer axe'}, 3962, 1500, 1, 'beatslayer axe') shopModule:addSellableItem({'brutetamer's staff'}, 7379, 1500, 1, 'brutetamer's staff') shopModule:addSellableItem({'chaos mace'}, 7427, 12000, 1, 'chaos mace') shopModule:addSellableItem({'cranial basher'}, 7415, 30000, 1, 'cranial basher') shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1, 'crystal sword') shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 1, 'daramanian mace') shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 1, 'daramanian waraxe') shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 1, 'demonrage sword') shopModule:addSellableItem({'diamond sceptre'}, 7387, 3000, 1, 'diamond sceptre') shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'dragonbone staff'}, 7430, 3000, 1, 'dragonbone staff') shopModule:addSellableItem({'dreaded cleaver'}, 7419, 10000, 1, 'dreaded cleaver') shopModule:addSellableItem({'furry club'}, 7432, 1000, 1, 'furry club') shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1, 'guardian halberd') shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1, 'heavy machete') shopModule:addSellableItem({'heroic axe'}, 7389, 30000, 1, 'heroic axe') shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1, 'lunar staff') shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 1, 'mammoth whopper') shopModule:addSellableItem({'mercenary sword'}, 7386, 12000, 1, 'mercenary sword') shopModule:addSellableItem({'mystic blade'}, 7384, 30000, 1, 'mystic blade') shopModule:addSellableItem({'nightmare blade'}, 7418, 35000, 1, 'nightmare blade') shopModule:addSellableItem({'noble axe'}, 7456, 6000, 1, 'noble axe') shopModule:addSellableItem({'ornamented axe'}, , 11000, 1, 'ornamented axe') shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1, 'relic sword') shopModule:addSellableItem({'ornamented axe'}, 7411, 11000, 1, 'ornamented axe') shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 1, 'sapphire hammer') shopModule:addSellableItem({'silver dagger'}, 2402, 500, 1, 'silver dagger') shopModule:addSellableItem({'taurus mace'}, 7425, 500, 1, 'taurus mace') shopModule:addSellableItem({'war axe'}, 2454, 9000, 1, 'war axe') shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 1, 'wyvern fang') shopModule:addSellableItem({'earth dragon slayer'}, 7858, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'energy dragon slayer'}, 7873, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'fiery dragon slayer'}, 7748, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'icy dragon slayer'}, 7767, 15000, 1, 'dragon slayer') shopModule:addSellableItem({'earth mystic blade'}, 7856, 30000, 1, 'mystic blade') shopModule:addSellableItem({'energy mystic blade'}, 7871, 30000, 1, 'mystic blade') shopModule:addSellableItem({'fiery mystic blade'}, 7746, 30000, 1, 'mystic blade') shopModule:addSellableItem({'icy mystic blade'}, 7765, 30000, 1, 'mystic blade') shopModule:addSellableItem({'earth war axe'}, 2863, 9000, 1, 'war axe') shopModule:addSellableItem({'energy war axe'}, 2878, 9000, 1, 'war axe') shopModule:addSellableItem({'fiery war axe'}, 2753, 9000, 1, 'war axe') shopModule:addSellableItem({'icy war axe'}, 2772, 9000, 1, 'war axe') shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 1, 'ancient amulet') shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 1, 'crystal necklace') shopModule:addSellableItem({'crystal ring'}, 2124, 250, 1, 'crystal ring') shopModule:addSellableItem({'death ring'}, 6300, 1000, 1, 'death ring') shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 1, 'demonbone amulet') shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 1, 'emerald bangle') shopModule:addSellableItem({'golden ring'}, 2179, 8000, 1, 'golden ring') shopModule:addSellableItem({'platinum amulet'}, 2171, 2500, 1, 'platinum amulet') shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 1, 'ring of the sky') shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 1, 'ruby necklace') shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 1, 'scarab amulet') shopModule:addSellableItem({'silver brooch'}, 2134, 150, 1, 'silver brooch') shopModule:addSellableItem({'light shovel'}, 5710, 300, 1, 'light shovel') shopModule:addSellableItem({'doll'},2100 , 200, 1, 'doll') shopModule:addSellableItem({'pirate voodoo doll'}, 5810, 500, 1, 'pirate voodoo doll') shopModule:addSellableItem({'voodoo doll'}, 3955, 400, 1, 'voodoo doll') local shopModule = ShopModule:new() npcHandler:addModule(shopModule) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Atenção! Eu não pude testa-los ainda! Eu farei isto quando meu OT estiver rodando, mas esses Npcs são basicos e acredito que funcionarão perfeitamente. Eles poder ser muito bem copiados, os npcs podem ser colacados em seu server junto aos npcs basicos. Espero que gostem! Eles podem ser melhorados assim que me repassarem os bugs. Em poucos dias estarei hostiando meu server, e você podera testar os npcs . Eu desejo-lhes uma boa sorte com os npcs!
-
Eitah perfeito como tudo que você faz!? AhuhuaehuEauheuaeE E como anda a Dream Challenge Quest? To ansioso para ver como vai ficar... Feliz Natal e parabens pelo cargo de: Chique em?
-
Nussa ja ia chingar alguem por ter revivido o tópico aeuheuaheu Exelente e busco esse la no fundo do bau para atualizar para gente em!? Parabens... :smile_positivo:
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.