• 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!

NPC + Runemaker ERROR's

Movement

New Member
Joined
Dec 5, 2007
Messages
102
Reaction score
0
NPC + Runemaker ERROR's( Mana fluids)

1.) That i can't buy whole BP's on TFS okay but why i can only buy 1 MANA FLUID????

WHen i can buy 25 mana fluids were Okay.( 1 mana fluid X 25 = bp)! I want that i can buy all X25(X25 = 1 Bp), my runes arw working only mana fluid

pls fix
 
Last edited:
this is a way but the other shit fucked up then.

My other shit fucked up when i make it(the link of empty)

My other NPC's:

function doPlayerBuyContainer(cid, container, itemid, charges, cost, count)
if doPlayerRemoveMoney(cid, cost) == TRUE then
for i = 1, count do
local backpack = doPlayerAddItem(cid, container, 1)
for x = 1, 20 do
doAddContainerItem(backpack, itemid, charges)
end
end
return LUA_NO_ERROR
end
return LUA_ERROR
end


http://s4.directupload.net/file/d/1274/y2u8kmkx_jpg.htm <-KLICK O IT TO MAKE IT BIGGER
 
Last edited:
Just use the NPC that Moker released in the thread.... -.-

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({'light wand', 'lightwand'}, 2163, 500, 'magic light wand')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 125, 10, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball'}, 2304, 180, 4, 'great fireball rune')
shopModule:addBuyableItem({'explosion'}, 2313, 250, 6, 'explosion rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 2, 'ultimate healing rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 325, 2, 'sudden death rune')
shopModule:addBuyableItem({'blank'}, 2260, 10, 'blank rune')


shopModule:buyContainer({'bp sd'}, Backpack, Rune, Prise, Charges, 'Backpack of sudden death')
shopModule:buyContainer({'bp uh'}, 2003, 2273, 1000, 1, 'Backpack of ultimate healing')
shopModule:buyContainer({'bp ih'}, 2003, 2265, 300, 1, 'Backpack of intense healing')
npcHandler:addModule(FocusModule:new())

And please, I look at the thread in mean time, don't PM me with useless statements.
 
yes but we want that we not must buy ever 1 mana fluid(the link of you we have test but when we make this then all NPC#s stop working)
 
Last edited:
Back
Top