Promeister 18 Posted October 18, 2019 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! Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted October 18, 2019 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") Quote Share this post Link to post Share on other sites
0 Promeister 18 Posted October 18, 2019 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. Will try the script you sent.. thanks! Quote Share this post Link to post Share on other sites
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