johnsamir
Advanced OT User
Hello
I'm trying to disable the necessity to say of the word buy to get an X item from Npcs.
as you can see i removed the word "BUY" and it worked. But if i say for example sell manafluid the npc will understand it as im buying , because is not taking any prevous word, so my question is : how should i do to disable the requeriment of the word buy to get an item, but working correctly?
so i found at modules.lua this
I'm trying to disable the necessity to say of the word buy to get an X item from Npcs.
as you can see i removed the word "BUY" and it worked. But if i say for example sell manafluid the npc will understand it as im buying , because is not taking any prevous word, so my question is : how should i do to disable the requeriment of the word buy to get an item, but working correctly?
so i found at modules.lua this
Lua:
keywords = {}
keywords[#keywords + 1] = ""
--keywords[#keywords + 1] = "buy"
keywords[#keywords + 1] = names[i]
local node = self.npcHandler.keywordHandler:addKeyword(keywords, ShopModule.tradeItem, parameters)
node:addChildKeywordNode(self.yesNode)
node:addChildKeywordNode(self.noNode)
end
end