Jump to content
  • 0
Sign in to follow this  
Jhedzkie

Convex Mirror SRC

Question

2 answers to this question

Recommended Posts

  • 0

you want to change the message or the duration?
 
message: msgstringtable.txt I guess
duration: item_db.conf
 

 

clif.c

/// Convex Mirror (ZC_BOSS_INFO)./// 0293 <infoType>.B <x>.L <y>.L <minHours>.W <minMinutes>.W <maxHours>.W <maxMinutes>.W <monster name>.51B/// infoType:///     0 = No boss on this map (BOSS_INFO_NOT).///     1 = Boss is alive (position update) (BOSS_INFO_ALIVE).///     2 = Boss is alive (initial announce) (BOSS_INFO_ALIVE_WITHMSG).///     3 = Boss is dead (BOSS_INFO_DEAD).void clif_bossmapinfo(int fd, struct mob_data *md, short flag){	WFIFOHEAD(fd,70);	memset(WFIFOP(fd,0),0,70);	WFIFOW(fd,0) = 0x293;	if( md != NULL ) {		if( md->bl.prev != NULL ) { // Boss on This Map			if( flag ) {				WFIFOB(fd,2) = 1;				WFIFOL(fd,3) = md->bl.x;				WFIFOL(fd,7) = md->bl.y;			} else				WFIFOB(fd,2) = 2; // First Time		} else if (md->spawn_timer != INVALID_TIMER) { // Boss is Dead			const struct TimerData * timer_data = timer->get(md->spawn_timer);			unsigned int seconds;			int hours, minutes;			seconds = (unsigned int)(DIFF_TICK(timer_data->tick, timer->gettick()) / 1000 + 60);			hours = seconds / (60 * 60);			seconds = seconds - (60 * 60 * hours);			minutes = seconds / 60;			WFIFOB(fd,2) = 3;			WFIFOW(fd,11) = hours; // Hours			WFIFOW(fd,13) = minutes; // Minutes		}		safestrncpy((char*)WFIFOP(fd,19), md->db->jname, NAME_LENGTH);	}	WFIFOSET(fd,70);}

 

 

Edited by evilpuncker

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.