Drs1705
Member
- Joined
- Dec 26, 2011
- Messages
- 69
- Reaction score
- 14
it's NPC system TheForgottenServer8.60V5 player gives error when trying to sell items grouped? says the player has no object 'of you not have this object'? When I use another server for the error, but alas not to buy the items oO '
The NPC is correct can see ...
- - - Updated - - -
Have you managed to solve, just put to sell directly from npc.xml ^ ^ vestments using normal
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="xxx,1414,50"/>
<parameter key="shop_sellable" value="xxx,2525,15"/>
</ parameters>
The NPC is correct can see ...
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
npcHandler:setMessage(MESSAGE_GREET, "A demanda de barcos está ENORME, preciso de toda madeira possível. \n Caso queira se tornar um {Lenhador}, compre um {serrote} em minha mão, é uma ótima forma de lucrar aqui.")
keywordHandler:addKeyword({'lenhador'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Não, não precisa assinar nada. Compre um serrote no {trade} e use nas árvores, quanto mais usar mais leveis de Lenhador você irá ganhar consequentemente venderá mais! \n Compro cada pedaço de madeira por 15 GPs.'})
keywordHandler:addKeyword({'serrote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Serrote é a ferramenta que você irá utilizar nas árvores, você pode conseguir um falando {trade}.'})
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'madeira'}, 5901, 15, 'madeira')
shopModule:addSellableItem({'madeiras'}, 5901, 15, 'madeiras')
shopModule:addBuyableItem({'serrote'}, 2558, 50, 'serrote')
- - - Updated - - -
Have you managed to solve, just put to sell directly from npc.xml ^ ^ vestments using normal
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="shop_buyable" value="xxx,1414,50"/>
<parameter key="shop_sellable" value="xxx,2525,15"/>
</ parameters>