• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Bp runes

Marre1337

Banned User
Joined
May 20, 2010
Messages
209
Reaction score
7
Yo mates , is someone willy to help me how I can fix in 7.6 so my npcs sell bp sds and bp uhs bp mfs bp explo bp mwalls and shit.
Here's the code if you need it
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)



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

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

shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 		2187, 5000, 		'wand of inferno')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic'}, 		2189, 3000, 		'wand of cosmic energy')
shopModule:addBuyableItem({'wand of plague', 'plague'}, 		2188, 2000, 		'wand of plague')
shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 		2191, 500, 		'wand of dragonbreath')
shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 		2190, 10, 		'wand of vortex')

shopModule:addBuyableItem({'tempest rod', 'tempest'}, 		2183, 5000, 		'tempest rod')
shopModule:addBuyableItem({'quagmire rod', 'quagmire'}, 		2189, 3000, 		'quagmire rod')
shopModule:addBuyableItem({'volcanic rod', 'volcanic'}, 		2185, 2000, 		'volcanic rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 		2186, 100, 		'moonlight rod')
shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 		2182, 10, 		'snakebite rod')

shopModule:addBuyableItem({'light wand', 'lightwand'}, 		2163, 500, 		'magic light wand')
shopModule:addBuyableItem({'mana fluid', 'manafluid', 'bp mfs'}, 		2006, 50, 7,	'mana fluid')
shopModule:addBuyableItem({'life fluid', 'lifefluid'}, 		2006, 80, 	10,	'life fluid')
shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 	2311, 100, 	5,	'heavy magic missile rune')
shopModule:addBuyableItem({'fire bomb', 'f b'}, 	2305, 100, 	3,	'fire bomb rune')
shopModule:addBuyableItem({'destroy field', 'df'}, 	2261, 50, 	3,	'destroy field rune')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 			2304, 150, 	8, 	'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 					2313, 200, 	6, 	'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 		2274, 150, 	3, 	'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 			2263, 300, 	2, 	'sudden death rune')
shopModule:addBuyableItem({'blank', 'rune'}, 					2260, 10, 		'blank rune')


npcHandler:addModule(FocusModule:new())
 
Last edited:
Well nowadays that is very useless as you may stack runes and pots and you may as well buy with a backpack. That would just take more space in the .lua file ;)
 
Code:
shopModule:addBuyableItemContainer({'bp sudden death', 'bp sd'}, 2003, 2268, 6000, 2, 'backpack sudden death runes')
if you don't have it, you must add it to modules.lua
 
Back
Top