local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocations =
{
--[Master sorc] = {Heaven sorc}
[5] = {13},
--[Elder Druid] = {Heaven druid}
[6] = {14},
--[Royal paladin] = {Heaven paladin}
[7] = {15},
--[Elite knight] = {Heaven knight}
[8] = {16},
}
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
local node1 = keywordHandler:addKeyword({'Heaven promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to join the league of Gods?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 20, promotion = 2, text = 'Welcome to the league of gods my angelic disciple.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Looks like you are ready to join us in our cause to fight evil come back when you grow some balls.', reset = true})
npcHandler:addModule(FocusModule:new())
]
and Vocations.xml
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local vocations =
{
--[Master sorc] = {Heaven sorc}
[5] = {13},
--[Elder Druid] = {Heaven druid}
[6] = {14},
--[Royal paladin] = {Heaven paladin}
[7] = {15},
--[Elite knight] = {Heaven knight}
[8] = {16},
}
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
local node1 = keywordHandler:addKeyword({'Heaven promotion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Would you like to join the league of Gods?'})
node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 20, promotion = 2, text = 'Welcome to the league of gods my angelic disciple.'})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Looks like you are ready to join us in our cause to fight evil come back when you grow some balls.', reset = true})
npcHandler:addModule(FocusModule:new())]