Jump to content

Quest respawn mob when kill another


Recommended Posts

  • Premium

you don't need a quest for that, use the resurrection_vnum column in the mob_proto

 

If you really need that, do something like this:

 

respawn_cycle = function()
	return {
		[101] = 1022,
		[1022] = 2304,
		[2304] = 4056
	};
end -- function

when kill with table.is_in(quest.respawn_cycle(), npc.get_race()) begin
	mob.spawn(quest.respawn_cycle()[npc.get_race()], pc.get_local_x(), pc.get_local_y(), 3, false, 1);
end -- when

 

  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
9 hours ago, Dobrescu Sebastian said:

Do not use mob spawn. If you come with more players near the mob, when you kill it will spawn not just one, but two or more.

What are you talking about? Kill one mob it will spawn one mob, unless you put a number > 1 on the count arg, no matter "how many players are there around you".

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
3 hours ago, Syreldar said:

What are you talking about? Kill one mob it will spawn one mob, unless you put a number > 1 on the count arg, no matter "how many players are there around you".

It's a bug. Can be made, not exactly as i said.

Players know to do it better. Gonna ask them soon how.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.