Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: atcommand.c
- ===================================================================
- --- atcommand.c (revision 17161)
- +++ atcommand.c (working copy)
- @@ -6080,7 +6080,7 @@
- if( md->spawn_timer == INVALID_TIMER )
- snprintf(atcmd_output, sizeof(atcmd_output), "%2d[%3d:%3d] %s", number, md->bl.x, md->bl.y, md->name);
- else
- - snprintf(atcmd_output, sizeof(atcmd_output), "%2d[%s] %s", number, "dead", md->name);
- + snprintf(atcmd_output, sizeof(atcmd_output), "%2d[%s] %s - Re-spawn in %d seconds", number, "dead", md->name, (get_timer(md->spawn_timer)->tick-gettick())/1000); // Display the delay in seconds [clydelion]
- clif_displaymessage(fd, atcmd_output);
- }
- mapit_free(it);
- Index: map.h
- ===================================================================
- --- map.h (revision 17161)
- +++ map.h (working copy)
- @@ -341,6 +341,7 @@
- unsigned int boss : 1; //0: Non-boss monster | 1: Boss monster
- } state;
- char name[NAME_LENGTH], eventname[EVENT_NAME_LENGTH]; //Name/event
- + unsigned int spawn_status;
- };
- struct flooritem_data {
- Index: mob.c
- ===================================================================
- --- mob.c (revision 17161)
- +++ mob.c (working copy)
- @@ -920,6 +920,12 @@
- md->bl.x = md->spawn->x;
- md->bl.y = md->spawn->y;
- + if (md->spawn->spawn_status == 0 && md->db->mexp) {
- + md->spawn->spawn_status = 1;
- + md->spawn_timer = add_timer(tick+1000*60*5+(rand()%1000*60*40), mob_delayspawn, md->bl.id, 0); // 5-45 minutes, adjust this to your desired delay
- + return 1;
- + }
- +
- if( (md->bl.x == 0 && md->bl.y == 0) || md->spawn->xs || md->spawn->ys )
- { //Monster can be spawned on an area.
- if( !map_search_freecell(&md->bl, -1, &md->bl.x, &md->bl.y, md->spawn->xs, md->spawn->ys, battle_config.no_spawn_on_player?4:0) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement