@mvptime to see spawntime of mobs

Promeister

New member
Messages
72
Points
0
Discord
Promeister#1268
Emulator
Client Version
2019-03-06cRagexeRE
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!

 
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:

Code:
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")

 
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;
}

Code:
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

Will try the script you sent.. thanks!

 
Back
Top