script:
How can I make soo it adds all bless?
oh heres the XML.
plx help rep++
Lua:
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 node1 = keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy blessings for 60000 gold?'})
node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, bless = 1,2,3,4,5, cost = 60000})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})
npcHandler:addModule(FocusModule:new())
How can I make soo it adds all bless?
oh heres the XML.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Secret Blesser" script="data/npc/scripts/bless.lua" walkinterval="0" speed="500" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="138" head="55" body="68" legs="96" feet="32" corpse="2212"/>
<parameters>
<parameter key="message_greet" value="Hello, |PLAYERNAME|. I sell blessings for 60.000 gold coins each." />
</parameters>
</npc>
plx help rep++