Jump to content
  • 0
Sign in to follow this  
Promeister

@mvptime to see spawntime of mobs

Question

Just like in ROM, only this can state atleast the last time value of the MvP before spawning. same prompt like @resist.

when monster is dead, on @mvptime

" <mvpname> only has <hours>,<mins> before spawning "

when monster is alive

" <mvpname> has spawned at <mapname> "

 

Thank you in advance!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What's ROM?

Best way to do this is very long and not simple. Change all MvP spawns into individual scripts. Then you can use getnpctimer() to get the time left. Example:

moc_pryd04,0,0,0	script	Osiris_Spawn	FAKE_NPC,{
OnMyMobDead:
	.GID = 0;
	initnpctimer();
	end;

OnTimer3600000: // wait 60 mins
	sleep(rand(600000)); // add 0~10 mins
OnInit:
	.GID = monster("moc_pryd04", 0, 0, "--en--", OSIRIS, 1, sprintf("%s::OnMyMobDead", strnpcinfo(NPC_NAME)));
	stopnpctimer();
	end;
}

Then make another script with the atcommand to check getnpctimer(0, "Osiris_Spawn")

Share this post


Link to post
Share on other sites
  • 0
19 minutes ago, bWolfie said:

What's ROM?

Best way to do this is very long and not simple. Change all MvP spawns into individual scripts. Then you can use getnpctimer() to get the time left. Example:

moc_pryd04,0,0,0 script Osiris_Spawn FAKE_NPC,{ OnMyMobDead: .GID = 0; initnpctimer(); end; OnTimer3600000: // wait 60 mins sleep(rand(600000)); // add 0~10 mins OnInit: .GID = monster("moc_pryd04", 0, 0, "--en--", OSIRIS, 1, sprintf("%s::OnMyMobDead", strnpcinfo(NPC_NAME))); stopnpctimer(); end; }


moc_pryd04,0,0,0	script	Osiris_Spawn	FAKE_NPC,{
OnMyMobDead:
	.GID = 0;
	initnpctimer();
	end;

OnTimer3600000: // wait 60 mins
	sleep(rand(600000)); // add 0~10 mins
OnInit:
	.GID = monster("moc_pryd04", 0, 0, "--en--", OSIRIS, 1, sprintf("%s::OnMyMobDead", strnpcinfo(NPC_NAME)));
	stopnpctimer();
	end;
}

Then make another script with the atcommand to check getnpctimer(0, "Osiris_Spawn")

Hi Wolfie, Its Ragnarok Mobile.

Like this one.
image.png.837fc9d25b1a5043501c6387247c507f.png

Will try the script you sent.. thanks!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.