Postado Agosto 4, 2012 12 anos ola pessoal do tk eu queria pedir a voces por favor para me passarem um anexo com a pasta de npc's bem iniciantes para meu ot ex ( vendedor de food, aol seller, vendedor de itens editados). obrigado
Postado Agosto 4, 2012 12 anos cara quais npcs você quer exatamente? se baixar qualquer server você os encontra eu te mando os que eu tenho só fala a lista do que quer. Ot Design: https://discord.gg/VgtVRNmCD7
Postado Agosto 5, 2012 12 anos Autor ekipamento, loot buyer, sword-axe-club seller, aol seller, wand-rod seller, mage seller, paladin seller, potion-runes seller, edited itens seller e vip seller(se der), food seller. obrigado
Postado Agosto 5, 2012 12 anos comerciante de ferramentas <?xml version="1.0" encoding="UTF-8"?> <npc name="Ahmet" script="data/npc/scripts/Ahmet.lua" walkinterval="0" floorchange="0"> <health now="100" max="100"/> <look type="130" head="38" body="40" legs="39" feet="114" addons="0"/> <voices> <voice text="Have a look at the largest sortiment of general goods in town." interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_shop" value="1" /> <parameter key="message_farewell" value="May enlightenment be your path, |PLAYERNAME|."/> <parameter key="message_walkaway" value="May enlightenment be your path, |PLAYERNAME|." /> <parameter key="message_sendtrade" value="Of course, just browse through my offers." /> <parameter key="message_greet" value="Be mourned pilgrim in flesh. I'm selling general goods." /> <parameter key="shop_buyable" value="vial of oil,2006,100,11;blessed wooden stake,5942,10000;obsidian knife,5908,10000;shovel,2554,50;fishing rod,2580,150;rope,2120,50;machete,2420,40;golden backpack,2004,20;golden bag,1997,5;pick,2553,50;scythe,2550,50;machete,2420,40;torch,2050,2;bottle,2007,3,1;document,1952,12;book,1958,15;parchment,1948,8;scroll,1949,5;plate,2035,6;present box,1990,10;watch,2036,20;worm,3976,1;bucket,2005,1,4;candlestick,2047,2;crowbar,2416,260;crowbar,10223,1000;rust remover,9930,100" /> <parameter key="shop_sellable" value="rope,2120,8;" /> </parameters> </npc> data/npc/scripts/Ahmet.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 npcHandler:addModule(FocusModule:new()) -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de alimentos <?xml version="1.0" encoding="UTF-8"?> <npc name="Anerui" script="data/npc/scripts/Anerui.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="63" head="0" body="0" legs="0" feet="0" addons="0"/> </npc> data/npc/scripts/Anerui.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 shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addBuyableItem({'ham'}, 2671, 6, 1,'ham') shopModule:addBuyableItem({'meat'}, 2666, 4, 1,'meat') npcHandler:addModule(FocusModule:new()) -------------------------------------------------------------------------------------------------------------------------------------------- Arqueiro <?xml version="1.0" encoding="UTF-8"?> <npc name="Cedrik" script="data/npc/scripts/Cedrik.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="58" body="57" legs="116" feet="40" addons="0"/> <voices> <voice text="Support your local weapon dealer!" interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_shop" value="1" /> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="wares;" /> <parameter key="keyword_reply1" value="My offers are weapons, ammunition, armors, helmets, legs, and shields. If you'd like to see my offers, ask me for a {trade}." /> <parameter key="shop_buyable" value="axe,2386,20;hand axe,2380,8;battle hammer,2417,350;mace,2398,90;dagger,2379,5;rapier,2384,15;sabre,2385,35;sword,2376,85;bow,2456,400;crossbow,2455,500;royal spear,7378,15;spear,2389,10;throwing knife,2410,25;throwing star,2399,42;arrow,2544,3;bolt,2543,4;earth arrow,7850,5;flaming arrow,7840,5;flash arrow,7838,5;onyx arrow,7365,7;piercing bolt,7363,5;power bolt,2547,7;shiver arrow,7839,5;sniper arrow,7364,5;chain helmet,2458,52;leather helmet,2461,12;brass armor,2465,450;chain armor,2464,200;leather armor,2467,35;chain legs,2648,80;steel shield,2509,240;wooden shield,2512,15;" /> <parameter key="shop_sellable" value="axe,2386,7;battle axe,2378,80;halberd,2381,400;hand axe,2380,4;battle hammer,2417,120;mace,2398,30;morning star,2394,90;dagger,2379,2;rapier,2384,5;sabre,2385,15;short sword,2406,10;sword,2376,25;two handed sword,2377,450;bow,2456,100;crossbow,2455,120;spear,2389,3;chain helmet,2458,17;leather helmet,2461,4;steel helmet,2457,190;brass armor,2465,150;chain armor,2464,70;leather armor,2467,12;plate armor,2463,400;magic plate armor,2472,1600;chain legs,2648,25;battle shield,2513,95;steel shield,2509,80;wooden shield,2512,5;" /> <parameter key="message_greet" value="Hello |PLAYERNAME|. Have a look at my {wares}."/> <parameter key="message_farewell" value="Bye |PLAYERNAME|."/> <parameter key="message_walkaway" value="However." /> <parameter key="message_sendtrade" value="Of course, just browse through my wares. If you're only interested in {distance} equipment, let me know." /> </parameters> </npc> data/npc/scripts/Cedrik.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 npcHandler:addModule(FocusModule:new()) -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de Armaduras <?xml version="1.0" encoding="UTF-8"?> <npc name="Alesar" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="80" head="0" body="0" legs="0" feet="0" addons="0"/> <parameters> <parameter key="message_greet" value="What do you want from me, |PLAYERNAME|?" /> <parameter key="module_shop" value="1"/> <parameter key="shop_buyable" value="Ice rapier,2396,5000;Serpent sword,2409,6000;Dark armor,2489,1500;Dark helmet,2490,1000;Ancient shield,2532,5000"/> <parameter key="shop_sellable" value="Dragon hammer,2434,2000;Giant sword,2393,17000;Knight axe,2430,2000;Poison dagger,2411,50;Scimitar,2419,150;Serpent sword,2409,900;Skull staff,2436,6000;Dark armor,2489,400;Knight armor,2476,5000;Dark helmet,2490,250;Mystic turban,2663,150;Strange helmet,2479,500;Warrior helmet,2475,5000;Knight legs,2477,5000;Ancient shield,2532,900;Black shield,2529,800;Tower shield,2528,8000;Vampire shield,2534,15000;Ornamented Axe,7411,20000;dreaded clever,7419,15000;dreaded clever,7428,10000;onyx,7421,22000;haunted,7407,8000;haunted,7413,4000"/> </parameters> </npc> data/npc/scripts/default.lua -------------------------------------------------------------------------------------------------------------------------------------------- Comerciante de Itens mágicos <?xml version="1.0" encoding="UTF-8"?> <npc name="Alexander" script="data/npc/scripts/Alexander.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="130" head="96" body="63" legs="71" feet="97" addons="0"/> <voices> <voice text="Selling all sorts of magic equipment. Come and have a look." interval2="120" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_keywords" value="1" /> <parameter key="keywords" value="magic;" /> <parameter key="keyword_reply1" value="I'm selling runes, life rings, wands, rods and crystal balls. I also buy powerful spellbooks. If you like to see my offers, ask me for a {trade}."/> <parameter key="message_greet" value="Hi there |PLAYERNAME|, and welcome to the {magic} store."/> <parameter key="message_farewell" value="See you, |PLAYERNAME|."/> <parameter key="message_sendtrade" value="Of course, just browse through my wares. Or do you want to look only at {runes} or {wands}?" /> <parameter key="message_walkaway" value="See you, |PLAYERNAME|." /> </parameters> </npc> data/npc/scripts/Alexander.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({'blank'}, 2260, 10, 1, 'blank rune') shopModule:addBuyableItem({'stone shower rune'}, 2288, 37, 4, 'stone shower rune') shopModule:addBuyableItem({'thunderstorm rune'}, 2315, 37, 4, 'thunderstorm rune') shopModule:addBuyableItem({'icicle rune'}, 2271, 30, 5, 'icicle rune') shopModule:addBuyableItem({'holy missile rune'}, 2295, 16, 5, 'holy missile rune') shopModule:addBuyableItem({'desintegrate rune'}, 2310, 26, 3, 'desintegrate rune') shopModule:addBuyableItem({'poison bomb rune'}, 2286, 85, 2, 'poison bomb rune') shopModule:addBuyableItem({'energy bomb rune'}, 2262, 162, 2, 'energy bomb rune') shopModule:addBuyableItem({'soulfire rune'}, 2308, 46, 3, 'soulfire rune') shopModule:addBuyableItem({'magic wall rune'}, 2293, 116, 3, 'magic wall rune') shopModule:addBuyableItem({'animate dead rune'}, 2316, 375, 1, 'animate dead rune') shopModule:addBuyableItem({'paralyze rune'}, 2278, 700, 1, 'paralyze rune') shopModule:addBuyableItem({'fireball rune'}, 2302, 30, 5, 'fireball rune') shopModule:addBuyableItem({'wild growth rune'}, 2269, 160, 2, 'wild growth rune') shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 1, 'wand of dragonbreath') shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 1, 'wand of decay') shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 1, 'wand of cosmic energy') shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 1, 'wand of voodoo') shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 1, 'wand of starstorm') shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 1, 'wand of inferno') shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 1, 'wand of draconia') shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 1, 'wand of vortex') shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 1, 'snakebite rod') shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 1, 'moonlight rod') shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 1, 'necrotic rod') shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 1, 'terra rod') shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 1, 'underworld rod') shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 1, 'springsprout rod') shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 1, 'northwind rod') shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 1, 'hailstorm rod') shopModule:addBuyableItem({'life ring', 'life ring'}, 2168, 900, 1, 'life ring') shopModule:addBuyableItem({'crystal ball', 'crystal ball'}, 2192, 530, 1, 'crystal ball') shopModule:addSellableItem({'spellbook of enlightenment', 'spellbook of enlightenment'}, 8900, 4000, 'spellbook of enlightenment') shopModule:addSellableItem({'spellbook of warding', 'spellbook of warding'}, 8901, 8000, 'spellbook of warding') shopModule:addSellableItem({'spellbook of mind control', 'spellbook of mind control'}, 8902, 13000, 'spellbook of mind control') shopModule:addSellableItem({'spellbook of lost souls', 'spellbook of lost souls'}, 8903, 19000, 'spellbook of lost souls') shopModule:addSellableItem({'crystal ball', 'crystal ball'}, 2192, 190, 'crystal ball') shopModule:addSellableItem({'life Crystal', 'life Crystal'}, 2177, 85, 'life crystal') shopModule:addSellableItem({'mind Stone', 'mind Stone'}, 2178, 170, 'mind stone') function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) -------------------------------------------------------------------------------------------------------------------------------------------- Joalheiro <?xml version="1.0" encoding="UTF-8"?> <npc name="Briasol" script="default.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="136" head="3" body="86" legs="87" feet="76" addons="1"/> <voices> <voice text="I have gems and beautiful jewellery for you!" interval2="100" margin="1" yell="no"/> </voices> <parameters> <parameter key="message_greet" value="Please feel welcome to my gem and jewellery store."/> <parameter key="message_farewell" value="Good bye."/> <parameter key="message_walkaway" value="Good bye." /> <parameter key="message_sendtrade" value="Here, take a look." /> <parameter key="module_shop" value="1"/> <parameter key="shop_sellable" value="white pearl,2143,160;black pearl,2144,280;small topaz,9970,200;small diamond,2145,300;small sapphire,2146,250;small ruby,2147,250;small emerald,2149,250;small amethyst,2150,200;gold ingot,9971,5000;wedding ring,2121,100" /> <parameter key="shop_buyable" value="white pearl,2143,320;black pearl,2144,560;small diamond,2145,600;small sapphire,2146,500;small ruby,2147,500;small emerald,2149,500;small amethyst,2150,400;ruby necklace,2133,3560;wedding ring,2121,990;golden amulet,2130,6600;golden goblet,5805,5000;silver goblet,5806,3000;bronze goblet,5807,2000" /> </parameters> </npc> default.lua -------------------------------------------------------------------------------------------------------------------------------------------- Carteiro <?xml version="1.0" encoding="UTF-8"?> <npc name="Benjamin" script="data/npc/scripts/Benjamin.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="128" head="116" body="79" legs="117" feet="76" addons="0"/> <voices> <voice text="If you need help with letters or parcels, just ask me. I can explain everything." interval2="1000" margin="1" yell="no"/> <voice text="Hey, send a letter to your friend now and then. Keep in touch, you know." interval2="1200" margin="1" yell="no"/> <voice text="Welcome to the post office!" interval2="900" margin="1" yell="no"/> </voices> <parameters> <parameter key="module_shop" value="1" /> <parameter key="shop_buyable" value="key ring,5801,15000;label,2599,1;parcel,2595,15;letter,2597,8;time ring,2169,1000;energy ring,2204,1000;life ring,2205,1000;stealth ring,2202,1000;sword ring,2207,1000;axe ring,2208,1000;club ring,2209,1000;dwarven ring,2213,1000;blood herb,2798,500;coconut,2678,500;platinum amulet,2171,3000;scarf,2661,2000;"/> <parameter key="message_greet" value="Hello. How may I help you |PLAYERNAME|? Ask me for a {trade} if you want to buy something. I can also explain the {mail} system."/> <parameter key="message_farewell" value="It was a pleasure to help you, |PLAYERNAME|."/> <parameter key="message_walkaway" value="Good bye." /> <parameter key="message_sendtrade" value="Here. Don't forget that you need to buy a label too if you want to send a parcel. Always write the name of the {receiver} in the first line and the name of the {city} in the second line." /> </parameters> </npc> data/npc/scripts/Benjamin.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 npcHandler:addModule(FocusModule:new()) -------------------------------------------------------------------------------------------------------------------------------------------- Quando tem: data/npc/scripts/default.lua ou só defaut.lua é por que não precisa criar nada em data/npcs/scripts, só em data/npcs -------------------------------------------------------------------------------------------------------------------------------------------- Cara é isso, se precisar de mais fala ae... sugiro usar estes como base e ir aprendendo a fazer novos, qualquer duvida so falar. Ot Design: https://discord.gg/VgtVRNmCD7
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.