• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help me improve this npc!

murilow1

Member
Joined
Dec 2, 2011
Messages
37
Reaction score
9
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:

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? :D
 
Back
Top