Jump to content
Sign in to follow this  
Naruto

Looping convex mirror + faster

Recommended Posts

status.c

			case SC_CASH_BOSS_ALARM:
				if( sd != NULL ) {
					struct mob_data *boss_md = map->getmob_boss(bl->m);
					if( boss_md == NULL || boss_md->bl.prev == NULL ) {
						return 0;
					}
					val1 = boss_md->bl.id;
					if( (val4 = tick/1000) < 1 )
						val4 = 1;
					tick_time = 1000;
				}
				break;
			if( sd && --(sce->val4) >= 0 ) {
				struct mob_data *boss_md = map->id2boss(sce->val1);
				if( boss_md && sd->bl.m == boss_md->bl.m ) {
					clif->bossmapinfo(sd->fd, boss_md, 1); // Update X - Y on minimap
					if (boss_md->bl.prev != NULL) {
						sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
					}
					else;
					sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
				}
			}
			break;

 

clif.c

static void clif_bossmapinfo(int fd, struct mob_data *md, short flag)
{
	WFIFOHEAD(fd,70);
	memset(WFIFOP(fd,0),0,70);
	WFIFOW(fd,0) = 0x293;
				WFIFOB(fd,2) = 1;
				WFIFOL(fd,3) = md->bl.x;
				WFIFOL(fd,7) = md->bl.y;

	WFIFOSET(fd,70);

}

 

pretty sure its working fine just let me know

 

 

changes are : no timer, no delay,  and changes inbetween mvps after killing one if there is more then one on the map 

Edited by Naruto

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.