Jump to content

spawn random boss??? help me


Go to solution Solved by VegaS™,

Recommended Posts

Hi I have a problem I would like to create an item that when you click spaws a random boss among those chosen, can you help me?

 

quest Carta_mostro begin
	state start begin
	
		when 50283.use begin
			say_title ( "Carta Mostro:")
			say ( "Questo e' la carta mostro, vuoi aprirla?" )
			local yesno = select ( "Apri" , "Non aprire" )
				pc.removeitem(50283,1)
				local dragon = number(1,4)
				local dragon1 = number(2,5)
				local dragon2 = {102,103,104,105}
				mob_vnum(dragon2[dragon],dragon1)
				end
			end
		end

 

 

  • Metin2 Dev 1
Link to comment
Share on other sites

i already tried to spawn mob but it still doesn't work

May  8 10:32:31 :: RunState: LUA_ERROR: [string "Carta_mostro"]:2: attempt to index global `spawn_boss' (a nil value)
SYSERR: May  8 10:32:31 :: WriteRunningStateToSyserr: LUA_ERROR: quest Carta_mostro.start click

SYSERR: May  8 10:40:00 :: mob_spawn_group: invalid argument
SYSERR: May  8 10:40:00 :: SpawnMob: SpawnMob: no mob data for vnum 0

Edited by DragonBlack94
Link to comment
Share on other sites

  • Premium
On 5/8/2021 at 11:14 AM, DragonBlack94 said:

i already tried to spawn mob but it still doesn't work

May  8 10:32:31 :: RunState: LUA_ERROR: [string "Carta_mostro"]:2: attempt to index global `spawn_boss' (a nil value)
SYSERR: May  8 10:32:31 :: WriteRunningStateToSyserr: LUA_ERROR: quest Carta_mostro.start click

SYSERR: May  8 10:40:00 :: mob_spawn_group: invalid argument
SYSERR: May  8 10:40:00 :: SpawnMob: SpawnMob: no mob data for vnum 0

:facepalm:

 

"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

  • 1 month later...
  • 3 months later...
  • Forum Moderator
  • Solution
On 5/8/2021 at 11:47 AM, DragonBlack94 said:
quest Carta_mostro begin
	state start begin
	
		when 50283.use begin
			say_title ( "Carta Mostro:")
			say ( "Questo e' la carta mostro, vuoi aprirla?" )
			local yesno = select ( "Apri" , "Non aprire" )
				pc.removeitem(50283,1)
				local dragon = number(1,4)
				local dragon1 = number(2,5)
				local dragon2 = {102,103,104,105}
				mob_vnum(dragon2[dragon],dragon1)
				end
			end
		end

Try this:

This is the hidden content, please

Edited by VegaS™
  • Metin2 Dev 5
  • Smile Tear 1
  • Scream 1
  • Love 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

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.