behelit Posted February 18, 2020 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 36 Reputation: 0 Joined: 07/04/13 Last Seen: June 22, 2023 Share Posted February 18, 2020 (edited) So, I have this simple script that spawns a mob... Then re spawns that mob after 1 hour has passed if you kill it: - script sample_npc_mob -1,{ OnTimer3600000: // 1hour OnInit: monster "prontera",78,95,"--ja--",1153,1,strnpcinfo(3)+"::OnKill"; end; OnKill: initnpctimer; end; } How would I modify it so that instead of OnKill, it loops based on the following criteria: Start timer -> Spawn mob after 30min -> Kill mob after 60min ? I only want the mob to be alive for 30min during the second half of the 1 hour loop. Edited February 18, 2020 by behelit Clarification Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted February 18, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: Yesterday at 02:57 AM Share Posted February 18, 2020 I think best way to keep it alive for 30min is don't spawn it. But if you want to try, Look at this post: setunitdata UMOB_DMGIMMUNE. Not sure skill can damaged mob or not but you can try. Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted February 19, 2020 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted February 19, 2020 why don't you make permanent spawn mob type? if you need a label, you can attach it on it too 1 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted February 29, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 29, 2020 https://github.com/rathena/rathena/wiki/Permanent_Monster_Spawn Quote Link to comment Share on other sites More sharing options...
Question
behelit
So, I have this simple script that spawns a mob... Then re spawns that mob after 1 hour has passed if you kill it:
- script sample_npc_mob -1,{ OnTimer3600000: // 1hour OnInit: monster "prontera",78,95,"--ja--",1153,1,strnpcinfo(3)+"::OnKill"; end; OnKill: initnpctimer; end; }
How would I modify it so that instead of OnKill, it loops based on the following criteria: Start timer -> Spawn mob after 30min -> Kill mob after 60min ?
I only want the mob to be alive for 30min during the second half of the 1 hour loop.
Edited by behelitClarification
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.