local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local t = {
'Slime', 'Slime', 'Slime',
'Orc Warlord', 'Orc Warlord',
'Orc Leader', 'Orc Leader', 'Orc Leader'
}
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
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
function greetCallback(cid)
if getPlayerStorageValue(cid, 218) == -1 then
npcHandler:say('Arrrrgh! A dirty paleskin! To me my children! Kill them my guards!', cid)
setPlayerStorageValue(cid, 218, 1)
doAddCondition(cid, condition)
local pos = getThingPos(getNpcCid())
for i = 1, #t do
doSummonCreature(t[i], pos)
end
else
return true
end
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
npcHandler:setMessage(MESSAGE_GREET, 'Harrrrk! You think you are strong now? You shall never escape my wrath! I am immortal!')
npcHandler:setMessage(MESSAGE_FAREWELL, 'We will meet again.')
npcHandler:setMessage(MESSAGE_WALKAWAY, 'Yes, flee this place, but you will never escape my revenge!')
npcHandler:addModule(FocusModule:new())