Okay, i looked whole internet and ot forums for a npc which summons monster, but i all i got is broken scripts...
Im trying to start from scratch, but i got poor scrippiting skills
1) Its suppose to be a npc thats summon random monsters, only one per turn, in a 'x' location...
2) When the last summon dies, its summon another one (random) in random seconds...
All i have until here:
its spamn demon everywhere :w00t:
any1?
Im trying to start from scratch, but i got poor scrippiting skills
1) Its suppose to be a npc thats summon random monsters, only one per turn, in a 'x' location...
2) When the last summon dies, its summon another one (random) in random seconds...
All i have until here:
Code:
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
npcHandler:addModule(FocusModule:new())
local position = {x=998, y=889, z=7}
function onCreatureAppear(cid)
if getDistanceToCreature(cid) < 4 then
doSummonCreature("Demon", position)
end
end
its spamn demon everywhere :w00t:
any1?