#1 2008-01-09 15:56:23

Xidexo

Morderca

Zarejestrowany: 2008-01-09
Posty: 11
Punktów :   
Noob: Xidexo

Npc Addon Items Seller

W Folderze Npc Robimy nowy plik Addon Items Seller.xml i piszemy :

<npc name="Addon Items Seller" script="data/npc/scripts/addonseller.lua" autowalk="25" floorchange="0" access="5" level="1" maglevel="1">
    <health now="150" max="150"/>
    <look type="9" head="132" body="116" legs="116" feet="76" corpse="2212"/>
    <parameters>
        <parameter key="message_greet" value="Hello |PLAYERNAME|. I sell addon items." />
        <parameter key="message_needmoremoney" value="You do not have enough money." />
        <parameter key="message_decline" value="Is |TOTALCOST| gold coins too much for you?" />
    </parameters>
</npc>

teraz robimy w folderze scripts nowy plik addonseller.lua i piszemy :

-- OTServ event handling functions start
function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)             npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)     npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                         npcHandler:onThink() end
-- OTServ event handling functions end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'ape fur', 'ape'},                 5883, 300,     1,    'ape fur')
shopModule:addBuyableItem({'bat wing', 'batwing'},                     5894, 200,     1,     'bat wing')
shopModule:addBuyableItem({'bear paw', 'bearpaw'},                     5896, 150,     1,     'bear paw')
shopModule:addBuyableItem({'Behemoth Fang', 'Behemoth Fang'},                     5892, 500,     1,     'Behemoth Fang')
shopModule:addBuyableItem({'Behemoth claw', 'Behemothclaw'},                     5930, 500,     1,     'Behemoth claw')
shopModule:addBuyableItem({'Beholder Eye', 'BeholderEye'},                     5898, 300,     1,     'Beholder Eye')
shopModule:addBuyableItem({'Blue Piece of Cloth', 'blue cloth'},                         5912, 300,    1    'Blue Piece of Cloth')
shopModule:addBuyableItem({'Brown Piece of Cloth', 'brown cloth'},                     5913, 300,     1,     'Brown Piece of Cloth')
shopModule:addBuyableItem({'Chicken Feather', 'feather'},                     5890, 100,     1,     'Chicken Feather')
shopModule:addBuyableItem({'Demon Dust', 'Demon Dust'},                     5906, 1000,     1,     'Demon Dust')
shopModule:addBuyableItem({'Demon Horn', 'Demon Horn'},                     5954, 1000,     1,     'Demon Horn')
shopModule:addBuyableItem({'Dragon Claw', 'Dragon Claw'},                     5919, 10000,     1,     'Dragon Claw')
shopModule:addBuyableItem({'Eye Patch', 'Eye Patch'},                     6098, 300,     1,     'Eye Patch')
shopModule:addBuyableItem({'Fish Fin', 'Fish Fin'},                     5895, 300,     1,     'Fish Fin')
shopModule:addBuyableItem({'Giant Spider Silk', 'silk'},                     5879, 300,     1,     'Giant Spider Silk')
shopModule:addBuyableItem({'Green Dragon Leather','Green Dragon Leather '},                     5877, 300,     1,     'Green Dragon Leather')
shopModule:addBuyableItem({'Green Dragon Scale', 'Green Dragon Scale'},                     5920, 300,     1,     'Green Dragon Scale')
shopModule:addBuyableItem({'Green Piece of Cloth', 'Green Piece of Cloth'},                     5910, 300,     1,     'Green Piece of Cloth')
shopModule:addBuyableItem({'Hardened Bone', 'Hardened Bone'},                     5925, 400,     1,     'Hardened Bone')
shopModule:addBuyableItem({'Holy Orchid', 'Holy Orchid'},                     5922, 500,     1,     'Holy Orchid')
shopModule:addBuyableItem({'Honeycomb', 'Honeycomb'},                     5902, 200,     1,     'Honeycomb')
shopModule:addBuyableItem({'Hook', 'Hook'},                     6097, 300,     1,     'Hook')
shopModule:addBuyableItem({'Iron Ore', 'Iron Ore'},                     5880, 300,     1,     'Iron Ore')
shopModule:addBuyableItem({'Lizard Leather', 'Lizard Leather'},                     5876, 300,     1,     'Lizard Leather')
shopModule:addBuyableItem({'Lizard Scale', 'Lizard Scale'},                     5881, 300,     1,     'Lizard Scale')
shopModule:addBuyableItem({'Mandrake', 'Mandrake'},                     5015, 2000,     1,     'Mandrake')
shopModule:addBuyableItem({'Minotaur Leather', 'Minotaur Leather'},                     5878, 150,     1,     'Minotaur Leather')
shopModule:addBuyableItem({'Nose Ring', 'Nose Ring'},                     5804, 3000,     1,     'Nose Ring')
shopModule:addBuyableItem({'Peg Leg', 'Peg Leg'},                     6126, 300,     1,     'Peg Leg')
shopModule:addBuyableItem({'Red Dragon Leather', 'Red Dragon Leather'},                     5948, 300,     1,     'Red Dragon Leather')
shopModule:addBuyableItem({'Red Dragon Scale', 'Red Dragon Scale'},                     5882, 300,     1,     'Red Dragon Scale')
shopModule:addBuyableItem({'Red Piece of Cloth', 'Red Piece of Cloth'},                     5911, 300,     1,     'Red Piece of Cloth')
shopModule:addBuyableItem({'Sniper Gloves', 'Sniper Gloves'},                     5875, 3000,     1,     'Sniper Gloves')
shopModule:addBuyableItem({'Soul Stone', 'Soul Stone'},                     5809, 5000,     1,     'Soul Stone')
shopModule:addBuyableItem({'turtle shell', 'turtle shell'},                     5899, 300,     1,     'turtle shell')
shopModule:addBuyableItem({'Vampire Dust', 'Vampire Dust'},                     5905, 300,     1,     'Vampire Dust')
shopModule:addBuyableItem({'White Piece of Cloth', 'White Piece of Cloth'},                     5909, 300,     1,     'White Piece of Cloth')
shopModule:addBuyableItem({'Wolf Paw', 'Wolf Paw'},                     5897, 100,     1,     'Wolf Paw')
shopModule:addBuyableItem({'Yellow Piece of Cloth', 'Yellow Piece of Cloth'},                     5914, 300,     1,     'Yellow Piece of Cloth')
shopModule:addBuyableItem({'Engraved Crossbow', 'Engraved Crossbow'},                     5947, 4000,     1,     'Engraved Crossbow')
shopModule:addBuyableItem({'Enchanted Chicken Wing', 'Enchanted Chicken Wing'},                     5891, 5000,     1,     'Enchanted Chicken Wing')
shopModule:addBuyableItem({'Royal Steel', 'Royal Steel'},                     5887, 4000,     1,     'Royal Steel')
shopModule:addBuyableItem({'Draconian Steel', 'Draconian Steel'},                     5889, 1000,     1,     'Draconian Steel')
shopModule:addBuyableItem({'Hell Steel', 'Hell Steel'},                     5888, 2000,     1,     'Hell Steel')
shopModule:addBuyableItem({'Damaged Steel Helmet', 'Damaged Steel Helmet'},                     5924, 6000,     1,     'Damaged Steel Helmet')
shopModule:addBuyableItem({'Warrior's Sweat', 'Warriors Sweat'},                     5885, 3000,     1,     'Warrior's Sweat')
shopModule:addBuyableItem({'Crude Iron', 'Crude Iron'},                     5892, 2000,     1,     'Crude Iron')
shopModule:addBuyableItem({'Magic Sulphur', 'Magic Sulphur'},                     5904, 700,     1,     'Magic Sulphur')
shopModule:addBuyableItem({'Ankh', 'Ankh'},                     2327, 200,     1,     'Ankh')
shopModule:addBuyableItem({'Ceiron's Wolf Tooth Chain', 'wolf tooth chain'},                     5940, 5000,     1,     'Ceiron's Wolf Tooth Chain')
shopModule:addBuyableItem({'Mermaid Comb', 'Mermaid Comb'},                     5945, 1000,     1,     'Mermaid Comb')
shopModule:addBuyableItem({'Fighting Spirit', 'Fighting Spirit'},                     5884, 3000,     1,     'Fighting Spirit')
shopModule:addBuyableItem({'Ron the Ripper's Sabre', 'Ron the Ripper's Sabre'},                     6101, 4000,     1,     'Ron the Ripper's Sabre')
shopModule:addBuyableItem({'Lethal Lissy's Shirt', 'Lethal Lissy's Shirt'},                     6100, 3000,     1,     'Lethal Lissy's Shirt')
shopModule:addBuyableItem({'Brutus Bloodbeard's Hat', 'Brutus Bloodbeard's Hat'},                     6099, 3000,     1,     'Brutus Bloodbeard's Hat')
shopModule:addBuyableItem({'voodoo doll', 'voodoo doll'},                     5810, 1000,     1,     'voodoo doll')
shopModule:addBuyableItem({'Banana Staff', 'Banana Staff'},                     5966, 5000,     1,     'Banana Staff')
shopModule:addBuyableItem({'Tribal Mask', 'Tribal Mask'},                     3967, 1500,     1,     'Tribal Mask')
shopModule:addBuyableItem({'ferumbras's hat', 'ferumbras hat'},                     5903, 500000,     1,     'ferumbras's hat')




npcHandler:addModule(FocusModule:new())

Pomogłem Daj Reputka


Pomogłem Daj Reputka

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.geografia90.pun.pl www.jnw.pun.pl www.dissowo.pun.pl www.loza-szydercow.pun.pl www.gim2wswaju.pun.pl