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

Runes npc

Kabum

New Member
Joined
Dec 22, 2015
Messages
3
Reaction score
0
Hello guys
I have a problem in runes npc
is this want him to sell 100 runes at a time

the script is so
Code:
shopModule:addBuyableItem({'sudden death rune'}, 2268, 4000, 100, 'sudden death rune')

but the player receives only three and disappears when you use the three

use TFS 0.3.6 (8.60)
 
Code:
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({'blank rune'}, 2260, 5, 1, 'blank rune')
shopModule:addBuyableItem({'heavy magic missile rune'}, 2311, 1000, 100, 'heavy magic missile rune')
shopModule:addBuyableItem({'ultimate healing rune'}, 2273, 3000, 100, 'ultimate healing rune')
shopModule:addBuyableItem({'great fireball rune'}, 2304, 2000, 100, 'great fireball rune')
shopModule:addBuyableItem({'explosion rune'}, 2313, 3000, 100, 'explosion rune')
shopModule:addBuyableItem({'sudden death rune'}, 2268, 4000, 100, 'sudden death rune')
shopModule:addBuyableItem({'antidote rune'}, 2266, 1000, 100, 'antidote rune')

npcHandler:addModule(FocusModule:new())

so far unsolved
 
Back
Top