Advertisement
Guest User

Untitled

a guest
Jun 18th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.02 KB | None | 0 0
  1. local keywordHandler = KeywordHandler:new()
  2. local npcHandler = NpcHandler:new(keywordHandler)
  3. NpcSystem.parseParameters(npcHandler)
  4.  
  5.  
  6.  
  7. -- OTServ event handling functions start
  8. function onCreatureAppear(cid)              npcHandler:onCreatureAppear(cid) end
  9. function onCreatureDisappear(cid)           npcHandler:onCreatureDisappear(cid) end
  10. function onCreatureSay(cid, type, msg)      npcHandler:onCreatureSay(cid, type, msg) end
  11. function onThink()                          npcHandler:onThink() end
  12. -- OTServ event handling functions end
  13.  
  14. local shopModule = ShopModule:new()
  15. npcHandler:addModule(shopModule)
  16.  
  17. shopModule:addBuyableItem({'wand of inferno', 'inferno'},       2187, 5000,         'wand of inferno')
  18. shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic'},      2189, 3000,         'wand of cosmic energy')
  19. shopModule:addBuyableItem({'wand of plague', 'plague'},         2188, 2000,         'wand of plague')
  20. shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'},         2191, 500,      'wand of dragonbreath')
  21. shopModule:addBuyableItem({'wand of vortex', 'vortex'},         2190, 10,       'wand of vortex')
  22.  
  23. shopModule:addBuyableItem({'tempest rod', 'tempest'},       2183, 5000,         'tempest rod')
  24. shopModule:addBuyableItem({'quagmire rod', 'quagmire'},         2189, 3000,         'quagmire rod')
  25. shopModule:addBuyableItem({'volcanic rod', 'volcanic'},         2185, 2000,         'volcanic rod')
  26. shopModule:addBuyableItem({'moonlight rod', 'moonlight'},       2186, 100,      'moonlight rod')
  27. shopModule:addBuyableItem({'snakebite rod', 'snakebite'},       2182, 10,       'snakebite rod')
  28.  
  29. shopModule:buyContainer({'backpack of ultimate healing rune','bp uh'}, 2002, 2274, 200*20, 4, 'backpack of ultimate healing rune')
  30. shopModule:buyContainer({'backpack of sudden death rune','bp sd'}, 2003, 2263, 300*20, 3, 'backpack of sudden death rune')
  31. shopModule:buyContainer({'backpack of manafluid','bp manafluid'}, 1999, 2006, 50*20, 7, 'backpack of mana fluid')
  32. shopModule:buyContainer({'backpack of explosion runes','bp explosion'}, 2001, 2313, 150*20, 9, 'backpack of explosion rune')
  33. shopModule:buyContainer({'backpack of magic wall runes','bp mwall'}, 1999, 2293, 250*20, 3, 'backpack of magic wall rune')
  34.  
  35.  
  36. shopModule:addBuyableItem({'light wand', 'lightwand'},      2163, 500,      'magic light wand')
  37. shopModule:addBuyableItem({'heavy magic missile', 'hmm'},   2311, 100,  10, 'heavy magic missile rune')
  38. shopModule:addBuyableItem({'fire bomb', 'f b'},     2305, 100,  3,  'fire bomb rune')
  39. shopModule:addBuyableItem({'destroy field', 'df'},  2261, 50,   3,  'destroy field rune')
  40. shopModule:addBuyableItem({'great fireball', 'gfb'},            2304, 150,  6,  'great fireball rune')
  41. shopModule:addBuyableItem({'explo', 'xpl'},                     2313, 200,  9,  'explosion rune')
  42. shopModule:addBuyableItem({'ultimate healing', 'uh'},       2274, 150,  4,  'ultimate healing rune')
  43. shopModule:addBuyableItem({'sudden death', 'sd'},           2263, 300,  3,  'sudden death rune')
  44. shopModule:addBuyableItem({'mana fluid', 'manafluid'},      2006, 50,   7,  'mana fluid')
  45. shopModule:addBuyableItem({'blank', 'rune'},                    2260, 10,       'blank rune')
  46.  
  47.  
  48. npcHandler:addModule(FocusModule:new())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement