• 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!

Adding Delay

UpAndDown

New Member
Joined
Mar 12, 2009
Messages
66
Reaction score
0
Hey, I got a script for the yalahar quest, but when I tested it, it created way too many monsters, and like every 5 seconds the next wave already comes..

Code:
function Potwory1()

	doSummonCreature("Rift Worm", {x=34937,y=32203,z=10})

	doSummonCreature("Rift Worm", {x=34542,y=32201,z=10})

end


function Potwory2()

	doSummonCreature("Rift Brood", {x=34937,y=32203,z=10})

	doSummonCreature("Rift Brood", {x=34542,y=32201,z=10})

end




function Potwory3()


	doSummonCreature("Rift Scythe", {x=34937,y=32203,z=10})

	doSummonCreature("Rift Scythe", {x=34542,y=32201,z=10})

end




function Potwory4()


	doSummonCreature("Azerus", {x=34939,y=32205,z=10})
	
	doSummonCreature("War Golem", {x=34937,y=32203,z=10})

	doSummonCreature("War Golem", {x=34542,y=32201,z=10})

end




function onUse(cid, item, frompos, item2, topos)


	addEvent(Potwory1, 0)


	addEvent(Potwory2, 5000)


	addEvent(Potwory3, 10000)


	addEvent(Potwory4, 15000)


	return TRUE


end

It summons way too many monsters (3 azerus for example) and they spawn like 2 seconds in between. So my question is, how do I add delay to this script, so that it's like 40 seconds between all of them, and if possible, how do I make it so that there won't come 3 azerus, but just 1.

Sincerely,
UpAndDown.
 
Back
Top